Jump to content

[SOLVED] mysql_fetch_array() issue.. don't know whats going on!


monkeypaw201

Recommended Posts

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\path\to\page.php on line 65

 

I have no idea why.. line 65 is this..

 

$row_flightplan = mysql_fetch_array($flightplan);

 

no clue why... here is somemore code above and below..

 

....
else
{
   mysql_query("INSERT INTO `flightplans` (....) VALUES (....)");
   
   $flightplan = mysql_query("SELECT * FROM `flightplans` ORDER BY `id` DESC");
   $row_flightplan = mysql_fetch_array($flightplan);
   
   mysql_query("INSET INTO `flights` (....) VALUES (....)");
   
   mysql_query("INSERT INTO `logs` (....) VALUES (....)");
} 
.....

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.