Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-12-2004, 12:16 AM   #1
2483
Guest
 
Posts: n/a
Question why does this not work

PHP Code:
<form action="uploader.php" enctype="multipart/form-data">
Upload pictures into album:
<?php
$server
='cslab103.cs.edinboro.edu';
$user='f051g4';
$pass='group4';
$db='f051g4';
$link mysql_connect($server,$user,$pass);
if (!
$link)
{
print 
"Cannot connect to server";
exit;
}
mysql_select_db("$db",$link)
or die(
"Couldn't open $db: ".mysql_error());
$query "SELECT * FROM albums";
$results mysql_query($query$link);
$num_results mysql_num_rows($results);
print 
"<select name='album'>";
while (
$row=mysql_fetch_array($results))
{
print 
"<option>$row[name]\n";
}
?>

<input type="file" name="data">
<input type="submit" value="Send files">


</form>

in ie6 everything is ok, in mozilla or mozilla firefox it doesn't show anything but the select box
if you go to view source its all there

Last edited by 2483; 11-12-2004 at 12:28 AM.
  Reply With Quote
Old 11-12-2004, 12:26 AM   #2
2483
Guest
 
Posts: n/a
......................
  Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:11 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2