Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Set mysql value to a php variable


nimonogi - 10:56 am on Feb 9, 2013 (gmt 0)


Hello,

I want to set php variable "$vatnumber" with the value "IT123456789" from the following mysql database.

Table: invoicedata
Column: customfields / Value:
a:1:{i:0;a:3:{s:2:"id";s:1:"7";s:9:"fieldname";s:3:"VAT";s:5:"value";s:13:"IT123456789";}}

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?

Thanks!


Thread source:: http://www.webmasterworld.com/php/4544102.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com