No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
This is my index.php <?php if(!isset($_GET["page"]) || $_GET["page"] == "home"){ if(isset($_GET["txt"])){ include "search.php"; }else{ include "content.php"; } }else if($_GET["page"] == "user" && $_GET["user"]){ include "content_kategori.php"; }else if($_GET["page"] == "kategori" && $_GET["kode"]){ include "content_kategori.php"; }else if($_GET["page"] == "full" && $_GET["kode"]){ include "content_full.php"; }else{} ?> and this is my .htacces <IfModule mod_rewrite.c> …
How about this <?php $connection = mysql_connect("localhost","root",""); mysql_select_db("database"); $page = 0; if(isset($_GET['page'])){ $page = $_GET['page']; }else{ $page = 1; } $limit = 2; $offset = ($page - 1)*$limit; $result = mysql_query("select * from table_name limit $offset,$limit;"); $get_total = mysql_query("select count(*) as total from table_name "); $total_table_name = 0; while($h_total = …
Try this <?php //connect to MYSQL database include 'connection.php'; if($_POST){ $username=$_POST['username']; $password=$_POST['password']; $rememberme=$_POST['rememberme']; $result="SELECT * FROM user_table WHERE username='$username' and password='$passowrd'"; if($result != NULL){ echo "You log in"; // or you can use this header to redirect // header("location:index.php"); }else{ echo"Please enter a valid username and password and click Submit"; …
i'm new learn php and mysql and i got stuck can't get better logic for my brain i want to get message from page if i type url like **index.php?user=user1** and page will show with data table and if username doesn't exist and page show no username found so this …
The End.