Example #1
0
$Lname2 = trim($Lname2);
$Lname2 = ucfirst(strtolower($Lname2));
// Including the search engine php that contains all db query functions called here
include "search-engine.php";
include "top.html";
?>

		<h1>Results for <?php 
echo $Fname1 . " " . $Lname1 . " AND " . $Fname2 . " " . $Lname2;
?>
</h1>

<?php 
// Get ID of both actors using firstname and lastname
$actorOneId = getMyId($Fname1, $Lname1);
$actorTwoId = getMyId($Fname2, $Lname2);
//If actor doesn't exist, show error
if ($actorOneId == null || $actorTwoId == null) {
    if ($actorOneId == null) {
        ?>
			Actor <?php 
        echo $Fname1 . " " . $Lname1;
        ?>
 not found. <br />
<?php 
    }
    if ($actorTwoId == null) {
        ?>
			Actor <?php 
        echo $Fname2 . " " . $Lname2;
        ?>
Example #2
0
 * Please see http://www.jinzora.org/team.html
 * 
 * - Code Purpose -
 * Builds a zero-configuration jukebox
 *
 * @since 2/9/05
 * @author Ben Dodson <*****@*****.**>
 */
// Quickbox instance
$POLL_TIME = 2;
// blech
$include_path = '../';
require_once '../jzBackend.php';
$be = new jzBackend();
// Get a semi-unique ID
$id = getMyId();
$boxes = $be->loadData('quickboxes');
if (!isset($boxes[$id])) {
    $box = array('id' => $id);
} else {
    $box = $boxes[$id];
}
$box['active_time'] = time();
$box['poll_time'] = $POLL_TIME;
if (isset($_REQUEST['update_pos'])) {
    $box['pos'] = $_REQUEST['update_pos'];
}
$boxes[$id] = $box;
$be->storeData('quickboxes', $boxes, 1);
//$be->storeData('quickboxes',array(),1); // clear
if (isset($_REQUEST['update']) && !isset($_REQUEST['update_pos'])) {