FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mysqli and mysqli_field_len
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mysqli and mysqli_field_len [message #171579 is a reply to message #171578] Tue, 11 January 2011 00:02 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/10/2011 6:31 PM, DH wrote:
> I was migrating a large project from PHP's mysql functions to mysqli
> functions. One project relies on mysql_field_len() and I do NOT find a
> comparable mysqli_field_len().
>
> How the heck can one use mysqli to grab the defined field length for
> all columns?
>
> I can't believe mysqli_field_len() does not exist, and I don't find a
> new function to grab the defined length (sure, the data length can be
> fetched, but I don't care about that, for example I need the length
> 255 from varchar(255) or 30 from varchar(30)

It's part of the result set. See MySQLi_result->lengths() or
mysqli_fetch_lengths($result).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: More advanced PHP books
Next Topic: Need help with simple script ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 08:53:42 GMT 2024

Total time taken to generate the page: 0.04328 seconds