can't get printf() to work

From: Date: Sat, 28 Oct 2000 17:43:14 +0000
Subject: can't get printf() to work
Groups: php.general 
Request: Send a blank email to php-general+get-22469@lists.php.net to get a copy of this message
Hi, I can get printf to print the result form a db. I have check the query and all is well and i use mysql_num_rows() after the queries and it gives me the correct result. Here is the latest variation of what i am using. The echo table cells works fine, not the printf. while ($myrow=mysql_fetch_array($result)); echo "<table border=2 bordercolor=#000000>\n"; echo "<b><tr><td>ID</td><td>checkbox</td><td>Username</td><td>Password</td><td>Email</td></tr></b>\n"; printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</tr>\n",$myrow["id"],$myrow["checkbox"],$myrow["username"],$myrow["password"],$myrow["email"]); echo "</table>\n"; Thanks Gary -- The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.Jean Baudrillard (1929), French semiologist.

« previous php.general (#22469) next »