bakigkgz Posted January 6, 2009 Share Posted January 6, 2009 hello i want to take only one value the my database table but i can not my code $sql="SELECT market_id FROM cashier WHERE (cashier_name='$myusername' and cashier_id='$mypassword')"; $result=mysql_query($sql); echo "$result"; how can i have " market_id" thanks Link to comment https://forums.phpfreaks.com/topic/139645-bakigkgz/ Share on other sites More sharing options...
PravinS Posted January 6, 2009 Share Posted January 6, 2009 $sql="SELECT market_id FROM cashier WHERE (cashier_name='$myusername' and cashier_id='$mypassword')"; $result=mysql_query($sql); $row = mysql_fetch_row($result); echo $row[0]; // will display market_id Link to comment https://forums.phpfreaks.com/topic/139645-bakigkgz/#findComment-730678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.