Re: Parse Errors...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some times parse errors aren't in the line the interpreter says.
Looking at the code you sent I don't see the error but if your original code
is in a biger file try looking if the brackets {} or parenthesis of all the
code are balanced.


"Scott V Nipp" <sn4265@sbc.com> escribió en el mensaje
news:E9E12A91DAEB374493D8501FE29552FDC0DD28@txdlls2msgusr11.itservices.sbc.c
om...
> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux