Im trying to run an insert statement that inserts the site name, url, and compiled html code to my mysql table. Needless to say it is not working and I'm sure its the compiled html field that is giving me problems. Here is my code, any help would be greatly appreciated :-\
$compurl = "<a href="http://$txturl" target="_blank">$txtname</>";
$query = "INSERT INTO PXS_Links(site_name, site_url, compiled_url) VALUES('$name', '$url','$compurl')";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
I dont think it likes the double quotes
here is an example of what i want to put into the table:
example:
$name = 'Yahoo'
$url = 'www.yahoo.com'
$compurl should be <a href="http://www.yahoo.com" "_blank">Yahoo</>