Parašė FreeP· 2008 Spa. 31 22:10:01
#2
Jeigu Rasai WHERE user_masitas='mesa' tai daryk tada atskiras uzklausas:
if(mysql_fetch_array(mysql_query("SELECT * FROM * WHERE user_maistas='mesa'")))
{
$info2 = mysql_fetch_row(mysql_query("SELECT user_name, user_aim FROM prefix_users WHERE user_maistas='Mesa'"))or die(mysql_error());
}
else
{
$info2 = mysql_fetch_row(mysql_query("SELECT user_name, user_aim FROM prefix_users"))or die(mysql_error());
}
$info1 = cia ta pirma uzklausa;
echo"tavo tie tekstai cia";
Redagavo FreeP· 2008 Spa. 31 22:10:49