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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/139645-bakigkgz/#findComment-730678 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.