नवीन शेर टाका

<?php

global $user;
if($user->uid==1||$user->uid==2||$user->uid==63)
{

if(isset($_POST['add']))
{
$couplet = $_POST['couplet'];

$query = "INSERT INTO couplets (couplet) VALUES ('$couplet')";

mysql_query($query) or die ("Error, insert query failed.");
?>

New couplet has been added.

<?php

}

?>


शेर:


राहती माझ्यासवे ही आसवे गीतांपरी
हे कशाचे दुःख ज्याला लागला माझा लळा!






<?php

}else { ?>

Access denied.
You are not authorized to access this page.

<?php

}

?>

<?php

$number = rand(1,66);

$result = db_query("SELECT couplet FROM couplets n WHERE sid=".$number);

while ($query_db_data = mysql_fetch_row($result))
{
echo $query_db_data[0] ;

}

?>