Re: Error? new set of eyes...
| From: | Jason Wong | Date: | Tue, 28 May 2002 14:04:12 +0000 |
| Subject: | Re: Error? new set of eyes... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19468@lists.php.net to get a copy of this message | ||
On Tuesday 28 May 2002 21:15, Jas wrote:
> Hello all,
> I have an error and I will be darned if I know why. Here is the code:
> <?php
> require '/path/to/database/connection/class/db.php';
> $table = "portfolio";
> $portfolio = @mysql_query("SELECT * FROM $table",$dbh);
> while ($sections = mysql_fetch_array($portfolio)) {
> list($id, $2d, $3d, $web, $prog, $tut, $proj) = $sections; // I think the
> error is on this line.
> }
> ?>
> Then I just echo the contents of the database array like so.
> <?php echo $2d; ?> // this is line 69
> And this is the error I am recieving:
> Parse error: parse error, expecting
T_VARIABLE' or
> '$'' in
> /localhost/portfolio.php on line 169
> Any help would be great!!
Variable names cannot start with a digit.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Peace cannot be kept by force; it can only be achieved by understanding.
-- Albert Einstein
*/