Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
if $watch=3Code: Select all
while ($watch > 0) {
$sql="SELECT * FROM table WHERE id='$watch' ;";
$result = mysql_query($sql);
$output=mysql_result($result,0,'xcolumn');
$watch=$watch-1;
}for $watch=1,3 i got $result ==> resource #xx and $output ==> correctly
if $watch=2 is not exising in the table
what is a value of $result and $output ??
i need it be existing for me to continue other part plz.
Novice from Thailand,
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]