Read:
http://www.php.net/manual/en/function.printf.php
(On of the user contrib notes has an example)
Or pick up a copy of The C Programming Language by Kernighan and
Ritchie for a more complete description.
-Brad
William Martell wrote:
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))
{
echo Part#: .$query_data[holman_part].br;
echo Description: .$query_data[part_desc].brbrbr;
}
[/snip]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php