This is truly frustrating. I'm trying to fetch one array from two different tables. Personally, I think it would work but I always get this:
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in C:\Vardaes\more 1.php on line 50
Well... here's line 50 and the array fetch just before it.
$tablesummon=my sql_query("SELE CT * FROM user_table WHERE cn='$user'");
$array=mysql_fe tch_array($tabl esummon);
$summon=mysql_q uery("SELECT * FROM rooms WHERE ns='$array[12]' , ew='$array[13]' , ud='$array[14]'");
$ray=mysql_fetc h_array($summon );
I'm working with an XYZ coordinate system, or trying to at least. I'm trying to pull back the correct coordinates for the correct display.
I've even tried parsing it with a while statement and it still comes up with that same error. Need help badly.
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in C:\Vardaes\more 1.php on line 50
Well... here's line 50 and the array fetch just before it.
$tablesummon=my sql_query("SELE CT * FROM user_table WHERE cn='$user'");
$array=mysql_fe tch_array($tabl esummon);
$summon=mysql_q uery("SELECT * FROM rooms WHERE ns='$array[12]' , ew='$array[13]' , ud='$array[14]'");
$ray=mysql_fetc h_array($summon );
I'm working with an XYZ coordinate system, or trying to at least. I'm trying to pull back the correct coordinates for the correct display.
I've even tried parsing it with a while statement and it still comes up with that same error. Need help badly.
Comment