- Original Message -
From: William Martell [EMAIL PROTECTED]
To: [EMAIL PROTECTED];
Sent: Friday, December 13, 2002 2:13 PM
Subject: printf %d
Hello All.
Can anyone tell me what this '%d' refers to?
A pointer would be great. Thanks
[snip]
if (!$result)
die (Query Failed\n
]
To: 'William Martell' [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 6:03 AM
Subject: RE: Paging / Navigation Question
[snip]
[snip]
Or another way if you don't want a result when it's zero.
$rslt = mysql_query(SELECT count(*) as cnt FROM tbl having cnt 0);
[/snip]
$result = mysql_query
Hello All.
Can anyone tell me what this '%d' refers to?
A pointer would be great. Thanks
[snip]
if (!$result)
die (Query Failed\n);
else
printf (Number of rows returned: %d\nbrbr,
-HERE '%d'
mysql_num_rows ($result));
while ($query_data = mysql_fetch_array ($result))
Can someone shed some light on the '-' syntax seen below. Is this like
similar to Perl '=' syntax to access hash key value pairs?
Thank you one and all.
[snip]
// print mailing list
while($data = mysql_fetch_object($result)){
print($data-name . , . $data-address . , . $data-city . , .
Hello ALL.
Can anyone tell me why the number of rows is always 1 and count is the total
number of records in my database.
Thanks in Advance,
William
[snip]
HTML
HEAD
TITLE/TITLE
/HEAD
BODY
?php
$db = mysql_connect(localhost, root);
mysql_select_db(dallas, $db);
$result =
5 matches
Mail list logo