load row into array based on pre-defined value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
someguyhere
Forum Contributor
Posts: 181
Joined: Sun Jul 27, 2008 3:24 pm

load row into array based on pre-defined value

Post by someguyhere »

With a db table like this:
Image

How would I load the entire row into an array based on the field page_url?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: load row into array based on pre-defined value

Post by Celauran »

Code: Select all

SELECT * FROM ag_pages WHERE page_url = 'whatever'
Post Reply