Jump to content

Need quick help with Warning: mysql_num_rows() error


botlife

Recommended Posts

$cnt1 = mysql_num_rows($rs1); is generating the error.

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

 

 

<?

session_start();

 

 

$userid = $_SESSION['sess_id'];

$sql1 = "select t_username,t_password,id from twitter_user where userid='".$userid."'";

$rs1 = mysql_query($sql1);

$cnt1 = mysql_num_rows($rs1);

if($cnt1 > 0)

{

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.