Heya!
I've been trying to create a pretty basic database function. The only problem is that I'm not sure what's the problem...Because it doesn't work! It gives me parse errors on all of the database executions
<?
@mysql_connect("localhost", "Alper", "deniz") or die("Could not connect to MySQL server!");
@mysql_select_db("si") or die("Could not select si database!");
//To create newest, biggest id
INSERT INTO tbl VALUES('BrinOnish','BrinOnish','BrinOnish','BrinOnish');
//Get the biggest id so we can use
$id = SELECT id FROM si WHERE username = 'BrinOnish';
//Delete id getter for next use
DELETE FROM si WHERE username='BrinOnish';
Print $id;
//INSERT INTO tbl(username,email) VALUES("$username","email");
?>
There are a total of 4 columns in the table and the password and all of the connection information is correct. The id is auto_increment. What This thing is trying to do is simply get the next user number in order of the last user.... More recent, bigger number.
Any ideas? :o
Thanks !