
Originally Posted by
GStyle
Hi there,
try something like that.
if (mysql_num_rows($whatever) > 1) $ChildName .= 's';
Can you see what I'm doing wrong? Below is my script, followed by the error message I got. Thanks.
PHP Code:
<?php
// TITLE & NAVHERE
if($r['Symbol'] !=''):
$ChildName = $r['Name'] . "’s State " . strtotitle($r['DesigGeneral']);
else:
$ChildName = $data_details['Name'] . "’s State " . $mytopic . ", etc.";
endif;
if (mysql_num_rows($r['DesigGeneral']) > 1) $ChildName .= 's';
?>
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [URL] on line 314
Bookmarks