andy1090 Posted September 2, 2010 Share Posted September 2, 2010 $connet = mysql_connect("host", "db_username", "pass") or die(mysql_error()); $user = $_SESSION['SESS_FIRST_NAME']; mysql_select_db('db_name, $connet) or die(mysql_error()); mysql_query("SELECT members Get $earn='earned' WHERE $user='username' LIMIT 1;"); $earn = $total_earn; ?> <a>$<?php echo "$total_earn";?></a> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted September 2, 2010 Share Posted September 2, 2010 And what seems to be the problem? Quote Link to comment Share on other sites More sharing options...
andy1090 Posted September 2, 2010 Author Share Posted September 2, 2010 well i want to get earned from the mysql and post it but i dont know how to get it to run 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.