abhijitp Posted August 19, 2009 Share Posted August 19, 2009 Need help on the code below. I am trying to store a database field into a variable and viceversa. I also used the code generated by phpmyadmin by running a query but it does'nt help. $dbtable = Database::get_course_table('lp'); $rest = mysql_query("SELECT `prerequisite` FROM `lp` WHERE id = 2"); $display_line = '<td align="left" valign="top">' . '<div style="float: left; width: 35px; height: 22px;"><a href="'.$url.'">' .$image.'</a></div><a href="#">'. - ".$rest.'</a>'."</td>\n"; Link to comment https://forums.phpfreaks.com/topic/170953-trouble-with-storing-database-value-in-a-variable/ Share on other sites More sharing options...
corbin Posted August 19, 2009 Share Posted August 19, 2009 Have you read anything on it? mysql_query mysql_fetch_assoc mysql_result Link to comment https://forums.phpfreaks.com/topic/170953-trouble-with-storing-database-value-in-a-variable/#findComment-901657 Share on other sites More sharing options...
abhijitp Posted August 19, 2009 Author Share Posted August 19, 2009 Just read..got the solution. Thanks! Link to comment https://forums.phpfreaks.com/topic/170953-trouble-with-storing-database-value-in-a-variable/#findComment-901701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.