how to check mysql id row number with php? -
how check mysql id row number php? code not works
$id = '$url_id'; $con=mysqli_connect("dbhost","dbuser","dbpass","dbname"); $sqlcheckrow = mysql_query( "select * gagzavnili id=".$url_id." " ) or die ( mysql_error() ); $rowcounted = mysql_num_rows( $sqlcheckrow ); if ( $rowcounted == '50' ) @header("location:error8.php");
try execute next sql statement, should trick:
$sqlcheckrow = mysql_query("select * gagzavnili id=$url_id" ) or die (mysql_error() );
php mysql
No comments:
Post a Comment