Mysql doesn't have a printf function
Regards
Den 2010 10 29 00:47 skrev "Ethan Rosenberg" :
> Dear List -
>
> I am afraid that I am missing something in a major way.
>
> mysql> printf("%b %d %f %s\n", 123, 123, 123, "test");
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
Dear List -
I am afraid that I am missing something in a major way.
mysql> printf("%b %d %f %s\n", 123, 123, 123, "test");
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'printf("%b %
2010/1/4 Chris :
> Jean-Philippe Battu wrote:
>>
>> Hello
>>
>> I would like to print a string formatted on the right side and fill in
>> the left side with the unsecable character [ ]
>>
>> I read in the printf command I could use : printf( "%#30s" , $mystring ) ;
>> to display $mystring string w
Jean-Philippe Battu wrote:
Hello
I would like to print a string formatted on the right side and fill in
the left side with the unsecable character [ ]
I read in the printf command I could use : printf( "%#30s" , $mystring ) ;
to display $mystring string with the character # before (on the le
Hello
I would like to print a string formatted on the right side and fill in
the left side with the unsecable character [ ]
I read in the printf command I could use : printf( "%#30s" , $mystring ) ;
to display $mystring string with the character # before (on the left)
and I try to replace #
On Friday 27 May 2005 04:49, mayo wrote:
> I need to be able to format data.
>
> Printf() is perfect because I need a certain amount of characters (30
> for address).
>
> However I need this formatted data to be inside a file that's fwrite()
> and then FTPed to a distributor who will parse it and i
Are you looking for the sprintf() function?
graeme
mayo wrote:
I need to be able to format data.
Printf() is perfect because I need a certain amount of characters (30
for address).
However I need this formatted data to be inside a file that's fwrite()
and then FTPed to a distributor who w
I need to be able to format data.
Printf() is perfect because I need a certain amount of characters (30
for address).
However I need this formatted data to be inside a file that's fwrite()
and then FTPed to a distributor who will parse it and input into their
database.
printf("% 4d",$orderID[0
Try sprintf().
-Original Message-
From: mayo [mailto:[EMAIL PROTECTED]
Sent: 27 May 2005 14:02
To: php-db@lists.php.net
Subject: [PHP-DB] printf() in a variable, or alternative to
I need to be able to format data.
Printf() is perfect because I need a certain amount of characters
I need to be able to format data.
Printf() is perfect because I need a certain amount of characters (30
for address).
However I need this formatted data to be inside a file that's fwrite()
and then FTPed to a distributor who will parse it and input into their
database.
printf("% 4d",$ord
I need to be able to format data.
Printf() is perfect because I need a certain amount of characters (30
for address).
However I need this formatted data to be inside a file that's fwrite()
and then FTPed to a distributor who will parse it and input into their
database.
printf("% 4d",$ord
Hello,
I'm new to PHP and mySQL. I'm trying to find more info on printf. Specifically
setting table properties, like height,width,background. Hoping someone can point me in
the right direction.
Thanks for the Help,
Mike
12 matches
Mail list logo