MySQL Forums
Forum List  »  MyISAM

Re: proper PHP for use w/ "IS NOT NULL"
Posted by: Jeff Sabarese
Date: December 10, 2005 04:03PM

okay...

$rows = mysql_num_rows($query);
if ($rows > 0) {

// do this

} elseif ($rows == 0) {

echo "<p>there are $rows rows in this query</p>";
} else {
}

-- -- -- --
Use CSS [ content:" ?? " ] for Unicode + Control Chars (e.g. newline, etc)... Gain understanding of Codepage, Charset, Encoding, Keymapping... Generate CSS and JavaScript on-the-fly with PHP... Tales from the Communications Dept @ NoviceNotes.Net



Edited 1 time(s). Last edit at 12/10/2005 04:04PM by Jeff Sabarese.

Options: ReplyQuote


Subject
Views
Written By
Posted
8301
December 10, 2005 02:07PM
3153
December 10, 2005 03:03PM
2110
December 10, 2005 03:25PM
Re: proper PHP for use w/ "IS NOT NULL"
2366
December 10, 2005 04:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.