Re: printf %d
| From: | Brad Bonkoski | Date: | Sat, 14 Dec 2002 02:18:57 +0000 |
| Subject: | Re: printf %d | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128239@lists.php.net to get a copy of this message | ||
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\n<br><br>",
> <-------------------------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]."<br><br><br>";
> }
> [/snip]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php