Login   Register  
PHP Classes
elePHPant
Icontem

File: fkSqlCreatorTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fettah Kurtulus  >  FKSqlCreator Class  >  fkSqlCreatorTest.php  >  Download  
File: fkSqlCreatorTest.php
Role: Example script
Content type: text/plain
Description: fkSqlCreatorTest
Class: FKSqlCreator Class
Compose SQL queries from parameter lists
Author: By
Last change:
Date: 2 years ago
Size: 1,033 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sqlCreator Test</title>

<?php require("sqlCreator.class.php");?>

<link href="agroStyle.css"  rel="stylesheet" type="text/css" />
</head>

<body>
    <div id="content">
        <?php 
            $sqlObj 
= new sqlCreator();
            
$sql $sqlObj->getAllRecords("makale","makaleId=1");
            
$conn mysql_connect("localhost","root","");
            
mysql_select_db("fettahkurtulus",$conn);
            
$sql mysql_query($sql);
            if(
mysql_num_rows($sql)>0)
            {
                
$row mysql_fetch_object($sql);
                echo 
$row->baslik." <br> ".$row->aciklama;
            }    
            
            
$sql $sqlObj->deleteRecord("makale""makaleId=2");
            
$row mysql_query($sql);
            if (
mysql_affected_rows()>0)
            {
                echo 
"<br><br> Kayıt Başarıyla Silindi...";
            }
                
        
?>
    </div>
</body>
</html>