Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
?> problem :|
Hi, I have a problem, have a look at the file first and then i will tell you what is wrong with it:
<?php
//Prisijungiame prie duomenu bazes
$link = mysql_connect ("localhost","username","password")
or die("could not connect: " . mysql_error());
mysql_select_db("moviesite", $link)
or die (mysql_error());
$ImageDir = "images";
$ImageThumb = "$ImageDir . "/thumbs/";
?>
<html>
<head>
<title>Galerija</title>
</head>
<body>
<p align="center"> Spustelkit ant paveiksliuko kad pamatytumet dideli vaizda.</p>
<table align="center">
<tr>
<td align="center">Paveiksliukas</td>
<td align="center">Pavadinimas</td>
<td align="center">Uploaderis</td>
<td align="center">Data</td>
</tr>
<?php
//gauname iconus
$getpic = mysql_query("SELECT * FROM images")
or die (mysql_error());
while ($rows = mysql_fetch_array($getpic)) {
extract ($rows);
echo"<tr>\n";
echo"<td><a href=\"".$ImageDir . $image_id . ".jpg\">";
echo"<td><a href=\"".$ImageDir . $image_id . ".jpg\" border=\"0\">";
echo"</a></td>\n";
echo"<td>" . $image_caption . "</td>\n";
echo"<td>" . $image_username . "</td>\n";
echo"<td>" . $image_date . "</td>\n";
echo"</tr>\n";
}
?>
</table>
</body>
</html>
Rigth, see this bit: $ImageDir = "images"; $ImageThumb = "$ImageDir . "/thumbs/"; ?>
The ?> bit doesent read that the php flow should be finished. Just add the code to your dreamweaver and u will see.
I need help quickly.
UbYou wrote: The ?> bit doesent read that the php flow should be finished. Just add the code to your dreamweaver and u will see.
It looks fine to me… don't know why Dreamweaver would not notice that correctly. I don't use Dreamweaver to code PHP, though. Try these alternatives:
- Notepad++/Notepad2/PsPad - Windows
- gEdit - Linux (GNOME)
- TextWrangler - Mac OS X
All the important features… less filling.