De2Haz1 : Para tu crecimiento
$numrows=0;
if(!isset($id)){ $id=""; }
connect_to_db();
if ($id <> "") {
$query = "SELECT * FROM articles WHERE id = $id";
$shorten = 200000;
$result = mysql_query($query);
while ($r = mysql_fetch_array($result)) {
echo "
".stripslashes($r['title']). "
";
$numrows++;
$date = date(s('date'), strtotime($r['date']));
echo "
" .substr(stripslashes(str_replace('[break]', '', $r['text']) ), 0, $shorten);
echo "
";}
if(!isset($numrows)) { $numrows=0; }
if ($numrows == 0 AND $id <> "") { echo "
". l('article_not_exist') ."
"; }}
else {
echo "
Article ID was not set. Please Try Again.
";}
?>