Re: mysql question

From: Date: Thu, 22 Jun 2000 01:08:44 +0000
Subject: Re: mysql question
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-2560@lists.php.net to get a copy of this message
At 08:59 PM 6/21/00 -0400, Chris Sano wrote:
I am doing one of the programming problems in Professional PHP Programming and there is one snipet I have come across that I do not understand. It's a function call. displayErrMsg(sprintf("error: %d %s", mysql_errno($link), mysql_error($link)) What is the difference between the %d and the %s, and do those particular characters have to be used when referring to something in the sprintf() function?
Hi Chris, Check the php manual entry on sprintf for full details. Zak Greant Creative Director Nucleus Information Service Inc. "A camel is a horse designed by a committee." - Alex Issigonis (Designer of the Austin Mini)

« previous php.general (#2560) next »