Tuesday, April 7, 2009

number of row ( PHP Script)

$perintah2="SELECT * FROM .........";
$hasil2=mysql_query($perintah2) or die('Tidak ada data');
$n_data=mysql_num_rows($hasil2);
if ($n_data==0)
{
.......................;
}

No comments: