<?php function generate_queries($database, $user, $password, $host, $search, $replace) { $conn = mysql_connect($host, $user, $password); if (!$conn) { die(‘Unable to…
RewriteEngine On rewritecond %{http_host} ^mydomain.com [nc]rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/RewriteRule ^index.php$ http://www.mydomain.com/ [R=301,L] ErrorDocument 404 http://www.mydomain.com/404.htm
MySQL DATE_FORMAT() Example copyDATE_FORMAT(NOW(),’%W, %M %e, %Y %h:%i %p’)#yields ‘Sunday, March 12, 2012 10:35 AM’ MySQL DATE_FORMAT() Representations Specifier Description%a …
open apacheC:wampbinapacheApache2.2.21httpd.conf than change port Listen 80 replace with Listen 8080 andServerName localhost:80 replace with ServerName localhost:8080 After this restart your…
$page = isset($_REQUEST[‘page_no’]) ? $_REQUEST[‘page_no’] : 1;$show = 10;$start = ($page – 1) * $show; $result = mysql_query(“SQL QUERY”); $total…