putting add info from DB table in to array

Codes here !

Moderators: egami, macek, gesf

Post Reply
Jason_C
php-forum Active User
php-forum Active User
Posts: 49
Joined: Sat Nov 18, 2006 7:32 am

Wed Oct 13, 2021 4:52 am

Code: Select all

CREATE TABLE `info` (
  `id` int(11) NOT NULL,
  `section` text NOT NULL,
  `content` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
The table below is what I have setup but having issues accessing the content based on the section needed.

I have tried...
$result['sectionname']['content']
but nothing shows.
What is the correct way to access each content using the section. without doing it one query for each one.
Post Reply