You have numerous errors in that code. Your DB connection line is messed up, the username and password either need to be a quoted string, a variable representing that string, or a constant. Your database selection needs to be quoted. You need to escape out the double quotes that you want to print out to the document....or just clean it up a bit....

<html>
<head>
<title>Biografias</title>
</head>
<body background="images/StyleGreenMarble_Bg.jpg">
<?php
NEEDS FIXING --> $db = mysql_connect("localhost", user, password);
NEEDS FIXING --> mysql_select_db(efemerides,$db);
$response = mysql_query("select * from biografias where indice=1", $db);
while($row = mysql_fetch_array($response));
?>
<p align="center"><img border="0" src="images/banner_chico_bio.jpg width="274" height="43"></p>
<img src="<?php echo ( $row["banner_nombre"] ); ?>">
<div align="center">
<center>");
<table border="1" width="500" height="25">");
<tr>
<td width="500" height="25"><div align="left">
<table border="0" width="125" height="27">
<tr>
<td width="125" height="27">&nbsp;</td>
</tr>
</table>
</div>
<p>
<?php ehco ( $row["texto"] ); ?>
</td>
</tr>
</table>
</center>
</div>
<?php } ?>
</div>
</html>

Ezequiel Sapoznik wrote:
Hi!
I am receiving a parse error in the following code. The file is located at
http://www.historiadelpais.com.ar/ppal_bio.php

Anyone can help me?

Thanks!

Ezequiel

<html>

<head>
<title>Biografias</title>
</head>
<body background="images/StyleGreenMarble_Bg.jpg">
        <?php
  $db = mysql_connect("localhost", user, password);
  mysql_select_db(efemerides,$db);
  $response = mysql_query("select * from biografias where indice=1", $db);
  while($row = mysql_fetch_array($response));


  echo("<p align="center"><img border="0" src="images/banner_chico_bio.jpg"
width="274" height="43"></p>");
  print "<img src=\" " . $row["banner_nombre"] . "\">";
  echo("<div align="center">");
  echo("<center>");
  echo("<table border="1" width="500" height="25">");
  echo("<tr>");
  echo("<td width="500" height="25">");
  echo("<div align="left">");
  echo("<table border="0" width="125" height="27">");
  echo("<tr>");
  echo("<td width="125" height="27"></td>");
  echo("</tr>");
  echo("</table>");
  echo("</div>");
  echo("<p>");

   print($row["texto"] ."<br>\n");

  echo("</td>");
  echo("</tr>");
  echo("</table>");
  echo("</center>");
  echo("</div>");
  }

?>


</div>

</html>




--
By-Tor.com
It's all about the Rush
http://www.by-tor.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to