Do you have questions regarding other database enginges (not MySQL) -- ask here!
Moderators: macek, egami, gesf
This sounds real dumb, but I can do db queries to get multiple rows, but I just can't work a pg_select or something like that to just give me one single field from the database (I just want one item from a lookup table). Could some please sling me a working bit of code that does that?
- New php-forum User
- Posts: 1
- Joined: Thu Aug 25, 2011 9:01 pm
$query = "SELECT fieldname FROM table WHERE fieldname = 'value' LIMIT 1";
- php-forum GURU
- Posts: 2196
- Joined: Wed Oct 06, 2010 11:19 am
- Location: Happy Valley, UT
Return to Other Database Engines
Who is online
Users browsing this forum: No registered users and 0 guests