tedd wrote:
At 5:53 PM -0700 4/10/07, Jim Lucas wrote:
Anyways, here is the expanded version hopefully to your liking.
# Your request failed. Make up your own custom way of displaying
the error.
} else {
if ( mysql_num_rows($results) > 0 ) {
while ( $row = mysql_fetch_assoc(
At 5:53 PM -0700 4/10/07, Jim Lucas wrote:
Anyways, here is the expanded version hopefully to your liking.
# Your request failed. Make up your own custom way of
displaying the error.
} else {
if ( mysql_num_rows($results) > 0 ) {
while ( $row = mysql_fetch_assoc($res
Top-posting is sublime. Embrace it. Why scroll through 10 pages of emails
you've already read when you can get to the meat of it all in the first few
lines of an email? :)
Plus trying to quickly separate all the previous replies from the latest one
when some emailers indent, indent with lead
On Tue, 2007-04-10 at 20:48 -0500, Richard Lynch wrote:
> No.
>
> Despite the fact that I replied to your message as it was the "last"
> one, and that caused threaded mail readers to place my post directly
> under yours as a "reply", my comment was not specifically directed at
> your post.
>
> I
No.
Despite the fact that I replied to your message as it was the "last"
one, and that caused threaded mail readers to place my post directly
under yours as a "reply", my comment was not specifically directed at
your post.
I had deleted the "way wrong" posts by the time I realized I wanted to
say
[EMAIL PROTECTED] wrote:
Turn on MAGIC QUOTES and REGISTER GLOBALS
Once you've done that, install Postgres. Run your MySQL command again,
Postgres has much better error reporting and will assist in debugging the
situation.
You might consider replacing your javascript functions with PHP ones
Richard Lynch wrote:
I am amazed by the sheer number of just plain WRONG answers to this
one...
Were they all from April 1 or something?...
so, are you saying that my answer was wrong, or just making a statement.
If my answer was wrong, it was because it was too simple, which is what I was tr
Turn on MAGIC QUOTES and REGISTER GLOBALS
Once you've done that, install Postgres. Run your MySQL command again,
Postgres has much better error reporting and will assist in debugging the
situation.
You might consider replacing your javascript functions with PHP ones since JS
can sometimes int
Richard Lynch wrote:
I am amazed by the sheer number of just plain WRONG answers to this
one...
Were they all from April 1 or something?...
Yes it's unfortunate. I think part of the problem was that several
people, including myself, weren't entirely clear on what he was after.
When I re
I am amazed by the sheer number of just plain WRONG answers to this
one...
Were they all from April 1 or something?...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP Gen
$result == "" means:
Your SQL query is so f'ed up, I couldn't even run it.
It does NOT mean:
Your query returned zero rows, a perfectly normal and common condition.
You want http://php.net/mysql_num_rows
And, actually, $result is FALSE, not really "", when the query is wrong.
On Mon, April 9, 2
[EMAIL PROTECTED] wrote:
If I search for something in mysql that returns an empty result I cant
get it to return
"No result found" always returns "Found" even though the recoed does not
exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = mysql_query($sql);
if ($resul
At 10:18 PM +0100 4/9/07, <[EMAIL PROTECTED]> wrote:
If I search for something in mysql that returns an empty result I
cant get it to return
"No result found" always returns "Found" even though the recoed does
not exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = my
ssage -
From: <[EMAIL PROTECTED]>
To:
Sent: Monday, April 09, 2007 11:18 PM
Subject: [PHP] mysql if empty
If I search for something in mysql that returns an empty result I cant get
it to return
"No result found" always returns "Found" even though the recoed does not
ex
At 4/9/2007 02:18 PM, [EMAIL PROTECTED] wrote:
If I search for something in mysql that returns an empty result I
cant get it to return
"No result found" always returns "Found" even though the recoed does
not exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = mysql_que
Em Segunda 09 Abril 2007 18:27, Lori Lay escreveu:
> [EMAIL PROTECTED] wrote:
> > If I search for something in mysql that returns an empty result I cant
> > get it to return
> > "No result found" always returns "Found" even though the recoed does
> > not exist...
> >
> >
> > $sql = "SELECT Client F
[EMAIL PROTECTED] wrote:
If I search for something in mysql that returns an empty result I cant
get it to return
"No result found" always returns "Found" even though the recoed does
not exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = mysql_query($sql);
if ($resul
> If I search for something in mysql that returns an empty result I cant get
> it to return
> "No result found" always returns "Found" even though the recoed does not
> exist...
>
>
> $sql = "SELECT Client FROM booked WHERE Name = 'larry'";
>
> $result = mysql_query($sql);
>
> if ($result == "")
>
If I search for something in mysql that returns an empty result I cant get
it to return
"No result found" always returns "Found" even though the recoed does not
exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = mysql_query($sql);
if ($result == "")
{
echo "No result
19 matches
Mail list logo