Jump to content

Pulling Variable from Mysql Table


josephicon

Recommended Posts

Hi All

 

I Currently have:

 

print "" .(($get_fields->fieldname == "id" ) ? "<input name=$get_fields->fieldname value=$nextid $get_fields->fieldview" :"other box").

 

I would prefer to keep  $nextid in the table itself so that I am not limited to the "id" field and its variable and output it as $nextid which is defined on the page . is this possible.

 

If not how can I add more conditions as opossed to the current to the current 2 print eg $get_fields->fieldname == "status" $get_fields->fieldname == "sector".

 

Many Thanks

Link to comment
https://forums.phpfreaks.com/topic/38664-pulling-variable-from-mysql-table/
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.