[Projeler-commits] r165 - in vezir: . lib
projeler-uludag at uludag.org.tr
projeler-uludag at uludag.org.tr
13 Ağu 2006 Paz 23:47:32 EEST
Author: gokmen.goksel
Date: Sun Aug 13 23:47:32 2006
New Revision: 165
Modified:
vezir/index.php
vezir/lib/vezir.php
Log:
add more options
Modified: vezir/index.php
=================================================================
--- vezir/index.php (original)
+++ vezir/index.php Sun Aug 13 23:47:32 2006
@@ -12,13 +12,13 @@
#create an instance for connection to database
$Vezir = new Vezir($CF);
+ #Set Entries
+ $Entries = $Vezir->GetRecord("Entries","*","","ORDER BY ID DESC");
+
#if any Vezir errors show them.
if ($Vezir)
$Vezir->ShowLogs();
- #Set Entries
- $Entries = $Vezir->GetRecord("Entries");
-
#Get template file
include_once('template/'.$CF['Theme'].'/index.tmpl');
?>
Modified: vezir/lib/vezir.php
=================================================================
--- vezir/lib/vezir.php (original)
+++ vezir/lib/vezir.php Sun Aug 13 23:47:32 2006
@@ -125,9 +125,10 @@
$this->MessageQueue.= "<pre><b>DEBUG : ".$Message."</b></pre>";
}
- function GetRecord($Table,$Field='*',$ID='') {
+ function GetRecord($Table,$Field='*',$ID='',$Ext='') {
$Table=$this->Pref_($Table);
$ID == "" ? $AddSql = "" : $AddSql = "WHERE ID=$ID";
+ $Ext == "" ? $AddSql = $AddSql: $AddSql = $AddSql." ".$Ext;
$Sql = "SELECT $Field FROM $Table ".$AddSql;
$Result = $this->ExecuteQuery($Sql);
return $this->MakeArray($Result);
Projeler-commits mesaj listesiyle ilgili
daha fazla bilgi