Re: Parse Errors...
| From: | Micah Stevens | Date: | Thu, 09 Oct 2003 19:25:48 +0000 |
| Subject: | Re: Parse Errors... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30938@lists.php.net to get a copy of this message | ||
What line is the parse error on?
On Thu October 9 2003 12:01 pm, NIPP, SCOTT V (SBCSI) wrote:
> I keep receiving a parse error every time I try and view the page I
> am working on. I am developing this very simple application in DreamWeaver
> MX 2004. Here are lines 3-16:
>
> <?php
> mysql_select_db($database_Prod, $Prod);
> $query_Host = "SELECT Name FROM systems";
> $Host = mysql_query($query_Host, $Prod) or die(mysql_error());
> $row_Host = mysql_fetch_assoc($Host);
> $totalRows_Host = mysql_num_rows($Host);
>
> mysql_select_db($database_ProdUsers, $ProdUsers);
> $query_UserMod = "SELECT shell, home_dir FROM modification";
> $UserMod = mysql_query($query_UserMod, $ProdUsers) or die(mysql_error());
> $row_UserMod = mysql_fetch_assoc($UserMod);
> $totalRows_UserMod = mysql_num_rows($UserMod);
>
> ?>
>
> I am simply attempting to pull data from two separate tables in two
> separate databases. Every time I try to view my work, I am getting a parse
> error on the 'mysql_select_db($database_ProdUsers, $ProdUsers);' regardless
> of whether this is the first or second mysql_select_db. I imagine that I
> am simply doing something obviously wrong here. Please help. Thanks.
>
>
> Scott Nipp
> Phone: (214) 858-1289
> E-mail: sn4265@sbc.com
> Web: http:\\ldsa.sbcld.sbc.com