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/139644-solved-bakigkgz/ 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 Link to comment https://forums.phpfreaks.com/topic/139644-solved-bakigkgz/#findComment-730647 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 />"; } Link to comment https://forums.phpfreaks.com/topic/139644-solved-bakigkgz/#findComment-730648 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 Link to comment https://forums.phpfreaks.com/topic/139644-solved-bakigkgz/#findComment-730653 Share on other sites More sharing options...
homer.favenir Posted January 6, 2009 Share Posted January 6, 2009 please click the topic solve Link to comment https://forums.phpfreaks.com/topic/139644-solved-bakigkgz/#findComment-730655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.