I´m new to SQL and PHP, so pardon me for asking something that´s probably very simple, but for some reason, even though I don´t have any loops in my code, when it get´s to this part, it continues loading the page indefinitely. Here is the snippet of the code that does that.
mysql_connect("localhost:8080", "root@localhost") or
die("Could not connect: " . mysql_error());
mysql_select_db("tickets");
$val1 = $_POST["Name"];
$val2 = $_POST["Mail"];
$val3 = $_POST["Betreff"];
$val4 = $_POST["Wichtigkeitsstufe"];
$val5 = $_POST["Nachricht"];
$sql = "INSERT INTO Ticket (Name, E-MailOderErreichbarkeitBeiRückfragen, RaumbezeichnungBzwNummer, Wichtigkeitsstufe, Problembeschreibungausführlich)
VALUES ({$val1}, {$val2}, {$val3}, {$val4}, {$val5})";
I get the values for $val1,2,3,... from input boxes in an html file. Thanks in advance, cheers!
Edit: I was running both the DB and the webserver on the same ports. Thanks again for the help!