PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
@$lk = mysql_connect($serv,$user,$pass) or die (mysql_error());
$db = mysql_select_db($dbname,$lk);
$qur = "select * from news where 1 order by id desc limit 4";
$res = mysql_query($res,$lk) or die (mysql_error());
while ($row = mysql_fetch_assoc($res)) {
printf("<option value="%s">%s</option>",$rowї"id"],$rowї"title"]);
}
@$lk = mysql_connect($serv,$user,$pass) or die (mysql_error());
$db = mysql_select_db($dbname,$lk);
$qur = "select * from news order by id desc limit 4";
$res = mysql_query($res) or die (mysql_error());
while ($row = mysql_fetch_array($res,MYSQL_ASSOC)) {
$id = $rowї"id"];
$tit = $rowї"title"];
}