Jump to content

richiejones24

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by richiejones24

  1. MySql Values after implode() '140 Church Street','St John\'s Wood','London','NW8 8EX' MySql Values before implode() '140 Church Street','St John\\'s Wood','London','NW8 8EX' The Code while ($f < count($AddressSplitBus)) { $AddressSplitBus[$f] = trim($AddressSplitBus[$f]); $AddressSplitBus[$f] = mysql_real_escape_string($AddressSplitBus[$f]); $f++; } //Create the Values to insert into DB $MysqlValuesBus = implode("','", $AddressSplitBus); $MysqlValuesBus = "'$MysqlValuesBus'"; $NumberValsBus = count($AddressSplitBus); Again Thanks for the help guys
  2. I run data through mysql_real_escape_string() before using implode() but implode() is removing 1 of the \ after mysql_real_escape_string() has put them in. If anyone you could let me know how i could stop this i would be great. Thanks
  3. I am trying to get a php script on a remote server to execute on my server but im having problems getting it to work, and i am not sure if it is even feasible i have had a look on google but i cant find much information on it. This is what i have tried up to now I saved a php script as a txt file on y remote server. then used file_get_contents on my home server $curl_scraped_page = file_get_contents('http://www.remote_server.com/script.txt'); the content of the txt file was $sum = 1+1; then i tried to echo $sum on the home server but i did not work can anyone point me in the right direction or is what i am trying to do even feasible? Thanks in advanced
  4. I currently use the following function to clean form inputs to prevent MySql injection, Does this function do enough to prevent MySql injection? is there anything i have missed? <?php //Function to sanitize values received from the form. Prevents SQL injection function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } ?>
  5. I have a script which creates a Thumbnail image if one does not exists, the problem is i keep getting this error: Catchable fatal error: Object of class SimpleImage could not be converted to string in /homepages/22/d378569747/htdocs/scripts/primary_image.php on line 21 i have checked the logs and i think its a read error because the the image is already in use by the server if i remove (!file_exists("$root/thumnail_user_images/$image")) the script work fine, is there anyway to stop this error occuring? <?php //header('Content-Type: image/jpeg'); $root = $_SERVER['DOCUMENT_ROOT']; require("$root/include/mysqldb.php"); //mysql login details require("$root/include/mysql_connect.php"); //mysql connect $uin = $_GET['uin']; $result = mysql_query("SELECT * FROM Reg_Profile_images WHERE UIN='$uin' AND `primary` = '1' LIMIT 1"); while($row = mysql_fetch_array( $result )) { $image = $row[2]; if (!file_exists("$root/thumnail_user_images/$image")) { require("$root/include/image_resizing_function.php"); //create image $image = new SimpleImage(); $image->load("$root/raw_user_images/$image"); $image->resizeToWidth(250); $image->save("$root/thumnail_user_images/$image"); $image->output(); } else { readfile("$root/thumnail_user_images/$image"); } } //End Image file ?>
  6. Having some problems with PHP session i currently use cookies to log users in, but i have decided to use php session instead but i can get it to work, it simply dose not pass the variables unless include session id in every single link on my website, can anyone tell me where i am going wrong these are the session setting from php.in session.use_cookies = 1 session.use_only_cookies = 0 session.name = usersesid session.auto_start = 1 session.cookie_lifetime = 0 session.referer_check = 1 session.cache_expire = 180 session.use_trans_sid = 1
  7. I need to double a number each loop but cant find a way to do it, so eg, 500, 1000,2000,4000 ect
  8. On my new site on average every page that loads opens 9 MySql connections and runs 14 MySql Queries, And as I use Ajax to dynamically update the pages, so this repeats every 60 seconds per page. Is this too many connections? I am not having any problems at the moment but the site is getting more busy, and I don't want the site to start running slow, or the MySql server to crash. Any comment would be much appreciated.
  9. Sorry let me explain some more, i need the banner to display when the user receives a new message, without refreshing the page, to do this i have tried to integrate the "Refreshing Div" script so that every 30 seconds the, script call the php page if there is a new message it updates the trigger class and triggers the banner. but i havent been able to get it to work.
  10. Total Noob to Ajax, Been trying to get this to work for 2 days now and i've been pulling my hair out! Any help would be much appreciated. I am trying to get the following notification banner to run on demand <!DOCTYPE html> <html> <head> <title>Cool notification messages with CSS3 & Jquery demo - Redteamdesign</title> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> var myMessages = ['info','warning','error','success']; // define the messages types function hideAllMessages() { var messagesHeights = new Array(); // this array will store height for each for (i=0; i<myMessages.length; i++) { messagesHeights[i] = $('.' + myMessages[i]).outerHeight(); $('.' + myMessages[i]).css('top', -messagesHeights[i]); //move element outside viewport } } function showMessage(type) { $('.'+ type +'-trigger').click(function(){ hideAllMessages(); $('.'+type).animate({top:"0"}, 500); }); } $(document).ready(function(){ // Initially, hide them all hideAllMessages(); // Show message for(var i=0;i<myMessages.length;i++) { showMessage(myMessages[i]); } // When message is clicked, hide it $('.message').click(function(){ $(this).animate({top: -$(this).outerHeight()}, 500); }); }); </script> <style> body { margin: 0; padding: 0; font: 12px Arial, Helvetica, sans-serif; background: #f1f1f1; } .message { -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; background-size: 40px 40px; background-image: -webkit-gradient(linear, left top, right bottom, color-stop(.25, rgba(255, 255, 255, .05)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .05)), color-stop(.75, rgba(255, 255, 255, .05)), color-stop(.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); background-image: linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); -moz-box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); -webkit-box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); width: 100%; border: 1px solid; color: #fff; padding: 15px; position: fixed; _position: absolute; text-shadow: 0 1px 0 rgba(0,0,0,.5); -webkit-animation: animate-bg 5s linear infinite; -moz-animation: animate-bg 5s linear infinite; } .info { background-color: #4ea5cd; border-color: #3b8eb5; } .error { background-color: #de4343; border-color: #c43d3d; } .warning { background-color: #eaaf51; border-color: #d99a36; } .success { background-color: #61b832; border-color: #55a12c; } .message h3 { margin: 0 0 5px 0; } .message p { margin: 0; } @-webkit-keyframes animate-bg { from { background-position: 0 0; } to { background-position: -80px 0; } } @-moz-keyframes animate-bg { from { background-position: 0 0; } to { background-position: -80px 0; } } #trigger-list { text-align: center; margin: 100px 0; padding: 0; } #trigger-list li { display: inline-block; *display: inline; zoom: 1; } #trigger-list .trigger { display: inline-block; background: #ddd; border: 1px solid #777; padding: 10px 20px; margin: 0 5px; font: bold 12px Arial, Helvetica; text-decoration: none; color: #333; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } #trigger-list .trigger:hover { background: #f5f5f5; } /*--------------------------------------*/ .centered { text-align: center; } .twitter-follow-button { position: relative; top: 7px; } </style> </head> <body> <div class="info message"> <h3>FYI, something just happened!</h3> <p>This is just an info notification message.</p> </div> <div class="error message"> <h3>Ups, an error ocurred</h3> <p>This is just an error notification message.</p> </div> <div class="warning message"> <h3>Wait, I must warn you!</h3> <p>This is just a warning notification message.</p> </div> <div class="success message"> <h3>Congrats, you did it!</h3> <p>This is just a success notification message.</p> </div> <ul id="trigger-list"> <li><a href="#" class="trigger info-trigger">Info</a></li> <li><a href="#" class="trigger error-trigger">Error</a></li> <li><a href="#" class="trigger warning-trigger">Warning</a></li> <li><a href="#" class="trigger success-trigger">Success</a></li> </ul> </body> </html> i have been trying to inter-grate the following script so that i can call it from a php script // Customise those settings var seconds = 5; var divid = "timediv"; var url = "boo.php"; //////////////////////////////// // // Refreshing the DIV // //////////////////////////////// function refreshdiv(){ // The XMLHttpRequest object var xmlHttp; try{ xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari } catch (e){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ alert("Your browser does not support AJAX."); return false; } } } // Timestamp for preventing IE caching the GET request fetch_unix_timestamp = function() { return parseInt(new Date().getTime().toString().substring(0, 10)) } var timestamp = fetch_unix_timestamp(); var nocacheurl = url+"?t="+timestamp; // The code... xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ document.getElementById(divid).innerHTML=xmlHttp.responseText; setTimeout('refreshdiv()',seconds*1000); } } xmlHttp.open("GET",nocacheurl,true); xmlHttp.send(null); } // Start the refreshing process var seconds; window.onload = function startrefresh(){ setTimeout('refreshdiv()',seconds*1000); }
  11. Currently on my website i record the statistics, for my pages they include unique views, and total page views. at the moment every time a visitor loads a page a script updates a MySql Db. This seems very resource intensive, is there a better way to record statistics??
  12. I have had a problem with people attacking my site and trying to gain access to users accounts so i beefed up security, however now users are complaining they keep getting logged out. Here are the variables i use to validate the users and i dont want to strip them down any more can anyone give me any ideas for changing them so its still secure but not so strict as to keep logging the users out? 1. Username & password is encrypted into a cookie and verified on every page they visit. 2. There ip address is recorded on login and is checked against there current ip, on every page they visit via MySql. 3. When the user logs in a unix time stamp (mySql) is generated an updated of every page they visit and if it has not been updated in the last 60 mins the user is logged out. 4.I also generate a random key which is stored in the DB and is passed on every page via GET. 5.If a user tries to login and fails an email is sent to them and if 3 unsuccessful attempts user is locked out for 30mins.
  13. I currently have a User Authentication Script, which when the user successfully logs in generates a cookie, which is there password encrypted using MD5 which is then verified on every page they visit against there password which works great. I am thinking of adding another level of security, when the user logs in there current ip address is recorded then on every page they visit as well as there password been verified there ip is compared against the ip they had when they logged in. I know that if the user changes there IP they will be logged out, that is fine but is there any other problems which I have not foreseen? is there any reason i should not do this? Thanks for the help
  14. Can anyone tell me the best way to handle empty search field on a mysql Query? The query below if $name is left blank but the other fields are filled it shows no results, currently i use if.... else.... but that means i have a lot of code replicated, is there a better way? $sql = "SELECT private.username, se.age, se.ro, se.suc, se.bu, se.fu, com.in, com.ol, se.di, se.bo, se.uin FROM Reg_Profile_public AS se INNER JOIN Reg_Profile_Private AS private USING (uin) INNER JOIN Reg_Profile_public_Com AS com USING (uin) WHERE se.age BETWEEN '$low' AND '$high' AND se.ro=''$name";
  15. I am having some trouble with the code below i have a table that contains financial transactions, and i am trying to display a running balance, but its not working its just displaying the original transaction amount, i need the code to get the balance from the previous loop and add the transaction amount in the current loop. <? $i = 0; $result = mysql_query("SELECT * FROM transactions WHERE UIN ='$uincookie' $limit "); while($row = mysql_fetch_array($result)) { if ($i == 0) { $bal[] = $row[6] + 0.00; } else { $bal[] = $row[6] + $bal[$i]; } print "<tr class=\"\"><td style=\"vertical-align: middle; text-align: center;\">$row[2]</td><td style=\"vertical-align: middle; text-align: center;\" class=\"read\"><span class=\"read\" style=\"vertical-align: middle; text-align: center;\">$row[3]</span></td><td>$row[4]</td><td>$row[5]</td><td>£$row[6]</td><td>£" . $bal[$i] . "</td></tr>\n"; $i++; $p++; //The balances starts at 2 so need to add rows per page to 2! } ?>
  16. I am trying to design a form validation script, using an array to display errors,but its not working and i am not sure where I am going wrong. <? $confcode = rand(); $pageid = "reg6"; $root = $_SERVER['DOCUMENT_ROOT']; require("$root/include/incpost.php"); require("$root/include/mysqldb.php"); if ($_POST['firstname'] == NULL) { $error[] = "First Name Field Is Empty"; } if ($_POST['lastname'] == NULL) { $error[] = "Last Name Field Is Empty"; } if ($_POST['phonea'] == NULL) { $error[] = "Phone Number Field Is Empty"; } elseif (!is_numeric($_POST['phonea'])) { $error[] = "Phone Number Can Only Contain Numbers"; } if ($_POST['username'] == NULL) { $error[] = "User Name Field Is Empty"; } elseif (strlen($_POST['username']) <= 4) { $error[] = "Username Is Too Short"; } if($_POST['email1'] !== $_POST['email2']) {$error[] = "Email's Do Not Match"; } elseif (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email1'])) {$error[] = "Email Address Is Not Valid"; } if (strlen($_POST['password1']) <= 6) { $error[] = "Password Is To Short"; } elseif ($password1 !== $password2) { $error[] = "Passwords Do Not Mach"; } if (preg_match('/[^a*()-z0@£"%&-9.#$-]/i', $_POST['password1'])) { $error[] = "Password Contains Invalid Charactors"; } if (preg_match('/[^a*()-z0@£"%&-9.#$-]/i', $_POST['username'])) { $error[] = "Username Contains Invalid Charactors"; } if ([array count] == 0) //if no errors add to DB { mysql_query("INSERT INTO Reg_Profile_Private (UIN, firstname, lastname, email, phone, password, username) VALUES ('$uin', '$firstname', '$lastname', '$email', '$phone', '$passwordenc', '$username')"); } else { //else print errors $error[] = array(); $active_keys = array(); foreach($error as $key => $myvar) {print "$myvar </p>\n"; } } ?>
  17. I currently use the script below to validate a registration form when it is posted to the script, it works well but i know there are better ways to do it, and i want to change what is your advice on the best form validation? if ($_POST['email1'] !== $_POST['email2']) {header ("Location: /reg.php?error=email_no_matchname']"); } else { if ($password1 !== $password2) { header ("Location: /reg.php?error=password_no_match"); } else { if ($_POST['firstname'] == NULL) { header ("Location: /reg.php?error=firstname_null"); } else { if ($_POST['lastname'] == NULL) { header ("Location: /reg.php?error=lastname_null"); } else { if ($_POST['phonea'] == NULL) { header ("Location: /reg.php?error=phonea_null"); } else { if ($_POST['phoneb'] == NULL) { header ("Location: /reg.php?error=phoneb_null"); } else { if ($_POST['username'] == NULL) { header ("Location: /reg.php?error=username_null"); } else { if ($_POST['email1'] == NULL) { header ("Location: /reg.php?error=email_null"); } else { if (strlen($_POST['password1']) <= 6) { header ("Location: /reg.php?error=password_length"); } else { if (strlen($_POST['phoneb']) <= 5) { header ("Location: /reg.php?error=phone_length"); } else { if (!is_numeric($_POST['phoneb'])) { header ("Location: /reg.php?error=phonea_numeric"); } else { if (!is_numeric($_POST['phoneb'])) { header ("Location: /reg.php?error=phoneb_numeric"); } else { if (strlen($_POST['username']) <= 4) { header ("Location: /reg.php?error=username_length"); } else { if (preg_match('/[^a*()-z0@£"%&-9.#$-]/i', $_POST['password1'])) { header ("Location: /reg.php?error=pwd_inv_cha"); } else { if (preg_match('/[^a*()-z0@£"%&-9.#$-]/i', $_POST['password1'])) { header ("Location: /reg.php?error=usn_inv_cha"); } else { if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email1'])) { header ("Location: /reg.php?error=email_validation"); } }}}}}}}}}}}}}}}
  18. I have been pulling my hair out for the lasy 3 hours i am trying to update a MySql table but i cant get it too work, i just keep getting MySql error #1064 - You have an error in your SQL syntax; if i just update 1 field it works fine but if i try to update more than 1 field it dosent work, Help Please! <?php $root = $_SERVER['DOCUMENT_ROOT']; require("$root/include/mysqldb.php"); require("$root/include/incpost.php"); $con = mysql_connect("$dbhost","$dbuser","$dbpass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$dbame", $con); mysql_query("UPDATE Reg_Profile_p SET build='$build' col='$col' size='$size' WHERE uin = '$uinco'"); ?>
  19. Is there a better way to define the page name other than require("./anyfolder/any.php"); trouble is i define the page by using ./myfole/anyfile.php but if the page is called from deeper inside my site it dose not work. i have to change all the includes and put an additional . so it ends up looking like this ../myfole/anyfile.php
  20. I am trying to join these 2 tables below, but its not working, any ideas where i am going wrong?? <?php require("../include/mysqldb.php"); $con = mysql_connect("$dbhost","$dbuser","$dbpass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$dbame", $con); $result = "SELECT * Reg_Profile_public.pref, Search_profiles_up.search_small_image FROM Search_profiles_up INNER JOIN Reg_Profile_public ON Search_profiles_up.UIN=Reg_Profile_public.UIN WHERE UIN='803272125132009'"; while ($row = mysql_fetch_array($result)) { echo $row['search_small_image']; echo $row['pref']; } ?>
  21. I am trying to join these 2 tables below, but its not working, any ideas where i am going wrong?? <?php require("../include/mysqldb.php"); $con = mysql_connect("$dbhost","$dbuser","$dbpass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$dbame", $con); $result = "SELECT * Reg_Profile_public.pref, Search_profiles_up.search_small_image FROM Search_profiles_up INNER JOIN Reg_Profile_public_Sex ON Search_profiles_up.UIN=Reg_Profile_public.UIN WHERE UIN='803272125132009'"; while ($row = mysql_fetch_array($result)) { echo $row['search_small_image']; echo $row['pref']; } ?>
  22. At the very bottom of the page i am using the tag <? $_SERVER['REMOTE_ADDR'] ?> to show the clients ip address but it is not working any ideas where i am going wrong? <?php require("../include/validate_mem_cookie.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Edit Your Pictures</title> </head> <link rel="stylesheet" type="text/css" href="../graphic_include/newstudio.css"> <body> <?php $uincookie = $_COOKIE["uin"]; require("../include/mysqldb.php"); $con = mysql_connect("$dbhost","$dbuser","$dbpass"); $imgff = "/p1c5_u91o4d/" ; if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$dbame", $con); $result = mysql_query("SELECT * FROM Reg_Profile_images WHERE uin ='$uincookie'"); $i=1; while($rows = mysql_fetch_array($result)){ $image_zero = $rows[image_zero] ; $image_one = $rows[image_one] ; $image_two = $rows[image_two] ; $image_three = $rows[image_three] ; $image_four = $rows[image_four] ; $image_five = $rows[image_five] ; $image_six = $rows[image_six] ; $image_seven = $rows[image_seven] ; $image_eight = $rows[image_eight] ; $image_nine = $rows[image_nine] ; $image_ten = $rows[image_ten] ; $image_eleven = $rows[image_eleven] ; if (!empty($rows[image_zero])) { print "<p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_zero\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form3\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button3\" id=\"button3\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_zero\"> <input type=\"hidden\" name=\"updel\" value=\"image_zero\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form4\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button3\" disabled=\"disabled\" id=\"button4\" value=\"PRIMARY PICTURE\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td>\n"; } if (!empty($rows[image_one])) { print "<td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_one\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form5\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button4\" id=\"button5\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_one\"> <input type=\"hidden\" name=\"updel\" value=\"image_one\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form6\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button4\" id=\"button6\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td>\n"; } if (!empty($rows[image_two])) { print "<td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_two\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form7\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button5\" id=\"button7\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_two\"> <input type=\"hidden\" name=\"updel\" value=\"image_two\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form8\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button5\" id=\"button8\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table>\n"; } if (!empty($rows[image_three])) { print " </td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_three\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form9\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button6\" id=\"button9\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_three\"> <input type=\"hidden\" name=\"updel\" value=\"image_three\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form10\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button6\" id=\"button10\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table>\n"; } if (!empty($rows[image_four])) { print " </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_four\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_four\"> <input type=\"hidden\" name=\"updel\" value=\"image_four\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form2\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button2\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td>\n"; } if (!empty($rows[image_five])) { print " </tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_five\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form11\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button11\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_five\"> <input type=\"hidden\" name=\"updel\" value=\"image_five\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form12\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button12\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td>\n"; } if (!empty($rows[image_six])) { print " <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_six\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form13\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button13\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_six\"> <input type=\"hidden\" name=\"updel\" value=\"image_six\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form14\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button14\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td> \n"; } if (!empty($rows[image_seven])) { print " <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_seven\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form15\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button15\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_seven\"> <input type=\"hidden\" name=\"updel\" value=\"image_seven\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form16\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button\" id=\"button16\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr>\n"; } if (!empty($rows[image_eight])) { print " <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_eight\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form17\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button17\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_eight\"> <input type=\"hidden\" name=\"updel\" value=\"image_eight\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form18\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button18\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td>\n"; } if (!empty($rows[image_nine])) { print "</tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_nine\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form19\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button19\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_nine\"> <input type=\"hidden\" name=\"updel\" value=\"image_nine\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form20\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button20\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td>\n"; } if (!empty($rows[image_ten])) { print "<td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"$imgff$image_ten\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form21\" name=\"form1\" method=\"post\" action=\"..\p1c5_u91o4d\delete_image.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button21\" value=\"Delete Picture\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> <input type=\"hidden\" name=\"remove\" value=\"$image_ten\"> <input type=\"hidden\" name=\"updel\" value=\"image_ten\"> </div> </label> </form></td> </tr> <tr> <td><form id=\"form22\" name=\"form2\" method=\"post\" action=\"change_order.php\"> <label> <div align=\"left\"> <input type=\"submit\" name=\"button2\" id=\"button22\" value=\"Make Primary\" /> <input type=\"hidden\" name=\"img[]\" value=\"$image_ten\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_zero\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_one\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_two\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_four\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_five\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_six\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_seven\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eight\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_nine\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_three\"> <input type=\"hidden\" name=\"img[]\" value=\"$image_eleven\"> </div> </label> </form></td> </tr> </table></td>\n"; } if (!empty($rows[image_eleven])) { print "<td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\
  23. Any ideas how to get my premium profiles to display first in the search results? by using the MySql ORDER BY? I have added a field to my table call premium if the profile is a premium profile it has "1" in it. I have being trying all night to get it to work, but it is still not working :-(
  24. Hi i am connecting to my database and i need the script to print something if the field is not empty, I am using the following, but its not working any ideas where i am going wrong? if (isset($row[image_zero])) {
  25. Having a bit of a problem with the code below, I am trying to get it the print the html code if the MySql field is not empty but its not working. Any ideas guy? thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php $uincookie = $_COOKIE["uin"]; require("./include/mysqldb.php"); $con = mysql_connect("$dbhost","$dbuser","$dbpass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("$dbame", $con); $result = mysql_query("SELECT * FROM Reg_Profile_images WHERE uin ='$uincookie'"); $i=1; while($rows = mysql_fetch_array($result)){ if (isset($row[image_zero])) { print "<p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form3\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button3\" id=\"button3\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form4\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button3\" id=\"button4\" value=\"Make Primary\" /> </div> </label> </form></td> </tr> </table></td>\n"; } if (isset($row[image_one])) { print "<td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form5\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button4\" id=\"button5\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form6\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button4\" id=\"button6\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_two])) { print " </tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form7\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button5\" id=\"button7\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form8\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button5\" id=\"button8\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_three])) { print " </tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form9\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button6\" id=\"button9\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form10\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button6\" id=\"button10\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_four])) { print " </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form2\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button2\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_five])) { print " </tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form11\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button11\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form12\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button12\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_six])) { print "</tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form13\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button13\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form14\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button14\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_seven])) { print " </tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form15\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button15\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form16\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button\" id=\"button16\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_eight])) { print " </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <p> </p> <table width=\"0\" border=\"0\"> <tr> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form17\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button17\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form18\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button18\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_nine])) { print "</tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form19\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button19\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form20\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button20\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_ten])) { print "</tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form21\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button21\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form22\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button22\" value=\"Make Primary\" /> </div> </label> </form></td>\n"; } if (isset($row[image_eleven])) { print "</tr> </table></td> <td><table width=\"112\" height=\"129\" border=\"0\"> <tr> <td><img src=\"37658_1324208185514_1240161074_30749958_5597262_n.jpg\" alt=\"\" width=\"156\" height=\"166\" /></td> </tr> <tr> <td><form id=\"form23\" name=\"form1\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button23\" value=\"Delete Picture\" /> </div> </label> </form></td> </tr> <tr> <td><form id=\"form24\" name=\"form2\" method=\"post\" action=\"\"> <label> <div align=\"center\"> <input type=\"submit\" name=\"button2\" id=\"button24\" value=\"Make Primary\" /> </div> </label> </form></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr>\n"; } //if($i %4 == 0) { echo '</tr><tr>'; } // this will create the line separator by inserting a row when the $i is dividable by 4 } ?> </table> <p> </p> <p> </p> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.