i have been working on a link submition page for my site, it's a popup windows that has some simple if statements. My problem is that when i try to inser a sql statement to enter data into the database i get a parse errors.
my problem is not really knowing where to enter the sql statememnt
here is the code.
<---code--->
// this just checks for user entered data
if ( !$who || !$wwwlink )
{
print "not all information entered";
}
else
{
//validates if the link enterd exists or not
$up = fsockopen("$wwwlink", 80, &$errno, &$errstr, 20);
if($up)
{
print "i found that url";
}
else
{
print "url does not exist";
}
}
?>
<---code--->
where would i enter the sql query to add information into the database. Am new fairly new to this, and am sure this is very simple ... apparenlty not easy enought for me
i hope this didn't confuse you that much ...
thanx in advance.