This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function simple_table( $atts ) { | |
| extract( shortcode_atts( array( | |
| 'cols' => 'none', | |
| 'data' => 'none', | |
| ), $atts ) ); | |
| $cols = explode(',',$cols); | |
| $data = explode('<data>',$data); | |
| $total = count($cols); | |
| $output .= '<table class="mytable"><tr class="th">'; | |
| foreach($cols as $col): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <?php | |
| //defining the values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>ShotDev.Com Tutorial</title> | |
| </head> | |
| <body> | |
| <?php | |
| ini_set("display_errors","1"); | |
| ERROR_REPORTING(E_ALL); | |
| $objConnect = mysql_connect("localhost","root","") or die(mysql_error()); | |
| $objDB = mysql_select_db("bollywood"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| small, sub, sup { font-size: .83em } | |
| sub { vertical-align: sub } | |
| sup { vertical-align: super } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*superfish menu parent style*/ | |
| .sf-menu > li:hover > a{} | |
| .sf-menu > li.sfHover > a{} | |
| .sf-menu > li li:hover > a{} | |
| .sf-menu > li li.sfHover > a {color: #fe681b;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| session_start(); | |
| if ( !isset($_SESSION['logged-in']) || $_SESSION['logged-in'] !== true) { | |
| header('Location: login.php'); | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME}\.php -f | |
| RewriteRule ^(.*)$ $1.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //http://codingcyber.com/creating-multistep-form-processing-using-php-228/ | |
| session_start(); | |
| if(isset($_POST['sign_up'])){ | |
| if($_POST['sign_up'] == "Search"){ | |
| $_SESSION['zip_code'] = $_POST['zip_code']; | |
| } | |
| if($_POST['sign_up'] == "Submit"){ | |
| $_SESSION['state'] = $_POST['state']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //create a new theater | |
| INSERT INTO `mydb`.`theater` (`theater_id`, `theater_name`) VALUES (NULL, 'Bollywood'), (NULL, 'Hollywood'); | |
| //creating movie | |
| INSERT INTO `mydb`.`movie` (`movie_id`, `movie_name`, `movie_released`, `movie_end`, `movie_budget`, `movie_status`, `theater_theater_id`) VALUES (NULL, 'Gundejari Gallantainde', '2013-05-01', NULL, 'high', '1', '1'), (NULL, 'Siva', '2013-04-01', '2013-04-30', 'low', '1', '1'); | |
| http://stackoverflow.com/questions/6446288/php-mysql-search-code-and-logic-for-relational-database-schema | |
| http://www.sitepoint.com/understanding-sql-joins-mysql-database/ | |
| http://www.9lessons.info/2010/07/database-sql-searching-techniques.html | |
| http://coddswallop.wordpress.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>reports</title> | |
| </head> | |
| <body> | |
| <table class="mytable"> | |
| <tr> | |
| <th width="100">Class</th> |