ID: 32376 Updated by: [EMAIL PROTECTED] Reported By: mangawy1 at hotmail dot com -Status: Open +Status: Bogus Bug Type: *Database Functions Operating System: winxp PHP Version: 4.3.10 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-03-19 21:36:40] mangawy1 at hotmail dot com Description: ------------ i try to save php source code in database but it can't be save and display syntax error in sql statment Reproduce code: --------------- <form method=\"post\" action=\"$PHP_SELF?action=doinsert\"> <textarea dir=\"ltr\" name=\"funexampls\" rows=\"60\" cols=\"50\"></textarea><br> <input type=\"submit\" name=\"$submit\"> if ($submit){ $result= mysql_query("insert into functions values ('$funexampls')") or die (mysql_error() );; Expected result: ---------------- i'm try to wirte this php code in textarea <?php if (!isset($_COOKIE))$counter1=1; setcookie('login2',$counter); $counter=$_COOKIE[login2]+1; setcookie('login2',$counter); echo $counter; ?> to be save in database but this error massage display: 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 'login2',$counter); $counter=$_COOKIE[login2]+1; setcookie('lo ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32376&edit=1