Jump to content

think this is right boared


beansandsausages

Recommended Posts

Hey all.

 

i have this query :


$get_edit = mysql_query(sprintf("SELECT * FROM `news` ORDER BY id DESC LIMIT 0, 10 ")) or die('Error: ' . mysql_error());
			while($edit = mysql_fetch_array($get_edit))
			{
			$edit[msg] = str_replace($words, $faces, $edit['msg']);
			 	echo " <br /><br />$space <form action=\"test.php\" method=\"post\"><input type=\"checkbox\" name=\"id\" value=\"".$edit['id']."\"> ".$edit['id']."  ";

it works fine i was woundering is there a way if there no records for it to display none or some thing ?

Link to comment
https://forums.phpfreaks.com/topic/85350-think-this-is-right-boared/
Share on other sites

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.