View unanswered posts | View active topics It is currently Wed Aug 17, 2022 3:22 pm

Reply to topic  [ 1 post ] 
 php code help!!!! 
Author Message
Junior Member

Joined: Mon Apr 12, 2004 6:49 pm
Posts: 1
I'm a beginner to php programming and keep having this error:
Parse error: parse error, unexpected $end in my drive\preupload.php on line 67

i'd appreciate any help you guys can offer. I've been trying to figure this one out on my own to no avail. thanx in advance. here is the actual code:

include 'connect_content.php';

// initialization
$photo_upload_fields = '';
$counter = 1;

// If we want more fields, then use, preupload.php?number_of_fields=20
$number_of_fields = (isset($_GET['number_of_fields'])) ?
(int)($_GET['number_of_fields']) : 5;

// Firstly Lets build the Category List
$result = mysql_query('SELECT category_id,category_name FROM gallery_category');
while($row = mysql_fetch_array($result)) {
$photo_category_list .= <<<__HTML_END
<option value="$row[0]">$row[1]</option>\n
mysql_free_result( $result );

// Lets build the Image Uploading fields
while($counter <= $number_of_fields) {
$photo_upload_fields .= <<<__HTML_END
Photo {$counter}:
<input name="photo_filename[]"
type="file" />
<textarea name="photo_caption[]" cols="30"

// Final Output
echo <<<__HTML_END
<title>Lets upload Photos</title>
<form enctype="multipart/form-data"
action="upload.php" method="post"
<table width="90%" border="0"
align="center" style="width: 90%;">
Select Category
<select name="category">
<!—Insert the image fields here ==)
<input type="submit" name="submit"
value="Add Photos" />

if you want to view the file you can go here:
thanx again

Mon Apr 12, 2004 6:55 pm
Report this post
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.