What's wrong with this?
[code:jl6tjb47]<?php
$con = mysql_connect("rdbms.strato.de","*******","********");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("DB407820", $con);
mysql_query("INSERT INTO favicon (faviconURL, siteURL, email)
VALUES
('$_POST[faviconURL]','$_POST[siteURL]','$_POST[email]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Your Favicon has been added, refresh the page to see it.";
mysql_close($con)
?>[/code:jl6tjb47]
I get this, "Parse error: syntax error, unexpected ';' in /mnt/web2/43/79/51648779/htdocs/JBP/favicon/submit_favicon.php on line 18"
Then I take the ";" so I end up with this:
[code:jl6tjb47]
<?php
$con = mysql_connect("rdbms.strato.de","U407820","thomas02");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("DB407820", $con);
mysql_query("INSERT INTO favicon (faviconURL, siteURL, email)
VALUES
('$_POST[faviconURL]','$_POST[siteURL]','$_POST[email]')"
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Your Favicon has been added, refresh the page to see it.";
mysql_close($con)
?>
[/code:jl6tjb47]
And get this "Parse error: syntax error, unexpected T_IF in /mnt/web2/43/79/51648779/htdocs/JBP/favicon/submit_favicon.php on line 19".
You can see the form and what happens here... [url:jl6tjb47]http://www.jbportal.net/favicon/favicon.php[/url:jl6tjb47]
Any ideas???