I'm a bit new on working with MySQL on PHP.. I have the following code:
$result = mysql_query(sprintf('INSERT INTO portfolio (uid,symbol,shares) VALUES(%d,"%s",%d)
ON DUPLICATE KEY UPDATE shares=shares+%d',
$_SESSION["uid"], $s->symbol, $_POST["amount"], $_POST["amount"]));
Which isn't working.. Can anyone help me with it ?
Regards,
Federico.-


Sign In
Create Account


Back to top









