Linked Questions

33 votes
9 answers
87k views

I have a very weird problem. When I'm submitting the form, it throws an error with server-side validation. Here is my simple controller: namespace App\Http\Controllers; use Newsletter; use ...
Parth Vora's user avatar
  • 4,132
46 votes
2 answers
90k views

I'm encountering this error. and I have no idea dealing with this. Cannot modify header information - headers already sent by (output started at /home/ben213/public_html/wp-content/themes/...
Ben Daggers's user avatar
  • 1,002
14 votes
6 answers
175k views

Code: Function ShowDataPatient($idURL) { $query =" select * from cmu_list_insurance,cmu_home,cmu_patient where cmu_home.home_id = (select home_id from cmu_patient where patient_hn like '%$...
Beebrabie's user avatar
  • 161
18 votes
3 answers
40k views

Installed new Laravel 8 project and upon loading the first instance, I get the below error. It's weird cause I put it aside and later on upgraded another project (which was working fine) from Laravel ...
cLin's user avatar
  • 362
21 votes
2 answers
176k views

In my controller, I create a function getFactorial public static function getFactorial($num) { $fact = 1; for($i = 1; $i <= $num ;$i++) $fact = $fact * $i; return $fact; } Then,...
code-8's user avatar
  • 59.5k
20 votes
3 answers
20k views

I have the following code define("SCRIPT_URL", ""); function ifScriptFolder() { if(isset(SCRIPT_URL) && !empty(SCRIPT_URL)) { echo "/".SCRIPT_URL."/"; } else { echo "/"...
dpDesignz's user avatar
  • 1,969
19 votes
1 answer
95k views

I'm new with cakePHP 3. I have created a controller and model where I call a function to get all users from the database. But when I run the code below I will get the following error "Call to a ...
CodeWhisperer's user avatar
13 votes
5 answers
5k views

Using Laravel 5.4, indeed in the documentation about Route grouping, and an example as this was given about namespacing: Route::namespace('Admin')->group(function () { // Controllers Within The ...
omitobi's user avatar
  • 7,354
7 votes
1 answer
51k views

I know that in php I can put a variable name inside a quoted string when I use echo, but I apparently can't do this with a session variable. Can anyone explain why? Here is the code, with the "...
doxguy's user avatar
  • 195
15 votes
2 answers
96k views

Apologies if this is real basic, but when PHP gets into functions I'm over my head. I have a plug-in for a forum, which loads a flash cookie as a method to detect duplicate accounts. The script is ...
Hoffa's user avatar
  • 307
10 votes
1 answer
88k views

Connection is here class connection{ private $hostname = "localhost"; private $username = "root"; private $password = ""; private $database = "idea"; private $conn; public function __construct(){ ...
Kenziiee Flavius's user avatar
15 votes
2 answers
59k views

Getting a very strange error here, I am writing a flatfile database class and this was all working fine until I refreshed and now I am constantly getting this message: Fatal error: Call to a member ...
George Reith's user avatar
  • 13.5k
1 vote
3 answers
20k views

I have tried to upload the image using Postman and the image is stored in the preferred directory and the full path is stored in database but i am getting the error response "message": "Call to a ...
Hari Sankar's user avatar
9 votes
1 answer
41k views

Full Error: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) It says that the error is on ...
user1804933's user avatar
6 votes
4 answers
41k views

I have a PHP page that I developed locally and worked fine. Upon uploading it to a server I now just get a blank white screen? It is the exact same code, works fine locally but doesnt remotely. I have ...
Mikey's user avatar
  • 365

15 30 50 per page
1
2 3 4 5
135