Jump to content

Mysql fieldname from table.


josephicon

Recommended Posts

Hi All,

 

I have 2 tables I would like one to give the field name for the print command for the other.

 

$get_prop->address1

 

instead of typing address1 i would like to put $get_fields->fieldname and that would have the value of address1.

 

I have tried this but have it wont work.

print "$get_prop->$get_fields->fieldname<P>";

 

Many Thanks.

Joseph

 

Link to comment
https://forums.phpfreaks.com/topic/41659-mysql-fieldname-from-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.