First of I will say I apologize for my title. I don't really know what the correct names of the mysql tables are. So I have a mysql table that looks like the following.
'id' | 'username' | 'password' | 'product' | 'price'
'1' | 'ben' | 'hashedpw' | 'desktop' | '120'
'2' | 'steve' | 'hashedpw' | 'laptop' | '300'
Lets say my database is named hardware and my user for the database is called owner the password is called password and the table is called tech
How would I be able to use PHP to echo the product prices.
$sql = "select * from users";
$query = mysql_query( $sql );
$row['prodyct'];
What I'm having trouble figuring out is how to get the result to show the price of desktop only. I can't use ID since some ID's will be missing at different times.