Topic awaiting preservation: MySQL/PHP Troubles - unexpected '?' (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-12-2004 03:44
I decided to attempt and learn how to use MySQL w/ PHP. In searching this forum I found Zend and their tutorial dealing with PHP & MySQL. I pretty much copied and pasted to code from the tutorial into Dreamweaver, saved the file, and uploaded it. Obviously I replaced their user information with my own. The code is below. For obvious reasons I changed my login information. code: <?php
code: Parse error: parse error, unexpected '?' in /home/.waikiki/seib3184/polkadotboxers.com/php/dbexample.php on line 32
code:
|
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-12-2004 03:45
BTW, I used myPHP Admin to create the table. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 10-12-2004 09:42
the code you have above is ok. |
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-12-2004 15:54
What do you mean uploaded correctly, TP? I use CuteFTP for mac for my FTP and I uploaded it like I would any PHP file. I double checked with Dreamhost to ensure that my login information was correct, and it was. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-12-2004 18:10
Yeah I can't find an error either. Give this a try on the first line put |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 10-12-2004 18:32
Sometimes if you copy & paste from a webpage you pick up hidden characters that do not show up in most editors. These hidden characters can really mess things up. |
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-12-2004 19:27
Thanks for the help Norm & Bit. I tried what you guys side but it didn't change anything. Even with the error_reporting(E_ALL); included and retyping the code I'm still getting an error message in the same line. code: print ("<table cellpadding=10 border=1>");
code: <?php
|
Paranoid (IV) Inmate From: Maryland, USA |
posted 10-13-2004 00:22
What kind of data should be in the result set? |
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-13-2004 01:34
Thanks bit! I copied and pasted without even checking it. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-13-2004 04:01
Nope if the permissions were wrong you wouldn't get any output you'd end up with a 403 error. |
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-13-2004 04:16
I'll try the comment suggestion but can you expand on encoding error? I don't know what that means. |
Nervous Wreck (II) Inmate From: Alderaan |
posted 10-13-2004 04:38
What the hell? |