Thread
:
Only post code if MySQL row data exists?
View Single Post
10-07-2012, 03:00 AM
PM User
|
#
2
Cloud Ghost
New Coder
Join Date: Jan 2010
Location: Canada
Posts: 34
Thanks: 11
Thanked 4 Times in 4 Posts
PHP Code:
$num
=
mysql_num_rows
(
$myquery
);
if(
$num
>
0
) {
// More than one row was returned.
}
Replace
$myquery
with the variable assigned to mysql_query().
Cloud Ghost
View Public Profile
Find More Posts by Cloud Ghost