Jump to content

undefined constant?!


Caffeinenyx

Recommended Posts

$entrantQuery = "SELECT entrantID FROM entrants WHERE Game = $idT";
$entrantResult = mysql_query(entrantQuery);
$entrantRow = mysql_fetch_row(entrantResult);

 

I have these at the start of my php (after getting $idT), but I get the error

Notice: Use of undefined constant entrantQuery - assumed 'entrantQuery' in C:\Entrants.php on line ..

 

Notice: Use of undefined constant entrantResult - assumed 'entrantResult' in C:\www\Entrants.php on line..

 

Ive used this code lots of times before, what am I missing? They are variables that I am defining!

Link to comment
https://forums.phpfreaks.com/topic/235632-undefined-constant/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.