<!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>
|