[PHP-DB] Error in non existing line

2001-04-06 Thread Dan Guja

Parse error: parse error in /home/httpd/.../htdocs/index.php on line 90

And I have just 89 lines

Here are the  last linse from index.html:
?php
if ($verify ==7){
$connection = mysql_connect("localhost", "user", "password")
or die("Cannot connect");
$db = mysql_select_db("rating" , $connection);
$sql = " update tb 
 set rating=rating+$rating 
 where image='$arr_Images[$randID]';
$sql_result= mysql_query($sql , $connection);
mysql_close($connection);
 }
?
/body
/html



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Error in non existing line

2001-04-06 Thread kuk

Hello, Dan

You did not close { } statement.

DG Parse error: parse error in /home/httpd/.../htdocs/index.php on line 90

DG And I have just 89 lines

DG Here are the  last linse from index.html:
DG ?php
DG if ($verify ==7){
DG $connection = mysql_connect("localhost", "user", "password")
DG or die("Cannot connect");
DG $db = mysql_select_db("rating" , $connection);
DG $sql = " update tb 
DG  set rating=rating+$rating 
DG  where image='$arr_Images[$randID]';
DG $sql_result= mysql_query($sql , $connection);
DG mysql_close($connection);
DG  }
?
DG /body
DG /html


-- 
Alexander mailto:[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Error in non existing line

2001-04-06 Thread Julio Cuz, Jr.

Dan,

I think you're missing the end quotes (")  here:

...
 where image='$arr_Images[$randID]'  "  ;
...

At 10:57 PM 4/6/2001 +0300, Dan Guja wrote:
Parse error: parse error in /home/httpd/.../htdocs/index.php on line 90

And I have just 89 lines

Here are the  last linse from index.html:
?php
if ($verify ==7){
$connection = mysql_connect("localhost", "user", "password")
 or die("Cannot connect");
$db = mysql_select_db("rating" , $connection);
$sql = " update tb
  set rating=rating+$rating
  where image='$arr_Images[$randID]';
$sql_result= mysql_query($sql , $connection);
mysql_close($connection);
  }
?
/body
/html



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Julio Cuz, Jr.
Riverside Community College
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]