PHP/MySQL Num Rows

Status
Not open for further replies.

brsy

nah mang
May 12, 2011
1,530
272
PHP:
$u = mysql_real_escape_string(htmlentities($_POST['reg_username']));
$username = mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1"));

What tha fawk is wrong with this?
 

Livar

Now 35% cooler!
Oct 15, 2010
846
86
PHP:
$u = mysql_real_escape_string(htmlentities($_POST['reg_username']));
$username = mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1"));

What tha fawk is wrong with this?

PHP:
$u = mysql_real_escape_string(htmlentities($_POST['reg_username']));
$username = mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$u' LIMIT 1")));
 
Status
Not open for further replies.

Users who are viewing this thread

Top