optiplex Posted July 20, 2009 Share Posted July 20, 2009 hi everybody.. pls help me how to write this sql code into php.. $sql2 = "select t_nick ='$t_nick', sum(wd_amount) as TWdraw from withdraw WHERE t_nick ='$t_nick'"; $res = mysql_query($sql2); echo mysql_error(); i want to display TWdraw.. tq VM Link to comment https://forums.phpfreaks.com/topic/166615-please-help-me/ Share on other sites More sharing options...
MatthewJ Posted July 20, 2009 Share Posted July 20, 2009 That is php add $row = mysql_fetch_assoc($res); below the $res line to display echo $row['TWdraw']; Link to comment https://forums.phpfreaks.com/topic/166615-please-help-me/#findComment-878571 Share on other sites More sharing options...
optiplex Posted July 20, 2009 Author Share Posted July 20, 2009 tq so much... Link to comment https://forums.phpfreaks.com/topic/166615-please-help-me/#findComment-878572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.