Category "php"

SQLSTATE[HY000]: General error: 1 table posts has no column named *

I'm actually new to Laravel and I'm trying to build a basic social network with this Framework. For this project, I created a page called post which users can a

How to get variable from JavaScript to PHP [duplicate]

i need to transfer a variable from js to a php page then insert it in the database the Js code function tableText(tableCell) { var x

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Group test { Group test1 { #-# Type Val 1 typ1 10 2 typ2 10 3 typ3 10 } Group test2 {

dockerizing Laravel + vue

Trying to migrate my Laravel and Vue code into docker but I am getting an error building the Image This is my docker file # dockerfile FROM php:8-fpm #

Can't get xml from php

I've been trying to get data from my database into a table on my website using js/php but I can't get the php to give a valid xml to the script. This is the php

Create Artisan command with option that must specify a value

Laravel's documentation says (emphasis mine): If the user must specify a value for an option, you should suffix the option name with a = sign… But then

Apply filter array/return terms

I would like to apply a filter on which taxonomies are displayed in a widget. I'm close but I think I don't have the correct spelling for it and I'm surely miss

How to write on existing pdf file in php

I know this question has been asked many times but I read all related answer and my problem is not solved yet. I can add text and image on a new blank pdf file

Sub-Domain Laravel problem cannot open it in browser

I wanna ask about Laravel. I just learn about subdomains in Laravel. And I opened www.myapi.com in my browser but it showed site not found, can anyone help me

keith-wood Signature not working on production

jQuery UI Signature working on local but not working on live server javascript: var sig = $('#sig').signature({syncField: '#signature64', syncFormat: 'PN

MOODLE: What does it mean to aggregate h5p assets?

I'm having an issue where my H5P assets are not loading in my 3.11.2 Moodle site. Unable to find constructor for: H5P.CoursePresentation A forum post on the H5P

Laravel Spark - Defining a free plan

I am using Laravel Spark Next and I am trying to create a free plan. My application is charging users "Per seat" (# of projects) My application, however, will a

PHP Get value from JSON [duplicate]

Let's say I have this JSON: { "achievement": [ { "title": "Ready for Work", "description": "Sign up and get validated",

Laravel Docker Call to undefined function MyActionFunction

I'm new to docker and laravel. I'm trying to dockerize a laravel application, the source code is not mine. I used Sail for local tests, but now I want to build

How can i get the value of multiple anchors in javascript which are generated from php and send the value to another Php page using AJAX

Here is how my anchors are displayed on the web. I need to get the value of the anchor and send it to another PHP file, so i would use the value of the anchor i

How can i call a function that executes an fpdf based on the choice of a form selector?

I am trying to create FPDF's with different formats, which are inside a file of functions that are called through a form on another page inside the field select

Dynamic dropdown Ajax PHP request

I'm trying to make a dynamically populated drop down in a form for location selection. I have scoured stack in other posts that ask similar questions and some w

Can I redirect the user to another page while uploading files to the server?

I have a php script that: compresses and sends to the server images uploaded by the user, sends the text inputs as email, and then does a redirect with header('

Unable to create lockable file - Laravel 8 & PHP 8

I'm stuck in a Laravel project, I've been using laravel a lot of years and never happened this. I'm using Vagrant (as always) and only happens this with PHP 8,

Basic Authentication with CURL/PHP

I'm trying to do a basic API Authentication using PHP and CURL and I keep getting the error "no Route matched with those values". Here is what the API docs are