| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor|
|Set mysql value to a php variable|
| 10:56 am on Feb 9, 2013 (gmt 0)|
I want to set php variable "$vatnumber" with the value "IT123456789" from the following mysql database.
Column: customfields / Value:
Value "IT123456789" doesn't have always the same letters and numbers nor the same number of digits.
$vatnumber = $data["VAT"]; It's not working..
How can i do that?
| 12:14 pm on Feb 9, 2013 (gmt 0)|
Seeing more and more of this kind of what I consider abuse of databases: storing arrays in serialized form instead of using the the database to allow it to work with the data.
Did you unserialize the string back into an array ?
| 2:11 pm on Feb 9, 2013 (gmt 0)|
No. I'm not sure if i can do that since my script is encoded with ioncube.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved