Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Blocks
Author Message
jackel
Worker
Worker



Joined: Jan 15, 2009
Posts: 145
Location: Iowa, USA

PostPosted: Sat Mar 21, 2009 2:15 pm Reply with quote

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
 
View user's profile Send private message
duck
Involved
Involved



Joined: Jul 03, 2006
Posts: 273

PostPosted: Sat Mar 21, 2009 2:18 pm Reply with quote

remove the comma $sql from both lines

oh and turn Mysql_fetch_row to $db->sql_fetchrow
 
View user's profile Send private message
jackel







PostPosted: Sat Mar 21, 2009 2:22 pm Reply with quote

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







PostPosted: Sat Mar 21, 2009 2:41 pm Reply with quote

ok I added
Code:
$db->sql_fetchrow
but it still needed the comma
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Mar 21, 2009 4:28 pm Reply with quote

Read the sticky.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
duck







PostPosted: Sat Mar 21, 2009 4:48 pm Reply with quote

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);
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Blocks

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©