Jump to content

Recommended Posts

This has to do with a MySQL Result object, and the syntax goes like this $result -> flags. It returns a number which i am trying to associate with specific functions I have written to actually format and verify if the specific value in a specific row matches the criteria when entering/leaving the DB. Is there anyone who knows where i can find a list to associate with the number returned by this property call?

Link to comment
https://forums.phpfreaks.com/topic/230055-php-mysql-bit-flags/
Share on other sites

I apologize, sometimes i can be vague. I am doing a simple query to my DB.

$result = $db->query('SELECT * FROM '.%table_name%.' LIMIT 0,0');

My goal is to retrieve information about the specific fields of a table such as the maximum characters allowed to be placed in a field and so on.

I am using $fields = $result->fetch_fields();

Which in turn returns a mysqli result object.

I can then loop through the properties of the $fields and retrieve the information i am looking for.

The only problem is that when i do $fields -> flags, i get a bit-flag specific to the MYSQL language.

I am trying to map this number to a function essentially but i need to know what this number represents according to mysql but cannot find anything about it anywhere. Only the same examples on every website.

Link to comment
https://forums.phpfreaks.com/topic/230055-php-mysql-bit-flags/#findComment-1184831
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.