Author
Message
jackel Worker Joined: Jan 15, 2009 Posts: 145 Location: Iowa, USA
Posted:
Sat Mar 21, 2009 2:15 pm
Code: $result = $db->sql_query("SELECT modulename, auto_start, picture, picture_dir, defpicture, nopicture_name FROM ".$prefix."_internet_radio_settings", $sql );
list($modulename, $auto_start, $picture, $picture_dir, $defpicture, $nopicture_name) = mysql_fetch_row ($result, $sql);
Whats wrong with this? can you help please
Thanks
duck Involved Joined: Jul 03, 2006 Posts: 267
Posted:
Sat Mar 21, 2009 2:18 pm
remove the comma $sql from both lines
oh and turn Mysql_fetch_row to $db->sql_fetchrow
jackel Worker Joined: Jan 15, 2009 Posts: 145 Location: Iowa, USA
Posted:
Sat Mar 21, 2009 2:22 pm
Parse error: syntax error, unexpected T_VARIABLE on line 36
Line 36
Code:
$result = $db->sql_query("SELECT radio_id, radio_name, radio_language FROM ".$prefix."_internet_radio ORDER BY radio_name ASC" $sql );
jackel Worker Joined: Jan 15, 2009 Posts: 145 Location: Iowa, USA
Posted:
Sat Mar 21, 2009 2:41 pm
ok I added but it still needed the comma
Palbin Site Admin Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Sat Mar 21, 2009 4:28 pm
duck Involved Joined: Jul 03, 2006 Posts: 267
Posted:
Sat Mar 21, 2009 4:48 pm
Shoudl look like this:
Code: $result = $db->sql_query("SELECT modulename, auto_start, picture, picture_dir, defpicture, nopicture_name FROM ".$prefix."_internet_radio_settings");
list($modulename, $auto_start, $picture, $picture_dir, $defpicture, $nopicture_name) = $db->sql_fetchrow ($result);
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum