Re: mysql question

From: Date: Fri, 30 Jun 2000 20:57:24 +0000
Subject: Re: mysql question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4142@lists.php.net to get a copy of this message
In article <FLEPLBADHBFCKHHKPHHNCENLCHAA.sano@mail.rit.edu>, sano@mail.rit.edu (Chris Sano) wrote: > 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? These are explained in the docs for sprintf/printf. %d is a number %s is a string There's a bunch more, and lots of options, so even though I gave you the answer, you still need to read the docs for next time. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#4142) next »