Re: mysql question

From: Date: Sat, 24 Jun 2000 13:51:34 +0000
Subject: Re: mysql question
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-603@lists.php.net to get a copy of this message
On Wed, 21 Jun 2000, Chris Sano wrote: sano: displayErrMsg(sprintf("error: %d %s", mysql_errno($link), sano: mysql_error($link)) sano: sano: What is the difference between the %d and the %s, and do those particular sano: characters have to be used when referring to something in the sprintf() sano: function? Read all the above, and take this tip %d stands for a numeric result that will be coming in the result of mysql_errno() function, I mean, %d tells sprintf that there will be a numeric value. %s tells sprintf there will be a string value , and echoed by mysql_error() cya. -- ---------------------------------- Yurais Fernández Leal MediRed Network SysAdmin. yurais@medired.scu.sld.cu http://www.scu.sld.cu/ ICQ: 33792610 ICQ-GW: 1031 Phone: (53) 226-54204 ------------

« previous php.db (#603) next »