[SOLVED]Single array 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
User avatar
mhouldridge
Forum Contributor
Posts: 267
Joined: Wed Jan 26, 2005 5:13 am

[SOLVED]Single array value

Post by mhouldridge »

Just a note to myself or anyone else who need to find one value from a database

$raid_query = mysql_query("SELECT `value` FROM `raid` WHERE id = '$raid'");
$raidcost = mysql_result($raid_query, "value");
Post Reply