marklarah Posted January 15, 2008 Share Posted January 15, 2008 $lool = 'SELECT * FROM boards WHERE `ID` = '.$boardA; $lol = mysql_query($lool) or die(mysql_error()); $tit = $row['title']; echo $tit; it wont echo the value for tit... Quote Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/ Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 Because you are not FETCHing it. Quote Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440202 Share on other sites More sharing options...
The Little Guy Posted January 15, 2008 Share Posted January 15, 2008 <?php $lool = 'SELECT * FROM boards WHERE `ID` = '.$boardA; $lol = mysql_query($lool) or die(mysql_error()); $row = mysql_fetch_array($lol); $tit = $row['title']; echo $tit; ?> Quote Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440203 Share on other sites More sharing options...
marklarah Posted January 15, 2008 Author Share Posted January 15, 2008 My god of course thanks I copied the lookup off one of my templates Quote Link to comment https://forums.phpfreaks.com/topic/86192-solved-mysql-lookup-problem/#findComment-440205 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.