Forum » Programiranje » PHP help!
PHP help!
TylerDurden ::
Kje je napaka? Nekje pri brake mora biti, ker mi tam javi parse error.
default:
$query = "SELECT * FROM $db_table";
if(!mysql_query($query))
{
say("You need to install this program first. Go to here to do so now.");
exit;
}
else
{
$mysql[result] = mysql_query("SELECT * FROM " . $db_table . "WHERE iztek > CURRENT_DATE");
if ( !$result = mysql_query( $query ) )
echo mysql_error();
else
{
echo "";
";
brake;
}
?>
default:
$query = "SELECT * FROM $db_table";
if(!mysql_query($query))
{
say("You need to install this program first. Go to here to do so now.");
exit;
}
else
{
$mysql[result] = mysql_query("SELECT * FROM " . $db_table . "WHERE iztek > CURRENT_DATE");
if ( !$result = mysql_query( $query ) )
echo mysql_error();
else
{
echo "
$title"; echo " |
$article"; } echo " |
brake;
}
?>
Let\'s make some soap ...
- spremenil: TylerDurden ()
glavic ::
$query = "SELECT * FROM $db_table";
if( !mysql_query($query) ) {
say("You need to install this program first. Go to here to do so now.");
exit;
}
else {
$mysql[result] = mysql_query("SELECT * FROM " . $db_table . "WHERE iztek > CURRENT_DATE");
if ( !$result = mysql_query($query) ) echo mysql_error();
else {
echo "";
while ( list( $id, $s, $article, $title, $author, $date, $email, $iztek) = mysql_fetch_row($result) ) {
echo $title;
echo $article;
}
echo "";
brake;
}
}
?>
Musselli bizi
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | sql injection [PHP + mysql]Oddelek: Informacijska varnost | 1870 (1595) | Lion29 |
» | php variable scope problemOddelek: Izdelava spletišč | 1274 (1187) | darh |
» | PHP in mySQLOddelek: Programiranje | 1941 (1649) | rasta |
» | PHP help!Oddelek: Programiranje | 1739 (1577) | rc-car |
» | MySQL & PHP napaka..Oddelek: Programiranje | 1737 (1552) | lordgreg |