Jump to content

How to save data from MySQL to php file


Recommended Posts

Hello. How I can read data from MySQL? I fought link to documentation:

 

http://doc.prestashop.com/display/PS15/DB+class+best+practices#DBclassbestpractices-getValue()

 

but I dont know how to use it... Can you help me please?

 

Why this not work?:

 

$testik = 'SELECT city * FROM ps_address';
$zadara = Db::getInstance()->getValue($testik)

 

work only:

$testik 'SELECT * FROM ps_address';

 

and it save to $testik only id (I think,because it show 1)

Edited by hypnozc (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...