have you viewed the source? - could be something to do with the semi-colons
or, more likely, what addslashes($data_data) evaluates to. 

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
> Sent: 21 June 2001 20:39
> To: [EMAIL PROTECTED]
> Subject: passing values to a javascript variable
> 
> 
> Hello!
> 
> The following give me: unterminated string constant (this is 
> a javascript
> error)
> 
> when I execute the following:
> 
>    while ($row = mysql_fetch_array ($data_query_action)) {
>     $data_data = $row["data_data"];
>    }
>        echo "<script language=\"javascript\">\n var
> ndata=\"".addslashes($data_data)."\";\nPutCode (ndata);\n</script>";
> 
> Ideas? Please I need help.
> 
> Thank you,
> 
> Rom
> 
> 

-- 
PHP General 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]

Reply via email to