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> Link to comment https://forums.phpfreaks.com/topic/212315-im-making-a-file-host-site-but-i-want-a-auto-update-earn/ Share on other sites More sharing options...
Pikachu2000 Posted September 2, 2010 Share Posted September 2, 2010 And what seems to be the problem? Link to comment https://forums.phpfreaks.com/topic/212315-im-making-a-file-host-site-but-i-want-a-auto-update-earn/#findComment-1106245 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 Link to comment https://forums.phpfreaks.com/topic/212315-im-making-a-file-host-site-but-i-want-a-auto-update-earn/#findComment-1106249 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.