| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jan 2008
Posts: 21
![]() | PHP Parse error... Can't find where... Hey guys... I'm working on a small PHP file PHP Code: Line 44 in the code is PHP Code: ????: NamePros.com http://www.namepros.com/showthread.php?t=450273 PHP Code: I've been going crazy trying to find where the error is coming from. Any assistance would be greatly appreciated. Thanks Sebastian (RoTE) |
| |
| | #2 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Your problem: PHP Code: PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| New Member Join Date: Jan 2008
Posts: 21
![]() | Man... thanks a lot... that did it... I would have never found that missing "... Thank you again. EDIT Any insight as to why the script would not write to the database?
Last edited by RoTE; 03-28-2008 at 09:11 AM.
|
| |
| | #4 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | most likely invalid sql. Try echoing out mysql_error() after the mysql_query line. Also why are you putting the mysql_query command within a variable. You are never using the variable. Also you should be sanitizing the data before entering into the database. Use a function such as mysql_real_escape_string() on the data before entering it.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #6 (permalink) | ||||||||
| New Member Join Date: Jan 2008
Posts: 21
![]() |
Thanks guys... I figured it out with all your help and some other assistance. The observation about sanitizing the data and cleaning the id... I'll have to implement those as well.. ????: NamePros.com http://www.namepros.com/showthread.php?t=450273 Thanks again. Juan | ||||||||
| |
| | #7 (permalink) | ||||
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=450273 - Kurniawan
__________________ | ||||
| |