I have created a table in SQLDeveloper, populated it with user data (Username, email, password, password) in PHP and am able to delete user data as well. Now what I want to do is modify data in table. The only syntax I can find online is that for MySQL and I'm trying to fix it so it can work in SQLDeveloper. This is the code I'm using that's set up for MySQL.
My Table is called MANCITY and the only thing I wish to update is the customer username. I've left it in MySQL form rather than have a mix of some things I think may be right fo SQLDeveloper and get myself mixed with the two. Thanks!
<?php
$dbuser = "s";
$dbpassword = "t";
$db = "o";
$con=mysqli_connect("$dbuser,$dbpassword,$db");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"UPDATE MANCITY SET USERNAME=JOHN
WHERE USERNAME='JON' AND EMAIL='[email protected]'");
mysqli_close($con);
?>
Edit:
My main issue is how to change it so it can connect to my Oracle database.
$con = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);no quotes.$con=oci_connect("system","123","localhost/orcl");the rest of the queries resemble themselves a lot. Have you Google'd Oracle SQL?