i have error HELP!!
Posted by: leonard2 (---.prod-infinitum.com.mx)
Date: June 10, 2008 05:12AM

i making my scrypt
and still many times the....

<?php
require('configuracion.php');
require('funciones.php');
include('header.html');
/* Pedimos todos los temas iniciales (identificador==0)
* y los ordenamos por ult_respuesta */
$sql = "SELECT id, autor, titulo, fecha, respuestas, ult_respuesta ";
$sql.= "FROM foro WHERE identificador=0 ORDER BY ult_respuesta DESC";
$rs = mysql_query($sql, $con);
if(mysqli_num_rows($rs)>0)
(
// Leemos el contenido de la plantilla de temas
$template = $implode("", file("temas.html"winking smiley)
include('titulos.html');
while($row = mysql_num_rows($rs));

{
$color=($color==""?"#5b69a6":""winking smiley;
$row["color"] = $color;
mostrarTemplate($template, $row);
}
)
include('footer.html');
?>

ERROR= Parse error: syntax error, unexpected T_INCLUDE in C:\wamp\www\mis doc.php\index.php on line 14

if have an idea for why cause error tellme tanks!

Options: ReplyQuote
Re: i have error HELP!!
Posted by: yfastud (Moderator)
Date: June 10, 2008 01:57PM

$template = $implode("", file("temas.html"winking smiley)
You missing ; there, so it should be
$template = $implode("", file("temas.html"winking smiley);

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: i have error HELP!!
Posted by: leonard2 (---.prod-infinitum.com.mx)
Date: June 10, 2008 08:05PM

i tink the error is here
if(mysqli_num_rows($rs)>0)
(
// Leemos el contenido de la plantilla de temas
$file_get_contents("", file("temas.html"winking smiley)
include(titulos.html)
while($row = mysql_num_rows($rs));

Options: ReplyQuote
Re: i have error HELP!!
Posted by: yfastud (Moderator)
Date: June 10, 2008 10:34PM

He he... he he... ;-)

So you have more than 1 error then

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.