Hello all,
I have been using mysql_fetch_array to read data from a query to a php array so i can then use it on my webpage. Everything was going fine until now...
I cant see the problem with my code, but it keeps calling the or die() error handler when trying to get the array. here is the code:
$sqlProject = "select * from project where ProjectName='.$pName.';";
$queryProject = mysql_query($sqlProject) or die("query Project error ");
$workType= Array();
while($proj = mysql_fetch_array($queryProject) or die("error in fetch array")){
the $pName variable is being passed to the sql statment fine and the mysql_query($sqlProject) statment isnt throwing any errors, but the mysql_fetch_array() is! it wont throw any mysql_error() messages in the die() handler, just a string to let me know something is wrong.
Does this mean its a php problem and not a mysql problem?
I am totally lost/confused with this... please help me!
thx
Mike