Jump to content

[SOLVED] Resource Id #4


wrathican

Recommended Posts

After doing a mysql_query(), you need to actually fetch the records retreived:

<?php
$qallid = "SELECT all_id FROM kb3_alliances WHERE all_name='" . $alliancen . "'";
$rallid = mysql_query($qallid);
$rw = mysql_fetch_assoc($rallid);
$all_id = $rw['all_id'];
echo $all_id;
?>

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/87545-solved-resource-id-4/#findComment-447774
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.