rock freak
August 8th, 2007, 03:37 AM
Ok this is the first time this has ever happned but mysql_num_row isnt return any value of rows!!!When they are definatly in the database!!!
I will get the source code up in about half an hour or so but didnt know if any of you clever people knew about people having problems with it!!!
*Source Code to follow*
<?
include 'db_con.php';
$col = "email";
$val = "test";
$query = 'SELECT * FROM `users` WHERE `email`=\'$val\'';
$result = mysql_query($query);
$row = mysql_num_rows($result);
echo "Column to search: $col";
echo '<br />';
echo "Search value: $val";
echo '<br />';
echo "Query Result: $result";
echo '<br />';
echo "Number of rows: $row";
?>
EDIT: Ow and the link that its hosted on knew i forgot something It's here (http://www.belcom.co.uk/scripts/test.php)
Cheers
Ollie
I will get the source code up in about half an hour or so but didnt know if any of you clever people knew about people having problems with it!!!
*Source Code to follow*
<?
include 'db_con.php';
$col = "email";
$val = "test";
$query = 'SELECT * FROM `users` WHERE `email`=\'$val\'';
$result = mysql_query($query);
$row = mysql_num_rows($result);
echo "Column to search: $col";
echo '<br />';
echo "Search value: $val";
echo '<br />';
echo "Query Result: $result";
echo '<br />';
echo "Number of rows: $row";
?>
EDIT: Ow and the link that its hosted on knew i forgot something It's here (http://www.belcom.co.uk/scripts/test.php)
Cheers
Ollie