Welcome!
Log In
Create A New Profile
Home
>
2012
>
ICT2613
> Topic
Advanced
warning massages from mysql
Posted by
FinalOracle
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
FinalOracle
warning massages from mysql
October 05, 2012 08:42AM
Registered: 12 years ago
Posts: 30
Rating: 0
hi
my site works, but i get this warning massage after registering a new user to my site:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
can anyone please assist
Reply
Quote
Mac
Re: warning massages from mysql
October 05, 2012 08:45AM
Admin
Registered: 18 years ago
Posts: 10,001
Rating: 353
Error in your query statement
Reply
Quote
FinalOracle
Re: warning massages from mysql
October 05, 2012 12:20PM
Registered: 12 years ago
Posts: 30
Rating: 0
is there another query statement to find the number of rows in result, besides
$num_rows = mysql_num_rows('$result'
;
Reply
Quote
Mac
Re: warning massages from mysql
October 05, 2012 03:02PM
Admin
Registered: 18 years ago
Posts: 10,001
Rating: 353
This is the one to use.
Reply
Quote
46470107
Re: warning massages from mysql
October 06, 2012 01:24PM
Registered: 11 years ago
Posts: 44
Rating: 0
Hi FinalOracle,
Your problem might be in your $result query statement, post your query statements as needed & I'll comment on it for you.
Reply
Quote
FinalOracle
Re: warning massages from mysql
October 18, 2012 12:57PM
Registered: 12 years ago
Posts: 30
Rating: 0
hi
got it right, by using the query (mysql_num_rows('$result'
, direct as a condition of the if statement
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login