By echaland on
Hi,
I'd like to display a list of node title in a combo box and then select an item from the list. I'm getting "mysql_fetch_object(): supplied argument is not a valid MYSQL result resource" error. Here is the code snippet; does anyone know what I'm doing wrong? Thanks for your help.
Page Title:
$result = db_result(db_query("SELECT node.nid, node.title FROM node node WHERE node.type in ('Test') ORDER BY node.title ASC"));
while ($row = db_fetch_object($result))
{
$value = $row["node_title"];
content .= "<OPTION VALUE=" .$value. "><".$value."</OPTION>";
}
....