edhan
09-10-2003, 09:57 AM
Hi
Got this error when executing php:
Parse error: parse error, unexpected $ in /data/web/mydomain/popdisplay.php on line 162
<?php
require "config.php";
$dbConnect = mysql_pconnect(null,$dbUserName ,$dbPassword);
if($flag=="1"){
if($MainArea!='SelectOne'){
if($AreaID!='SelectOne'){
?>
<script>
window.opener.top.main.location="display_details.php?area=<? echo urlencode($AreaID); ?>&mes=1";
window.close();
</script>
..................
The config.php is :
<?
$dbUserName = "mysql";
$dbPassword = "mypass";
$dbConnect =0;
//the next two setting items for upload picture
$PicturePath = "/mydomain/UploadPicture/";
$PicturePhysicalPath="/var/www/html/mydomain/UploadPicture/";
$HostIP="192.168.1.118";
function gotoURL($url)
{
echo "<script language='javascript'>" ;
echo "location.href='" . $url . "'";
echo "</script>";
}
function popupMsg($msg)
{
echo "<script language='javascript'>" ;
echo "alert('" . $msg . "')";
echo "</script>";
}
function gotoBack()
{
echo "<script language='javascript'>" ;
echo "history.back()";
echo "</script>";
}
function gotoFrameURL($index,$url)
{
echo "<script language='javascript'>" ;
echo "window.frames(" . $index . ").location.href='" . $url . "'";
echo "</script>";
}
?>
--------------------
Any idea? When I execute other php codes, it simply shows the codes instead of the graphic mode.
Please advice!
Thank you.
Regards
Edward Han
Got this error when executing php:
Parse error: parse error, unexpected $ in /data/web/mydomain/popdisplay.php on line 162
<?php
require "config.php";
$dbConnect = mysql_pconnect(null,$dbUserName ,$dbPassword);
if($flag=="1"){
if($MainArea!='SelectOne'){
if($AreaID!='SelectOne'){
?>
<script>
window.opener.top.main.location="display_details.php?area=<? echo urlencode($AreaID); ?>&mes=1";
window.close();
</script>
..................
The config.php is :
<?
$dbUserName = "mysql";
$dbPassword = "mypass";
$dbConnect =0;
//the next two setting items for upload picture
$PicturePath = "/mydomain/UploadPicture/";
$PicturePhysicalPath="/var/www/html/mydomain/UploadPicture/";
$HostIP="192.168.1.118";
function gotoURL($url)
{
echo "<script language='javascript'>" ;
echo "location.href='" . $url . "'";
echo "</script>";
}
function popupMsg($msg)
{
echo "<script language='javascript'>" ;
echo "alert('" . $msg . "')";
echo "</script>";
}
function gotoBack()
{
echo "<script language='javascript'>" ;
echo "history.back()";
echo "</script>";
}
function gotoFrameURL($index,$url)
{
echo "<script language='javascript'>" ;
echo "window.frames(" . $index . ").location.href='" . $url . "'";
echo "</script>";
}
?>
--------------------
Any idea? When I execute other php codes, it simply shows the codes instead of the graphic mode.
Please advice!
Thank you.
Regards
Edward Han