You want to join results from two queries - the derived tables are solution for you.
Look at code below.Yellow highlighted lines are queries that you want to join and green highlighted
Sunday, August 18, 2013
Thursday, July 18, 2013
Execute Linux Commands from Browser
If you need to execute a shell command using browser here's how to do it. To understand this tutorial you need to have advanced level of understanding of Linux and PHP.
Wednesday, July 10, 2013
PHP debugging with JavaScript Console, Error and Access Log
You can use JavaScript console to output global and other variables from your PHP file. That way you can use JS console to track what is is going on in PHP backed files that are called by
$.ajax. Also you should be familiar with PHP's functions utf8_encode and utf8_decode![]() |
| Raw outuput of JSON string and Base64 encoded JSON string |
Sunday, July 7, 2013
JSONP Tutorial
This is an advanced tutorial with working example you must know jQuery and JSONP foundations. JSONP bypass browser's "same origin" policy.
Tuesday, July 2, 2013
Parse JSON generated by PHP
This tutorial shows how to parse a JSON string generated by PHP. Place job.php and index.html in same folder.
Wednesday, June 26, 2013
Top 3 Apache Rewrite Tips
Maintenance
Serve page without 302 redirect
Serve page with 302 redirect
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/maintenance.html
RewriteRule (.*) /maintenance.html [R]Serve page without 302 redirect
RewriteEngine on RewriteBase / RewriteRule ^oldpage\.html$ newpage.html [L]
Serve page with 302 redirect
RewriteEngine on RewriteBase / RewriteRule ^oldpage\.html$ newpage.html [R,L]
Friday, June 21, 2013
Serve Pages from Subfolder on Apache
Multiple site hosting on one hosting account in subfolders
Directory structure for domains example.com and otherexample.com
Content of .htaccess
index.php file could be a WordPress index.php that resides in web root folder.
Directory structure for domains example.com and otherexample.com
[Folder] public_html [File ] .htaccess [Folder] example.com [File ] index.php [Folder] otherexample.com [File ] index.php
Content of .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} example.com
RewriteCond %{REQUEST_URI} !example.com/
RewriteRule ^(.*)$ example.com/$1 [L]
RewriteCond %{HTTP_HOST} otherexample.com
RewriteCond %{REQUEST_URI} !otherexample.com/
RewriteRule ^(.*)$ otherexample.com/$1 [L]
index.php file could be a WordPress index.php that resides in web root folder.
Subscribe to:
Posts (Atom)
