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 Share on other sites More sharing options...
homer.favenir Posted January 6, 2009 Share Posted January 6, 2009 please echo $sql and show it here Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted January 6, 2009 Share Posted January 6, 2009 after your $result=mysql_query($sql); paste this while($row = mysql_fetch_array($result)) { echo $row['market_id']; echo "<br />"; } Quote Link to comment Share on other sites More sharing options...
bakigkgz Posted January 6, 2009 Author Share Posted January 6, 2009 thanks for your help solved my problem Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted January 6, 2009 Share Posted January 6, 2009 please click the topic solve Quote Link to comment 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.