I'm a complete newbie here, just started to get into the whole php mysql deal.
I have a database set up, with data on it and I'm trying to display this data inside an html page. I thought I had set up everything correctly but it just doesn't work!
At the top of my HTML page I have the following code to connect to the database and such:
include 'opendb.php'; ?>
I checked the connect info on the config file and looks all right.
Here's the query I'm trying to run at the middle of the page:
mysql_query("SET NAMES 'charset=CP1251' ");
$query = "SELECT * FROM `ap_form_14` ORDER BY ID DESC LIMIT 3";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)
echo " <div id=\"Activleftcolumn\"><im
g width='167px;' height='217px;' style='border:dotted 1px #cccccc; padding: 3px;' src='/forms/imagesforms/fo
s/" . $row["element_1"] . "' /></div>";
echo "<div id=\"Actirightcolumn\">
<div id=\"actidate\">" . $row["element_3"]. "</div>
<span>De " . $row["element_4"]. "</span>
<span> A " . $row["element_7"]. "</span>
<div id=\"actititle\">" . $row["element_2"]. "</div>
<div id=\"actides\">" . $row["element_6"]. "</div>
<div id=\"actireserv\">" . $row["element_5"]. "</div>
At the bottom I have: <?php
I upload the page to the server and nothing comes up. I have other php code on that same page which is working fine.
I've tried a million things and I don't know what else to do! Again, I'm a complete novice. Please help I really need to move ahead with this!
Here's the link to that page: http://www.libreriafrancesa.net/nuevo.php
Any more info I need to provide? Do you need me to past the full code? Thanks for your help! Desperate here.