Re: [PHP] printf %d

2002-12-13 Thread Brad Bonkoski
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

[PHP] printf %d

2002-12-13 Thread William Martell
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", <-HERE '%d' mysql_num_rows ($result)); while ($query_data = mysql_fetch_array ($result))