my test code
class Main{ } // class
class ClassName extends AnotherClass implements Interface{ } // class extends AnotherClass Interface
$main = new Main(); // class object
public function __construct(){ }
include_once "system/libs/Main.php";
include "system/libs/Main.php";
empty($key)
$data = array();
$key = $_REQUEST['key'];
$url = $_GET['url'];
$url = isset($_GET['url']) ? $_GET['url'] : NULL;
$url = rtrim($url,'/');
$url = explode('/',$url);
header('location: https://www.google.com');
header("location: ".Home_URL."?url=Index");
$content = $value['content'] ;
$content = substr($content, 0, 200);
echo $content;
define('BASE_URL', 'http://localhost/mvc/index.php?url=Index');
INNER JOIN
SELECT post.*, category.name FROM post INNER JOIN category ON post.cat = category.id WHERE category.id = 1
SELECT post.*, category.name FROM post INNER JOIN category ON post.catname = category.name WHERE category.name = 1
SELECT post.*, category.name FROM post INNER JOIN category ON post.catname = category.name WHERE category.name = 'edu'
$sql = "SELECT * FROM $tablepost WHERE title LIKE '%$key%' OR content LIKE '%$key%'";
$sql = "SELECT * FROM $tablepost WHERE cat = $cat";
rowCount()
$postDelete = mysqli_query($con,"select Coll_ID from tb_product_add where Coll_Product_Name_Solug = '$Post_nAME'");
$postDelete_row = mysqli_num_rows($postDelete); // rowCount()
if(!($_POST)){
header('location: https://www.google.com');
}else{ Ok Code Hare }
if (!$_POST['submit']) {
header("Location: http://localhost/mvc/index.php?url=Admin");
}else{ Ok Code Hare }
if (Session::get("level")!=2 && Session::get("level")!=3) {
}
Post a Comment