(Sorry for posting this twice, I think I put it in the wrong forum before). In the following code, I am trying to get it to insert data into two rows in a table in a database. However, not matter what I try I just can't seem to get it to work. Any help would be much appreciated... Here is my latest effort:
<?php
$source = "wtfemail@email.com";
$destination = "roriginal@email.com";
$link = mysql_connect('localhost', 'username', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$db_selected = mysql_select_db('mail', $link);
if (!$db_selected) {
die ('error: ' . mysql_error());
}
$sql = "INSERT INTO 'forwardings'
('source', 'destination') VALUES ('$source', '$destination')";
mysql_query($sql);
mysql_close($link);
?>