Jump to content

PHP Query -character length


ridzuan

Recommended Posts

hi,

 

i need some help, in mysql query the output show as below :-

020000000000000000000790715035426   FIRSTNAME LASTNAME                                                              800                 000000000015900000000000013500000000000121700

but when i do

 <?php 
 $data1 = mysql_query("SELECT * FROM details_view WHERE hashtotal = '$id'") 
 or die(mysql_error()); 
 while($info1 = mysql_fetch_array( $data1 )) 
 { 
 print $info1['details'];
 } 
 ;
 ?>

the output is :-

020000000000000000000790715035426 FIRSTNAME LASTNAME 800 000000000015900000000000013500000000000121700

How to make the php query same character length as mysql query?

 

 

thank you.

Link to comment
https://forums.phpfreaks.com/topic/281924-php-query-character-length/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.