Mysql_fetch_assoc() Expects Parameter 1 To Be Resource, Boolean Given In C:\xampp\htdocs\qcc\truckdelivery.php On Line 9 No Database Selected
Solution 1:
Check for MySQL errors before processing the result of a query. Most likely your query went wrong some way, so mysql_query()
did not return a valid result and thus mysql_fetch_assoc()
fails.
// ...$PK = mysql_query($sql_PK, $connect);
if ( mysql_error() ) {
die ( mysql_error();
}
$row_PK = mysql_fetch_assoc($PK);
// ...
Post a Comment for "Mysql_fetch_assoc() Expects Parameter 1 To Be Resource, Boolean Given In C:\xampp\htdocs\qcc\truckdelivery.php On Line 9 No Database Selected"