Raised This Month: $ Target: $400
 0% 

Problem with MySQL


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ng1200
Member
Join Date: May 2005
Old 12-11-2007 , 07:03   Problem with MySQL
Reply With Quote #1

Hi,
How would I check if there were no rows returned by the query?
If I use the following:
Code:
if (dbi_num_rows(result_var) > 0)

I get this error:
Code:
Invalid DBI result handle 0
And If I use this:
Code:
if (dbi_query(db_var, query_var) == 0)

I get a tag mismatch warning.



Thanks in advance.
ng1200 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode