I have the following scripts install on my xampp server and they work OK. However, when I uploaded the scripts to the webserver they fail and the database does not get filled and nothing echoed to the website. The hosting company say there is an error: addexec.php causes
PHP Fatal error: Cannot use string offset as an array in line 6
Following are the scripts - please help.
[php]
addexe.php
index.php
PICTURE UPLOAD
Select JPG Image (up to 2MB):
Your Name
Your Email Address or Phone Number:
Your Measurements in Centimeters:
Height (cm): Bust (cm): Waist (cm): Hip (cm): Weight (KG):
Photo Archieve
if your picture does not load below, then the file size is more than 2MB
<?php include('config.php'); $result = mysql_query("SELECT * FROM photos"); while($row = mysql_fetch_array($result)) { echo '
';
echo '';
echo '
';
}
?>
[/php]
'.$row['caption'].'
'; echo 'The config.php is the database connection script which works.