
Glenskie
Members-
Posts
108 -
Joined
-
Last visited
Everything posted by Glenskie
-
yes its two querys but it is not working
-
Hi how can i get this sql query to work in php ? this query worked in navicat /* API */ INSERT IGNORE INTO ps_search_index (id_product, id_word, weight) SELECT DISTINCT Product_ID, Product_ID + 5000 'id_word', '1' FROM ps_product_part_number WHERE API != '' AND API IS NOT NULL; INSERT IGNORE INTO ps_search_word (id_word, id_shop, id_lang, word) SELECT DISTINCT Product_ID + 5000 'id_word', '1', '1', API FROM ps_product_part_number WHERE API != '' AND API IS NOT NULL; I GOT THIS FAR "INSERT INTO ps_search_index (id_product, id_word, weight) SELECT DISTINCT Product_ID, Product_ID + 5000 AS id_word , '1' FROM ps_product_part_number WHERE API != '' AND API IS NOT NULL" "INSERT INTO ps_search_index (id_product, id_word, weight) SELECT DISTINCT Product_ID, Product_ID + 5000, '1' FROM ps_product_part_number WHERE API != '' AND API IS NOT NULL"
-
I need to output in product-list.tpl file the result of a query from within classes/Search.php in Prestashop. The query in classes/Search.php is: $sql = 'SELECT * FROM `'._DB_PREFIX_.'category_group` cg INNER JOIN `'._DB_PREFIX_.'category_product` cp ON cp.`id_category` = cg.`id_category` INNER JOIN `'._DB_PREFIX_.'category` c ON cp.`id_category` = c.`id_category` INNER JOIN `'._DB_PREFIX_.'product` p ON cp.`id_product` = p.`id_product` INNER JOIN `'._DB_PREFIX_.'product_part_number` ON p. `id_product` = `ID` '.Shop::addSqlAssociation('product', 'p', false).' WHERE c.`active` = 1 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "search") AND product_shop.indexed = 1 AND cg.`id_group` '.(!$id_customer ? '= 1' : 'IN ( SELECT id_group FROM '._DB_PREFIX_.'customer_group WHERE id_customer = '.(int)$id_customer.' )'); $results = $db->executeS($sql); This is outputting a series of "GREKA" values in the `'._DB_PREFIX_.'product_part_number` table at the top of the search results page from the query above: $eligible_products = array(); foreach ($results as $row){ $eligible_products[] = $row['id_product']; echo $row['GREKA']; } What I need it to do is output the "GREKA" value within the tpl file themes/product-list.tpl for that product. This tpl file is using Smarty to output the results of the product search, I need to know how to call the "GREKA" value from the query to the foreach loop. I imagine it would be something like this: {foreach from=$products item=product name=products} {$GREKA} {/foreach} I have tried to put this line of code inside the foreach on the product-list.tpl and it gives me no output , it gives me an error: Code: {$product.GREKA} Error: Notice: Undefined index: GREKA
-
hi is there any way to create an .edu email address with php ? without a .edu website ?
-
hi im new at prestashop and i need to know a couple things so i can change a query for the search... i need to know how to have the php search for a product id and the product from two different tables ... is this the code that uses the word from the search box to look in the database tables or is this the wrong query ? im just trying to find the query public static function find($id_lang, $expr, $page_number = 1, $page_size = 1, $order_by = 'position', $order_way = 'desc', $ajax = false, $use_cookie = true, Context $context = null) { if (!$context) $context = Context::getContext(); $db = Db::getInstance(_PS_USE_SQL_SLAVE_); // Only use cookie if id_customer is not present if ($use_cookie) $id_customer = $context->customer->id; else $id_customer = 0; // TODO : smart page management if ($page_number < 1) $page_number = 1; if ($page_size < 1) $page_size = 1; if (!Validate::isOrderBy($order_by) || !Validate::isOrderWay($order_way)) return false; $intersect_array = array(); $score_array = array(); $words = explode(' ', Search::sanitize($expr, $id_lang)); foreach ($words as $key => $word) if (!empty($word) && strlen($word) >= (int)Configuration::get('PS_SEARCH_MINWORDLEN')) { $word = str_replace('%', '\\%', $word); $word = str_replace('_', '\\_', $word); $intersect_array[] = 'SELECT si.id_product FROM '._DB_PREFIX_.'search_word sw LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = '.(int)$id_lang.' AND sw.id_shop = '.$context->shop->id.' AND sw.word LIKE '.($word[0] == '-' ? ' \''.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $score_array[] = 'sw.word LIKE \''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; } else unset($words[$key]); if (!count($words)) return ($ajax ? array() : array('total' => 0, 'result' => array())); $score = ''; if (count($score_array)) $score = ',( SELECT SUM(weight) FROM '._DB_PREFIX_.'search_word sw LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = '.(int)$id_lang.' AND sw.id_shop = '.$context->shop->id.' AND si.id_product = p.id_product AND ('.implode(' OR ', $score_array).') ) position'; $sql = 'SELECT cp.`id_product` FROM `'._DB_PREFIX_.'category_group` cg INNER JOIN `'._DB_PREFIX_.'category_product` cp ON cp.`id_category` = cg.`id_category` INNER JOIN `'._DB_PREFIX_.'category` c ON cp.`id_category` = c.`id_category` INNER JOIN `'._DB_PREFIX_.'product` p ON cp.`id_product` = p.`id_product` '.Shop::addSqlAssociation('product', 'p', false).' WHERE c.`active` = 1 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "search") AND product_shop.indexed = 1 AND cg.`id_group` '.(!$id_customer ? '= 1' : 'IN ( SELECT id_group FROM '._DB_PREFIX_.'customer_group WHERE id_customer = '.(int)$id_customer.' )'); $results = $db->executeS($sql);
-
- prestashop
- php
-
(and 2 more)
Tagged with:
-
hi i would like to have my css test box attached to the side of the box like it is on the second picture ... any way to do it ? #socialbox { background-color: #FFF; padding: 7px; height:200px; width:35px; border: 1px solid #DBDBDB; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; -webkit-box-shadow: #E4E4E4 0px 0px 5px; -moz-box-shadow: #E4E4E4 0px 0px 5px; box-shadow:#E4E4E4 0px 0px 5px; margin-bottom: 5px; /* max-width:50px; max-height:100px; */ float:right; margin-right:180px; }
-
i was wondering how i would add on to this to upload the image to photos/ , and /mobile/photos ?? thank you ! $place_file = move_uploaded_file( $_FILES['fileField']['tmp_name'], "photos/".$newname);
-
i just recently bought hosting with hostmonster and im putting my login script on the site and it is not working here is the error im getting Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/quickdai/public_html/login.php on line 36 <?php // Start Session to enable creating the session variables below when they log in session_start(); // Force script errors and warnings to show on page in case php.ini file is set to not display them error_reporting(E_ALL); ini_set('display_errors', '1'); //----------------------------------------------------------------------------------------------------------------------------------- // Initialize some vars $errorMsg = ''; $email = ''; $pass = ''; $remember = ''; if (isset($_POST['email'])) { $email = $_POST['email']; $pass = $_POST['pass']; if (isset($_POST['remember'])) { $remember = $_POST['remember']; } $email = stripslashes($email); $pass = stripslashes($pass); $email = strip_tags($email); $pass = strip_tags($pass); // error handling conditional checks go here if ((!$email) || (!$pass)) { $errorMsg = '<font color="red">Please fill in both fields</font>'; } else { // Error handling is complete so process the info if no errors include 'connect_to_mysql.php'; // Connect to the database $email = mysql_real_escape_string($email); // After we connect, we secure the string before adding to query //$pass = mysql_real_escape_string($pass); // After we connect, we secure the string before adding to query $pass = md5($pass); // Add MD5 Hash to the password variable they supplied after filtering it // Make the SQL query $sql = mysql_query("SELECT * FROM Admin WHERE email='$email' AND password='$pass'"); $login_check = mysql_num_rows($sql); // If login check number is greater than 0 (meaning they do exist and are activated) if($login_check > 0){ while($row = mysql_fetch_array($sql)){ // Create session var for their raw id $id = $row["id"]; $_SESSION['id'] = $id; // Create the idx session var $_SESSION['idx'] = base64_encode("g4p3h9xfn8sq03hs2234$id"); } // close while // Remember Me Section // All good they are logged in, send them to homepage then exit script header("location: 25xc54df.php"); exit(); } else { // Run this code if login_check is equal to 0 meaning they do not exist $errorMsg = "Please leave now before your ip is banned "; } } // Close else after error checks } //Close if (isset ($_POST['uname'])){ ?> <html> <div id="form"> <form id="signinform" action="login.php" method="post" enctype="multipart/form-data" name="signinform"> <fieldset> <div id="legend">Log in</div> <br> <label for="login">Email</label> <input type="text" id="email" name="email" /> <div class="clear"></div> <label for="password">Password</label> <input type="password" id="password" name="pass" /> <div class="clear"></div> <div class="clear"></div> <br /> <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Sign In"/> </fieldset><?php print "$errorMsg"; ?> </form> </div> </div>
-
i dont know how to fix this where is the error? $query = mysql_query ("SELECT * FROM photos ORDER BY id DESC LIMIT ".$queryStart.", 5" AND type="pic");
-
haha , true ... i just want to know why its so freaking slow??? to many pictures or something?
-
im making a photogallery and it takes like 45 seconds to load the stupid pictures , please help.. here is my old code that will basically not work . <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript" src="lightbox.js"></script> <script src="jquery.jqueryloader2.js" type="text/javascript"></script> <script src="js/script.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("body").queryLoader2(); }); </script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> </head> <body> <!--[if ie]> <style type="text/css"> #contentpics { background: #fff; margin-top:-803px; width: 803px; height:800px; float:right; /* border-radius */ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; /* box-shadow */ -webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; -moz-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; } </style> <![endif]--> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#20112012').click(function() { $('#content20112012').animate({ height: 'toggle' }, 2000 ); }); });</script> <script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript"></script> <script src="lightbox.js" type="text/javascript"></script> <script> $(document).ready(function(){ base_url = document.location.href.substring(0, document.location.href.indexOf('index.html'), 0); $(".lightbox20112012").lightbox({ fitToScreen: true, imageClickClose: false }); $(".lightbox20122013").lightbox({ fitToScreen: true, imageClickClose: false }); }); </script> <!-- START GALLERY --> <div id="main"> <div id="selectclass"><br><center> <a href="#" class="button" id="20112012">2011-2012</a> </center> </div> <div id="contentpics"> <h2><center>Click on the year to view the photos for that year!</h2>(may take some time to load all pictures)</center> <div id="content20112012" > <br /> <center>2011-2012</center> <br /> <div class="img"> <a href="20112012/_DSC5904.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC5904.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/_DSC6177.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC6177.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/_DSC7193.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC7193.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/941kuzz186.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/941kuzz186.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/aloha028.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/aloha028.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/girlsbball366.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/girlsbball366.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/IMG_0014.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_0014.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_0797.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_0797.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_8555.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_8555.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_9226.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_9226.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/pics 057.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/pics 057.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/pie a cheerleader 013.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/pie a cheerleader 013.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/upperclass lunch 075.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/upperclass lunch 075.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/Activities/A (1).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Activities/A (1).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> There are so many pics and it takes forever to load
-
ok i need to grab things from two tables in my database , here is my code that i was using , but i changed my friend table so i need to change my code ! here is what i had ... i dont need m.friend_array anymore , the table is friends and the rows in the table are id , mem_1 , mem_2 , and Date... thank you so much!!!! <?php $query = mysql_query("SELECT p.id, p.to_id, p.from_id, p.post, p.type, p.state, p.date, m.friend_array FROM myMembers AS m LEFT JOIN posts AS p ON p.to_id = m.id WHERE p.state = '0' AND m.id = '" . $logOptions_id . "'" ); if(mysql_num_rows($query)==0) { ?> <div class="no-info">There are no posts! or you have no friends!</div> <?php } else { posts($query); } ?>
-
ok i need to change this code to new table and style ... right now its using an array and i want to change it to where it uses a table with 2 colums for the friends ... here is what im talking about Table = Friends colums are id , mem_1 , mem_2 , Date here is my code to revise if ($_POST["request"] == "acceptFriend") { $reqID = preg_replace('#[^0-9]#i', '', $_POST['reqID']); $sql = "SELECT * FROM friends_requests WHERE id='$reqID' LIMIT 1"; $query = mysql_query($sql) or die ("Sorry we had a mysql error!"); $num_rows = mysql_num_rows($query); if ($num_rows < 1) { echo 'An error occured'; exit(); } while ($row = mysql_fetch_array($query)) { $mem1 = $row["mem1"]; $mem2 = $row["mem2"]; } $sql_frnd_arry_mem1 = mysql_query("SELECT friend_array FROM myMembers WHERE id='$mem1' LIMIT 1"); $sql_frnd_arry_mem2 = mysql_query("SELECT friend_array FROM myMembers WHERE id='$mem2' LIMIT 1"); while($row=mysql_fetch_array($sql_frnd_arry_mem1)) { $frnd_arry_mem1 = $row["friend_array"]; } while($row=mysql_fetch_array($sql_frnd_arry_mem2)) { $frnd_arry_mem2 = $row["friend_array"]; } $frndArryMem1 = explode(",", $frnd_arry_mem1); $frndArryMem2 = explode(",", $frnd_arry_mem2); if (in_array($mem2, $frndArryMem1)) { echo 'This member is already your Friend'; exit(); } if (in_array($mem1, $frndArryMem2)) { echo 'This member is already your Friend'; exit(); } if ($frnd_arry_mem1 != "") { $frnd_arry_mem1 = "$frnd_arry_mem1,$mem2"; } else { $frnd_arry_mem1 = "$mem2"; } if ($frnd_arry_mem2 != "") { $frnd_arry_mem2 = "$frnd_arry_mem2,$mem1"; } else { $frnd_arry_mem2 = "$mem1"; } $UpdateArrayMem1 = mysql_query("UPDATE myMembers SET friend_array='$frnd_arry_mem1' WHERE id='$mem1'") or die (mysql_error()); $UpdateArrayMem2 = mysql_query("UPDATE myMembers SET friend_array='$frnd_arry_mem2' WHERE id='$mem2'") or die (mysql_error()); $deleteThisPendingRequest = mysql_query("DELETE FROM friends_requests WHERE id='$reqID' LIMIT 1"); echo "You are now friends with this member!"; exit(); }
-
ok , this is to request someone to be your friend and i keep getting an error saying "mysql_error() expects parameter 1 to be resource" i dont know what is wrong , it worked before ... please help. <?php if ($_POST["request"] == "requestFriendship") { $mem1 = preg_replace('#[^0-9]#i', '', $_POST['mem1']); $mem2 = preg_replace('#[^0-9]#i', '', $_POST['mem2']); // if (!$mem1 || !$mem2 || !$thisWipit) { echo 'Error: Missing data'; exit(); } // if ($mem1 == $mem2) { echo 'Error: You cannot add yourself as a friend'; exit(); } //See if already friends $sql1 = "SELECT id FROM friends WHERE mem2='$mem1' AND mem1='$mem2' LIMIT 1"; $result1 = mysql_query($sql1) or die (mysql_error("sql1 failed")); $data1 = mysql_fetch_row($result1); if ($data1[0]) { echo 'This member is already your Friend'; exit(); } //Check if user already requested to be friends $sql2 = "SELECT id FROM friends_requests WHERE mem1='$mem1' AND mem2='$mem2' Limit 1"; $result2 = mysql_query($sql2) or die (mysql_error("sql2 failed")); $data2 = mysql_fetch_row($result2); if ($data2[0]) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> You have a Friend request pending for this member. Please be patient.'; exit(); } //Check if friend already requested to be friends $sql3 = "SELECT id FROM friends_requests WHERE mem1='$mem2' AND mem2='$mem1' Limit 1"; $result3 = mysql_query($sql3) or die (mysql_error("sql3 failed")); $data3 = mysql_fetch_row($result3); if ($data3[0]) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> This user has requested you as a Friend already! Check your Requests on your profile.'; exit(); } //If still here make insert $mem1=mysql_real_escape_string($mem1); $mem2=mysql_real_escape_string($mem2); $sql = mysql_query("INSERT INTO friends (mem1, mem2, timedate) VALUES('$mem1','$mem2',now())") or die (mysql_error("Friend Request Insertion Error")); echo '<img src="images/round_success.png" width="20" height="20" alt="Success" /> Friend request sent successfully. This member must approve the request.'; exit(); } ?>
-
ok , well im making a gallery for my school , and i have lightbox installed on the site for the gallery , but it takes forever to load and i would like to know if there is anyway to preload the images or something ? like it takes for ever and some of the images dont load... here is my script. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="description" content="Business Professional Package" /> <meta name="keywords" content="Business Professional Package" /> <meta name="copyright" content="themeforest.com" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="revisit-after" content="1 day" /> <meta name="DC.title" content="themeforest.com" /> <meta name="robots" content="all" /> <link rel="Shortcut Icon" type="image/ico" href="favicon.ico" /> <link rel="stylesheet" type="text/css" href="css/main.css" /> <title>Welcome to Independence High School</title> <style type="text/css"> body { background-color: #2574b0; } #main{ background: #fff; margin: 0 auto; width: 980px; height:800px; /* border-radius */ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; /* box-shadow */ -webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; -moz-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; } #selectclass { background:maroon; margin:0 auto; width:170px; height:795px; border-style:solid; border-right-style:solid; float:left; } .button { border-top: 1px solid #b7c4cc; background: #b5b1b1; background: -webkit-gradient(linear, left top, left bottom, from(#9c3e3e), to(#b5b1b1)); background: -webkit-linear-gradient(top, #9c3e3e, #b5b1b1); background: -moz-linear-gradient(top, #9c3e3e, #b5b1b1); background: -ms-linear-gradient(top, #9c3e3e, #b5b1b1); background: -o-linear-gradient(top, #9c3e3e, #b5b1b1); padding: 8px 16px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0; -moz-box-shadow: rgba(0,0,0,1) 0 1px 0; box-shadow: rgba(0,0,0,1) 0 1px 0; text-shadow: rgba(0,0,0,.4) 0 1px 0; color: white; font-size: 17px; font-family: Georgia, serif; text-decoration: none; vertical-align: middle; } .button:hover { border-top-color: #782828; background: #782828; color: #ccc; } .button:active { border-top-color: #5c1b1e; background: #5c1b1e; } #content20112012 { background: #fff; margin: 0 auto; width: 803px; height:2800px; float:right; /* border-radius */ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; /* box-shadow */ -webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; -moz-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; display:none; } #contentpics { background: #fff; margin: 0 auto; width: 803px; height:800px; float:right; /* border-radius */ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; /* box-shadow */ -webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; -moz-box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; box-shadow: rgba(0,0,0,0.2) 0px 1px 3px; } .img { margin:2px; border:1px solid #0000ff; height:auto; width:auto; float:left; } .img img { display:inline; margin:3px; border:1px solid #ffffff; } .desc { text-align:center; font-weight:normal; width:120px; margin:2px; } </style> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> </head><body> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script type="text/javascript" src="lightbox.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#20112012').click(function() { $('#content20112012').animate({ height: 'toggle' }, 2000 ); }); });</script> <!-- Centers the page --> <div id="content"> <!-- Header --> <div id="header"> <!-- This is where your logo goes. If you change the size of the logo in the PSD file, you need to change the size of it in the stylesheet --> </div> <!-- END header --> <!-- Navigation --> <div id="navigation"> <!-- Because IE is so tricky (stupid), there are a few too many classes here. If you don't care about the blue rollover sticking in IE when you go to the right for the sub-sub menu, you can get rid of the "item" class. The "first" class is for the top level navigation and it simply causes the menu item to lose the left border, which is good for the first item in the list. The "last" class is almost the same, but it causes the menu item to lose the right border, which is good for the last item in the list. The "top" class is for the sub and sub-sub menus, and it causes the menu item to lose it's top border. The "bottom" class is for the sub and sub-sub menus as well, and it causes the menu item to lose it's bottom border. --> <link rel="stylesheet" href="css/Menu.css" type="text/css" media="screen" charset="utf-8"/> <!--[if lt IE 7]> <link rel="stylesheet" href="css/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" /> <![endif]--> <ul id="nav"> <ul> <li><a href="index.html">HOME</a></li> <li><a href="academics/academics.html" class="arrow">ACADEMICS</a></li> <li><a href="activites/activites.html" class="arrow">ACTIVITES</a></li> <li><a href="athletics/athletics.html" class="arrow">ATHLETICS</a></li> <li><a href="administration/administration.html">ADMINISTRATION</a></li> <li><a href="PHOTOGALLERY.html">PHOTOGALLERY</a></li> </div> <!-- END navigation --> <script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript"></script> <script src="lightbox.js" type="text/javascript"></script> <script> $(document).ready(function(){ base_url = document.location.href.substring(0, document.location.href.indexOf('index.html'), 0); $(".lightbox20112012").lightbox({ fitToScreen: true, imageClickClose: false }); $(".lightbox20122013").lightbox({ fitToScreen: true, imageClickClose: false }); }); </script> <!-- START GALLERY --> <div id="main"> <div id="selectclass"><br><center> <a href="#" class="button" id="20112012">2011-2012</a> </center> </div> <div id="contentpics"> <h2><center>Click on the year to view the photos for that year!</h2></center> <div id="content20112012" > <br /> <center>2011-2012</center> <br /> <div class="img"> <a href="20112012/_DSC5904.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC5904.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/_DSC6177.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC6177.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/_DSC7193.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/_DSC7193.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/941kuzz186.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/941kuzz186.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/aloha028.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/aloha028.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/girlsbball366.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/girlsbball366.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/IMG_0014.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_0014.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_0797.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_0797.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_8555.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_8555.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/IMG_9226.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/IMG_9226.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/pics 057.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/pics 057.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/pie a cheerleader 013.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/pie a cheerleader 013.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/upperclass lunch 075.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/upperclass lunch 075.jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (147).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (147).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (148).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (148).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (149).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (149).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (150).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (150).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (157).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (157).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (159).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (159).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (160).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (160).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (161).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (162).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (163).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (163).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (164).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (164).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (165).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (165).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (166).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (166).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (167).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (167).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (168).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (168).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (169).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (169).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (170).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (170).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (171).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (171).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (172).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (172).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (173).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (173).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (180).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (180).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (187).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (187).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (190).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (190).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (198).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (198).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (199).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (199).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (202).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (202).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (203).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (203).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (205).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (205).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (206).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (206).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (208).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (208).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (222).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (222).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (224).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (224).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (225).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (225).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (226).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (226).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (227).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (227).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (230).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (230).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (231).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (231).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (241).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (241).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (244).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (244).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (246).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (246).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (248).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (248).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (254).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (254).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (255).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (255).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (257).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (257).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (258).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (258).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (259).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (259).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (260).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (260).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (268).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (268).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (269).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (269).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div><div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (272).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (272).jpg" alt="" width="110" height="90" /> </a> <div class="desc"></div> </div> <div class="img"> <a href="20112012/All/A Piece of my Heart/POMH (289).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/A Piece of my Heart/POMH (289).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Adopt a lil' Falcon/adopt.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Adopt a lil' Falcon/adopt.jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div><br /> Aloha rally <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 ().jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 ().jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (1).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (1).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (2).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (2).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (3).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (3).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (4).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (4).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (5).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (5).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (6).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (6).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (7).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (7).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (.jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (.jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (9).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (9).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (10).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (10).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (11).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (11).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (12).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (12).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (13).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (13).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (14).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (14).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (15).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (15).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (16).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (16).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (17).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (17).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (18).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (18).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (19).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (19).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (20).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (20).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (21).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (21).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (22).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (22).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (23).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (23).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (24).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (24).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (25).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (25).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (26).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (26).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (27).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (27).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (28).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (28).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (29).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (29).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (30).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (30).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> <div class="img"> <a href="20112012/All/Aloha rally/Aloha1 (31).jpg" class="lightbox20112012" rel="roadtrip"> <img src="20112012/All/Aloha rally/Aloha1 (31).jpg" alt="" width="110" height="90" /> </a> <div class="desc"> </div></div> </div> </div> <div id="footer" style="left: 0px; top: 0px; width: 938px; height: 29px"> </div> </body> </html>
-
ok so i have my login page all set up and working good , but i want to add a special thing to where after 3 login attempts it locks the account for like 30 mins , and notifies the use by email that someone is trying to login and failed... what would be the best way to do this?
-
is there any script that when someone clicks an ad it unlocks the page and opens a blank page for the ad they clicked on? here is what im doing , i have a proxy ... and for them to use it they have to click and ad , and i want it to when they click the ad i sends them to the proxy and it opens the ad they clicked in an new tab?
-
so what is the error?
-
im just commenting it out so you could find it...
-
not working :/ error reads "mysql_error() expects parameter 1 to be resource" on the line that says RIGHT HERE THIS LINE and its commented out for you... whats wrong? <?php if ($_POST["request"] == "requestFriendship") { $mem1 = preg_replace('#[^0-9]#i', '', $_POST['mem1']); $mem2 = preg_replace('#[^0-9]#i', '', $_POST['mem2']); // if (!$mem1 || !$mem2 || !$thisWipit) { echo 'Error: Missing data'; exit(); } // if ($mem1 == $mem2) { echo 'Error: You cannot add yourself as a friend'; exit(); } //See if already friends // RIGHT HERE THIS LINE $sql1 = "SELECT id FROM friends WHERE mem2='$mem1' AND mem1='$mem2' LIMIT 1"; $result1 = mysql_query($sql1) or die (mysql_error("sql1 failed")); $data1 = mysql_fetch_row($result1); if ($data1[0]) { echo 'This member is already your Friend'; exit(); } //Check if user already requested to be friends $sql2 = "SELECT id FROM friends_requests WHERE mem1='$mem1' AND mem2='$mem2' Limit 1"; $result2 = mysql_query($sql2) or die (mysql_error("sql2 failed")); $data2 = mysql_fetch_row($result2); if ($data2[0]) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> You have a Friend request pending for this member. Please be patient.'; exit(); } //Check if friend already requested to be friends $sql3 = "SELECT id FROM friends_requests WHERE mem1='$mem2' AND mem2='$mem1' Limit 1"; $result3 = mysql_query($sql3) or die (mysql_error("sql3 failed")); $data3 = mysql_fetch_row($result3); if ($data3[0]) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> This user has requested you as a Friend already! Check your Requests on your profile.'; exit(); } //If still here make insert $mem1=mysql_real_escape_string($mem1); $mem2=mysql_real_escape_string($mem2); $sql = mysql_query("INSERT INTO friends (mem1, mem2, timedate) VALUES('$mem1','$mem2',now())") or die (mysql_error("Friend Request Insertion Error")); echo '<img src="images/round_success.png" width="20" height="20" alt="Success" /> Friend request sent successfully. This member must approve the request.'; exit(); } ?>
-
need to change my code , but dont know where to start !
Glenskie replied to Glenskie's topic in PHP Coding Help
thanks ill try it out -
need to change my code , but dont know where to start !
Glenskie replied to Glenskie's topic in PHP Coding Help
Please! -
any code?
-
ok , i made a friends thing and its to hard to work with so i need to change it to where it has it own table ... i had it in an array in a table with other things , and now its hard to get it from the array so i want to make it simpler ... so here is my code and what i want to do , i need help and thank you in advance here is my part 1 of my adding people as friends. <?php if ($_POST["request"] == "requestFriendship") { $mem1 = preg_replace('#[^0-9]#i', '', $_POST['mem1']); $mem2 = preg_replace('#[^0-9]#i', '', $_POST['mem2']); // if (!$mem1 || !$mem2 || !$thisWipit) { echo 'Error: Missing data'; exit(); } // if ($mem1 == $mem2) { echo 'Error: You cannot add yourself as a friend'; exit(); } $sql_frnd_arry_mem1 = mysql_query("SELECT friend_array FROM myMembers WHERE id='$mem1' LIMIT 1"); while($row=mysql_fetch_array($sql_frnd_arry_mem1)) { $frnd_arry_mem1 = $row["friend_array"]; } $frndArryMem1 = explode(",", $frnd_arry_mem1); if (in_array($mem2, $frndArryMem1)) { echo 'This member is already your Friend'; exit(); } $sql = mysql_query("SELECT id FROM friends_requests WHERE mem1='$mem1' AND mem2='$mem2' Limit 1"); $numRows = mysql_num_rows($sql); if ($numRows > 0) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> You have a Friend request pending for this member. Please be patient.'; exit(); } $sql = mysql_query("SELECT id FROM friends_requests WHERE mem1='$mem2' AND mem2='$mem1' Limit 1"); $numRows = mysql_num_rows($sql); if ($numRows > 0) { echo '<img src="images/round_error.png" width="20" height="20" alt="Error" /> This user has requested you as a Friend already! Check your Requests on your profile.'; exit(); } $sql = mysql_query("INSERT INTO friends_requests (mem1, mem2, timedate) VALUES('$mem1','$mem2',now())") or die (mysql_error("Friend Request Insertion Error")); //$sql = mysql_query("INSERT INTO pms (to, from, time, sub, msg) VALUES('$mem2','XXXXX',now(),'New Friend Request','You have a new Friend Request waiting for approval.<br /><br />Navigate to your profile and check your friend requests. <br /><br />Thank you.')") or die (mysql_error("Friend Request PM Insertion Error")); //$id = mysql_insert_id(); echo '<img src="images/round_success.png" width="20" height="20" alt="Success" /> Friend request sent successfully. This member must approve the request.'; exit(); } ?> Now i need to change my code to where it inserts all this info and stuff not as an array and , in another table which is called "friends" my table is set up like this -- Table structure for table `friends` CREATE TABLE IF NOT EXISTS `friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mem_1` int(11) NOT NULL, `mem_2` int(11) NOT NULL, `date` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; So please if im not clear enough i will post more details