i want to display file that is in certain part. but it cant. i have try. please help meee
this is index.php
<?php
$sql="SELECT * FROM tbl_uploads";
$result_set=mysql_query($sql);
while($row=mysql_fetch_array($result_set)){
if ($part == 'a'){
echo "<td><a href=\"uploads/<?php"; echo "".$row['file']."?>\" target=\"_blank\">View</a>";
}
}
?>
i have database name tbl_uploads that have 5 table, thats id, file, type, size and part. so i want to display file that in part ‘a’ in database. pleaseee
Are you confusing Databases and Tables? Because you say the database is called tbl_uploads, but the query is calling a table with that name.
Does your script make a connection to the database first? I don’t see that in the code.