Jump to content

generate array from DB


zetcoby

Recommended Posts

hi guys, i wanna make a multilingual site that will store all the content in a DB for each language, i want it easy to edit for other persons using a admin panel, that is why i want to use a DB.

The thing that i need to retrive data from the DB and insert it in to array.

and in DB i wanted to do it like this:

 

 

  |++ID++|++++VAR++ |+++++++VAL+++++++|

  |++1++  |+++title+++    |++Welcome to my site++|

  |++2++ |++content++  |++some content+++++++|

 

When i get this from the DB i want it to put it all in array like this:

 array( 'title' => 'Welcome to my site', 'content' => 'some content');

Link to comment
https://forums.phpfreaks.com/topic/266903-generate-array-from-db/
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.