cldev01x
New Member
- Messages
- 8
- Reaction score
- 0
- Points
- 1
I'm scratching my head on this a little, I would be very grateful for some help.
I am attempting to make a very simple UPDATE to a specific row on a MySQL table from PHP. I have tried using PDO but cannot get this to work so I have simplified it to try and find the problem.
I do not get any errors but I also do not get any UPDATE. Can anyone help?
I am attempting to make a very simple UPDATE to a specific row on a MySQL table from PHP. I have tried using PDO but cannot get this to work so I have simplified it to try and find the problem.
I do not get any errors but I also do not get any UPDATE. Can anyone help?
Code:
<?php
require_once 'dbconfig.php';
$CustNo = 103;
$conn = mysqli_connect($host,$username,$password,$dbname);
if (!$conn)
{
die('Could not connect: ' . mysql_error());
}
$quUpdate = "UPDATE customers SET creditlimit = 20000000 WHERE customerNumber = 103";
$RESULTSTART = @mysql_query($quUpdate , $conn ) or die(mysql_error());
mysqli_close($conn);
?>
Last edited by a moderator: