<?
################ Count how long is it takes to compile. page
list( $msec , $sec )= explode ( chr ( 32 ), microtime ());
$headtime = $sec + $msec ;
################ Request need information
include "head.php";
include "function.php";
if (empty ($_GET['page'])){ $goto = "index";} else { $goto = $_GET['page'];}
$goto = mysql_escape_string ($goto);
################ Building Menu
$DB = new mysql_db();
$DB->sql_connect();
$DB->query("SELECT `short_call`,`title_page` FROM `content`");
$Menu="";
while ($row = $DB->fetch_row())
{
$Menu .= "<a href=\"?page=".$row['short_call']."\">".$row['title_page']."</a><br>";
}
$DB->sql_free();
################ Select info. to show
$DB->query("SELECT * FROM content WHERE short_call = '$goto'");
if ($row = $DB->fetch_row()){
extract($row, EXTR_PREFIX_SAME, "wddx");
# $short = "$row->short_call";
# $title = "$row->title_page";
# $code = "$row->content_code";
# $date = "$row->date";
}
else {
$short = "";
$title = "Error";
$code = "<h1>Page cannot be found</h1><br>404";
$date = "";
}
$DB->sql_free();
$DB->sql_close();
################ Show page
echo "<title>$title_page - DLEW Content </title>";
echo "<table width=100%>
<tr><td width=160 valign=top bgcolor=c9c9c9>";
echo "$Menu";
print "</td><td align=center>";
echo "<h1>$title_page</h1><br>$content_code";
$today = date("Y-n-j");
echo "<p><div align=right>Since "."$date"."</div>
<hr>";
echo "</td></tr></table>";
include "end.php";
list( $msec , $sec )= explode ( chr ( 32 ), microtime ());
echo "<center><h3>Generation time: " . round (( $sec + $msec )- $headtime , 4 ). "" ;
?>
А С ТОБОЙ ПРИЯТНО?разговаривать становиться неприятно с тобой
допустим, я его создам. и что?Создай себе файл пхп с таким кодом:
ДОКУМЕНТАЦИЮ! ЧИТАТЬ! НАДО!!!и ты толком не объяснил когда предлагал
<?
################ Count how long is it takes to compile. page
list( $msec , $sec )= explode ( chr ( 32 ), microtime ());
$headtime = $sec + $msec ;
################ Request need information
include "head.php";
include "function.php";
if (empty ($_GET['page'])){ $goto = "index";} else { $goto = $_GET['page'];}
$goto = mysql_escape_string ($goto);
################ Building Menu
$DB = new mysql_db();
$DB->sql_connect();
$DB->query("SELECT `short_call`,`title_page` FROM `content`");
$Menu="";
while ($row = $DB->fetch_row())
{
$Menu .= "<a href=\"?page=".$row['short_call']."\">".$row['title_page']."</a><br>";
}
$DB->sql_free();
################ Select info. to show
$DB->query("SELECT * FROM content WHERE short_call = '$goto'");
if ($row = $DB->fetch_row()){
extract($row, EXTR_OVERWRITE);
}
else {
$short_call = "";
$title_page = "Error";
$content_code = "<h1>Page cannot be found</h1><br>404";
$date = "";
}
$DB->sql_free();
$DB->sql_close();
################ Show page
echo "<title>$title_page - DLEW Content </title>";
echo "<table width=100%>
<tr><td width=160 valign=top bgcolor=c9c9c9>";
echo "$Menu";
print "</td><td align=center>";
echo "<h1>$title_page</h1><br>$content_code";
$today = date("Y-n-j");
echo "<p><div align=right>Since "."$date"."</div>
<hr>";
echo "</td></tr></table>";
include "end.php";
list( $msec , $sec )= explode ( chr ( 32 ), microtime ());
echo "<center><h3>Generation time: " . round (( $sec + $msec )- $headtime , 4 ). "" ;
?>
что это за бред?<a href=$row['short_call']>
еще вот эту почитайне выводит short_call полностью