hey,
so im making a site, www.nickscomputing.com , and i want a points system. Members will be rewarded with points when they write a good article. So i made a new column called points, and a test file to echo the points. Here is that test file:
Whats wrong with this? All i get are errors, with and without the @ in front of whe while.
If anyone wants to get first-hand access to the files and wants to help me further, email me and i'll give you ftp access.
email: bigggnick@gmail.com
so im making a site, www.nickscomputing.com , and i want a points system. Members will be rewarded with points when they write a good article. So i made a new column called points, and a test file to echo the points. Here is that test file:
PHP:
<?php
$con = mysql_connect("localhost","username","*************");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("smf_members", $con);
$result = mysql_query("SELECT points FROM smf_members
WHERE memberName='Nick'");
while($row = mysql_fetch_array($result))
{
echo $row['memberName'] . " has " . $row['points'];
echo "<br />";
}
?>
Whats wrong with this? All i get are errors, with and without the @ in front of whe while.
If anyone wants to get first-hand access to the files and wants to help me further, email me and i'll give you ftp access.
email: bigggnick@gmail.com