I get error:
-------------
Warning: mysql_query() [function.mysql-query]: Access denied for user '3ixteam'vpq@'localhost' (using password: NO) in /home/eponaonl/public_html/logintest/update.php on line 16
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/eponaonl/public_html/logintest/update.php on line 16
Access denied for user '3ixteam'vpq@'localhost' (using password: NO)
------------------
with this code
----------------------------------
<?php
$uid = $_POST['uid'];
$score = $_POST['score'];
$servername = "localhost";
$username = "eponaonl_admin";
$password = "****";
$dbname = "eponaonl_horse";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "UPDATE members SET score = $score WHERE id = $uid ";
$result = mysql_query($sql);
if (!$result) {
echo mysql_error();
exit;
}
$conn->close();
?>[/code:9cbr76xc]
[img="http://i.imgur.com/b5sWMjM.png"]