Jump to content

syntax error


sungpeng

Recommended Posts

<?php 
include "config.php"; 

$code="<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_s-xclick'>
<input type='hidden' name='hosted_button_id' value='KC2XXFRYLSBF6'>
<input type='image' src='https://www.paypal.com/en_GB/SG/i/btn/btn_buynowCC_LG.gif' border='0' name='submit' alt='PayPal - The safer, easier way to pay online.'>
<img alt='' border='0' src='https://www.paypal.com/en_GB/i/scr/pixel.gif' width='1' height='1'>
</form>
";

echo "$code";

mysql_query("INSERT INTO paybutton (code)
VALUES ('$code')")or die(mysql_error());   
  
?>

 

I have an error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'https://www.paypal.com/cgi-bin/webscr' method='post'> "

 

I don't know what went wrong. Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/206139-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.