![]() |
| ||
| parse error, unexpected T_STRING in I'm trying to learn php and I'm trying to build a simple form that stores data. However, I'm getting this error message when I submit my form: Parse error: parse error, unexpected T_STRING in /sites/yuma2/swaters210/home/public_html/music/music.php on line 7 you check out my form here: http://www.stevenwaters.net/music/index.html
FYI: I do know I have to replace password with an actual password, which I have.
Can someone check it out for me? I would appreciate it. I was going to post in a similiar thread, but wasn't sure if anybody would see it. |
| ||
| Re: parse error, unexpected T_STRING in What is exactly line 7 within your .php file? It's just a syntax error, and can be worked out momentarily for you :) Cheers. |
| ||
| Re: parse error, unexpected T_STRING in What is this ?!? CREATE TABLE data (artist VARCHAR(30), song VARCHAR(30), album VARCHAR(30)); - Mitko Kostov |
| ||
| Re: parse error, unexpected T_STRING in yes that's the problem then! lol that code either shouldnt be there! it's not valid PHP, if its a valid mySQL function it will need wrapped in a mysql_query() statement :) Welldone Mitko for spotting it ;) |
| ||
| Re: parse error, unexpected T_STRING in How do you wrap it in a mysql_query() statement? I was just following this tutorial here: http://php.about.com/od/phpbasics/ss/mysql_files_2.htm |
| ||
| Re: parse error, unexpected T_STRING in the purpose of this, is just to check if the SQL table actually exists before you INSERT data into it. If you're sure that the table exists (that you've created it), then you won't need this, its just to stop noobies from doing insert's into a table that doesnt' exist :) |
| ||
| Re: parse error, unexpected T_STRING in I see. I'm lacking knowledge in the basics. Thanks for all your help. -Newbie |
| ||
| Re: parse error, unexpected T_STRING in Any time ;) |
| All times are GMT -4. The time now is 5:04 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC