Jump to content

Trouble with storing database value in a variable


abhijitp

Recommended Posts

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";

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.