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 | 1849 (1574) | Lion29 |
» | php variable scope problemOddelek: Izdelava spletišč | 1257 (1170) | darh |
» | PHP in mySQLOddelek: Programiranje | 1930 (1638) | rasta |
» | PHP help!Oddelek: Programiranje | 1729 (1567) | rc-car |
» | MySQL & PHP napaka..Oddelek: Programiranje | 1724 (1539) | lordgreg |