Hiya all,
Stock standard, and from most of the examples I've seen, standard MySQL
lookups via PHP utlises a while look to retrieve the data. All very nice
and well yes... But what if there is no data?
Here's a little example of what I want to do...
// Check for inportaint notices for the
PM
Subject: Re: [PHP] How *not* to assume MySQL will return data?
if (mysql_num_rows($query) 0) {
print crud
}
else {
echo Query succeeded, but produced no results;
}
Is that what you mean?
- Original Message -
From: Chris Knipe [EMAIL PROTECTED]
To: [EMAIL PROTECTED
On Tuesday 14 May 2002 01:36, Chris Knipe wrote:
H.
There's no way to do it *without* having to submit two queries to the
database? I'm thinking load wise here. The query (or block), would be
displayed on every single page in my app - sort of like a shared border
type thing...
Holmes...
- Original Message -
From: Chris Knipe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 10:46 AM
Subject: [PHP] How *not* to assume MySQL will return data?
Hiya all,
Stock standard, and from most of the examples I've seen, standard MySQL
lookups via PHP utlises
4 matches
Mail list logo