Jump to content

twilitegxa

Members
  • Posts

    1,020
  • Joined

  • Last visited

Everything posted by twilitegxa

  1. Which queries does yours replace? Sorry I feel like a complete idiot now :-(
  2. Okay so I added some more code, but I'm lost. :-( Help? $character_defect = "SELECT c.id, c.identity, c.desc, d.defect, d.id as defect_id FROM character_defects AS c LEFT JOIN defects AS d USING(id) WHERE c.identity = 'Sailor Moon'"; $character_defect_res = mysql_query($character_defect, $conn) or die(mysql_error()); while ($characters_defect_info = mysql_fetch_array($character_defect_res)) { $display_block .= " <tr> <td>$character_defect</td> </tr>"; } } ?> I know displaying the $character_defect variable is wrong, but how do I create the variables I want? I want to display the defect field from the defects table where the id from character_defects table matches the defect from the defects table. I hope that made sense.
  3. It is just displaying the code that many times now: http://zertinternetmarketing.com/rpg/profile.php
  4. Okay now then another stupid question...how do I display the data? I tried this, but it didn't work :-( $character_defect = "SELECT c.id, c.identity, c.desc, d.defect, d.id as defect_id FROM character_defects AS c LEFT JOIN defects AS d USING(id) WHERE c.identity = 'Sailor Moon'"; $display_block .= " <tr> <td>$character_defect</td> </tr>"; }
  5. Or...can I just select the data from one table and some data from the othe table based on a column field from the first table? I can't remember how to do this!!! :-(
  6. Hey guys. I'm getting back into PHP after about a year or two of a little hiatus and I need some help getting back into it. I am currently working on some old coding before I upgrade (will be learning that shortly), but I need some help joining these two tables so I can output the data I want to. Here's the basic premisis: Table 1: (defects table) id (#'s) defect (text) Table 2: (character defects table) id (#'s) identity (links the defects with the character) defect (matches the id from the previous table) desc (additional info about the defect for that particular character) Here's the code I have so far: //gather the defects $get_defects = "select * from defects"; $get_defects_res = mysql_query($get_defects, $conn) or die(mysql_error()); while ($defects_info = mysql_fetch_array($get_defects_res)) { $defects_id = $defects_info['id']; $defects = $defects_info['defect']; } //gather the character defects $get_character_defects = "select * from character_defects where identity = 'Sailor Moon'"; $get_character_defects_res = mysql_query($get_character_defects, $conn) or die(mysql_error()); $display_block .= "<table width=40% cellpadding=3 cellspacing=1 border=0>"; while ($character_defects_info = mysql_fetch_array($get_character_defects_res)) { $character_defects = $character_defects_info['defect']; $defect_desc = $character_defects_info['desc']; $character_defect = } So I have gathered all the defects and their respective id's, then gathered all the character defects where the identity is equal to a character (later this will be based on the logged in person and their selected character). So now I am stuck. I want to list all the defects this particular character has, plus the respective descriptions if they exist, but I don't know how to write the next part that connects them together. I'm thinking I need to JOIN them, but I'm kind of at a loss. I know, I know, I know...I should be using updated PHP. I haven't learned it yet and I'm waiting for a book to come in the mail for me to start learning, and then I will update it. My current server is running the old versions for now since this is what I know how to use and have examples to work with :-( Can anyone help me on this please? :-) It's very simple so far. I have the link if anyone needs it, although I doubt it will be as useful as the actual code I've listed above and the tables.
  7. Someone said there is a way to do it with some php code, but I didn't understand what they said. It's php within a Joomla plugin called Jumi, so I can't really add the CKEditor I don't think. And when we enter the text for example, like this into the text area: New Event Details Blah blah blah some more text here We're just pressing enter to add the line breaks, but when it saves it into the database, those line breaks either aren't saving or they aren't showing when we output the data. Can you see my code above and see which one it is and which I need to fix to solve the problem? For the text area, someone said I can either save it with nl2br when I put it into the database or when I display it use that, but I am not sure how to use it when displaying it. I think I had done it while submitting the data, but the problem is, I need to have the text displayed in the text area field when they edit the event and I am not doing it properly because it's not showing up. :-(
  8. I have a site that is using some simple php to submit a form, but I would like to be able to have it automatically add the line breaks whenever I press enter when entering my text, as well as automatically turning any web address into a clickable link. Is this possible, and can anyone show me how please? Here is my code: <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_spectac = "localhost"; $database_spectac = "database"; $username_spectac = "username"; $password_spectac = "password"; $spectac = mysql_pconnect($hostname_spectac, $username_spectac, $password_spectac) or trigger_error(mysql_error(),E_USER_ERROR); ?> <?php if(isset($_POST['eventDate'])){ $date = date('Y-m-d',strtotime($_POST['eventDate'])); } if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE tblEventCustom SET eventDate=%s, eventFile=%s, eventActive=%s, eventCost=%s, eventName=%s, eventFriendlyName=%s, eventDesc=%s WHERE eventId=%s", GetSQLValueString($date, "date"), GetSQLValueString($_POST['eventFile'], "text"), GetSQLValueString($_POST['eventActive'], "int"), GetSQLValueString($_POST['eventCost'], "int"), GetSQLValueString($_POST['eventName'], "text"), GetSQLValueString($_POST['eventFriendlyName'], "text"), GetSQLValueString($_POST['eventDesc'], "text"), GetSQLValueString($_POST['eventId'], "int")); mysql_select_db($database_spectac, $spectac); $Result1 = mysql_query($updateSQL, $spectac) or die(mysql_error()); } $colname_getEventDetails = "-1"; if (isset($_POST['eventId'])) { $colname_getEventDetails = $_POST['eventId']; } mysql_select_db($database_spectac, $spectac); $query_getEventDetails = sprintf("SELECT * FROM tblEventCustom WHERE eventId = %s", GetSQLValueString($colname_getEventDetails, "int")); $getEventDetails = mysql_query($query_getEventDetails, $spectac) or die(mysql_error()); $row_getEventDetails = mysql_fetch_assoc($getEventDetails); $totalRows_getEventDetails = mysql_num_rows($getEventDetails); mysql_select_db($database_spectac, $spectac); $query_getFileList = "SELECT * FROM tbl_eventFiles"; $getFileList = mysql_query($query_getFileList, $spectac) or die(mysql_error()); $row_getFileList = mysql_fetch_assoc($getFileList); $totalRows_getFileList = mysql_num_rows($getFileList); ?> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> </script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script> $(function() { $( "#datepicker" ).datepicker(); $(eventDate).datepicker({dateFormat: 'yy-mm-dd'}) }); </script> <? if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { ?><div align="center" >Event Updated <br> <a href="http://spectaculareventcenter.com/2012/index.php/component/content/article/2-uncategorised/22-editevents">Go back to event list. </a></div><? } ?> <form method="post" name="form1" action="<?php echo $editFormAction; ?>"> <table align="center"> <tr valign="baseline"> <td nowrap align="right">ID:</td> <td><?php echo $row_getEventDetails['eventId']; ?></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event Date:</td> <td><input type="text" name="eventDate" value="<?php echo htmlentities($row_getEventDetails['eventDate'], ENT_COMPAT, ''); ?>" size="32" id="datepicker"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event Active:</td> <td><p> <label> <input <?php if (!(strcmp($row_getEventDetails['eventActive'],"1"))) {echo "checked=\"checked\"";} ?> type="radio" name="eventActive" value="1" id="RadioGroup1_0"> Yes</label> <br> <label> <input <?php if (!(strcmp($row_getEventDetails['eventActive'],"0"))) {echo "checked=\"checked\"";} ?> type="radio" name="eventActive" value="0" id="RadioGroup1_1"> No</label> <br> </p></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event Cost:</td> <td><input type="text" name="eventCost" value="<?php echo htmlentities($row_getEventDetails['eventCost'], ENT_COMPAT, ''); ?>" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event Name:</td> <td><input type="text" name="eventName" value="<?php echo htmlentities($row_getEventDetails['eventName'], ENT_COMPAT, ''); ?>" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Display Name:</td> <td><input type="text" name="eventFriendlyName" value="<?php echo htmlentities($row_getEventDetails['eventFriendlyName'], ENT_COMPAT, ''); ?>" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event Desc:</td> <td><textarea cols=32 rows=5 name="eventDesc" value="<?php echo htmlentities($row_getEventDetails['eventDesc'], ENT_COMPAT, ''); ?>" size="32"></textarea></td> </tr> <tr valign="baseline"> <td nowrap align="right">Event File:</td> <td><select name="eventFile"> <?php do { ?> <option value="<?php echo $row_getFileList['fileName']?>"<?php if (!(strcmp($row_getFileList['fileName'], $row_getEventDetails['eventFile']))) {echo "selected=\"selected\"";} ?>><?php echo $row_getFileList['fileName']?></option> <?php } while ($row_getFileList = mysql_fetch_assoc($getFileList)); $rows = mysql_num_rows($getFileList); if($rows > 0) { mysql_data_seek($getFileList, 0); $row_getFileList = mysql_fetch_assoc($getFileList); } ?> </select> <a href="http://spectaculareventcenter.com/2012/customCode/file_upload.php" target="_blank">Upload File</a></td> </tr> <tr valign="baseline"> <td nowrap align="right"> </td> <td><input type="submit" value="Update record"></td> </tr> </table> <p> <input type="hidden" name="MM_update" value="form1"> <input type="hidden" name="eventId" value="<?php echo $row_getEventDetails['eventId']; ?>"> </p> </form> <?php mysql_free_result($getEventDetails); mysql_free_result($getFileList); ?> Also, when the "event" is edited, all the other fields are auto-populate with the data from the database table, but the text area one is not auto-populated (i.e. it's blank instead). Can you tell me how to write this code properly so I have it working the way I need it? Any help is greatly appreciated!
  9. Oh! I just figured it out! The table was users, and not carers, so now it works! Thank you for your help! You pointed me in the right direction with your questions! Thank you so much!
  10. I'm having trouble getting my records deleted from my table. Here is part of the admin page (the delete code I'm trying to use starts around line 1050): <td style="border:0px; text-align:center"><a href="?p=deletemember&user=<?=$id?>"><img src="images/icon_delete.png" style="border:0px" /></a></td> </tr> <? } } ?> </table> <? } if($p=='deletemember'){ $sql = "DELETE FROM `carers` WHERE `id`='".$_GET['user']."'"; mysql_query($sql); echo "<p class='fyi'>The selected carer has been deleted.</p>"; } if($p=='editmember'){ if($_POST['update2']){ $type = join(",", $_POST['type']); $sql="UPDATE `carers` SET `photo`='".$_POST['photo']."', `type`='".$type."', `availability`='".$_POST['availability']."', `experience`='".$_POST['experience']."', `qualifications`='".$_POST['qualifications']."', `description`='".$_POST['description']."', `active`='".$_POST['active']."' WHERE `uid`='".$_GET['user']."'"; mysql_query($sql); $sql="UPDATE `users` SET `email`='".$_POST['email']."', `phone`='".$_POST['phone']."', `firstname`='".$_POST['firstname']."', `lastname`='".$_POST['lastname']."', `location`='".$_POST['location']."' WHERE `id`='".$_GET['user']."'"; mysql_query($sql); echo "<p class='fyi'>Your information has been updated</p>"; } if($_POST['update']){ $sql="UPDATE `users` SET `email`='".$_POST['email']."', `phone`='".$_POST['phone']."', `firstname`='".$_POST['firstname']."', `lastname`='".$_POST['lastname']."', `location`='".$_POST['location']."' WHERE `id`='".$_GET['user']."'"; mysql_query($sql); echo "<p class='fyi'>Your information has been updated</p>"; } Please, can anyone tell me what I'm doing wrong and how to fix it? What other information would you need to answer my question? I couldn't fit the entire admin page because it exceeded the limit on there, but please let me know if you need to see more to help me. I have left an example of how the edit code works to see if that helps.
  11. I am trying to set my gradient in FireFox, but I can't get it quite right! From the body area, it's supposed to go from red to white, then it's supposed to go from white to the blue where the little logos start, and end before the bottom nav area, although on Safari I couldn't get the nav bar outside of the blue, so if you look in Safari you can see what I'm trying to achieve. After the logos, it's supposed to go straight to white. Can anyone help me get my CSS right? Here is what I have: body { background: #ffffff; background: -moz-linear-gradient(top, white 16.45%, #546a93 10%, #de4d20 20%, white 80%, #566991 85%, white 85%); background: -webkit-gradient(linear, 0 218, 0 100%, from(white), color-stop(0%, #546a93), color-stop(4%, #de4d20), color-stop(30%, white), color-stop(70%, white), color-stop(90%, #566991), color-stop(90%, white), to(white)); } The site can be viewed at: http://lhdairconditioning.com.au/ Any help would be greatly appreciated!
  12. Someone told me how to do this with a Flowplayer playlist (some JavaScript and HTML). Thanks for the help anyway! I guess I was in the wrong section of the forum!
  13. I was wondering if I could use an image swap similar to how this one is set up, but just swap the flv instead of the images: <script> function switch1(div) { if (document.getElementById('one')) { var option=['one','two']; for(var i=0; i<option.length; i++) { obj=document.getElementById(option[i]); obj.style.display=(option[i]==div)? "block" : "none"; } } } // function switchImg(i){ document.images["wine"].src = i; } </script> <style> #image-switch ul { margin:0 0 0 20px; color:red; list-style-type:none; } #image-switch li { padding:10px; } #image-switch #two, #image-switch #three { display:none; } #radiobs { width:150px; position:relative; margin:0; } #radiobs input { margin:0; padding:0; position:absolute; margin-left:6em; width:15px; } </style> <!-- gallery --> <div class="gallery"> <div class="display"> <div class="fright"><img src="/wp-content/themes/yorkpeoplefirst/assets/gallery2.jpg" id="wine" /><> <!--<div class="image i2"><img src="/wp-content/themes/yorkpeoplefirst/assets/gallery1.jpg" /><>--> <> <div class="thumbs"> <a href="#" onclick="switchImg('/wp-content/themes/yorkpeoplefirst/assets/gallery2.jpg')" class="first current-menu-item"><span>Informing people, influencing people and educating.</span></a> <a href="#" onclick="switchImg('/wp-content/themes/yorkpeoplefirst/assets/gallery1.jpg')" class="second"><span>Supporting each other through problems.</span></a> <> <>
  14. I need to do something similar to an image swap in CSS, so I am assuming it can be done with this as well. I have two buttons and two flv files. I want one to be already on the page, which is what I already have. I want the buttons, displayed above the video, to display the corresponding video in the spot where the current video is when the page is loaded. Basically, when the user clicks the first button, video1 is loaded onto the spot on the page. If they click button 2, then video2 is displayed on the spot on the page. How can I do this? Would it be similar to how you can swap images with CSS? Or would there be another method?
  15. Can anyone tell me what is causing the error unexpected $end? (Parse error[/size]: syntax error, unexpected $end in[/size] [/size]/home/content/13/6397313/html/annuities.php[/size] [/size]on line[/size] [/size]54): <?php if(isset($_POST['submit'])) { if(trim($_POST['name']) == '') { $hasError = true; } else { $name = trim($_POST['name']); }$phone = $_POST["phone"]; if(trim($_POST['email']) == '') { $hasError = true; } else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) { $hasError = true; } else { $email = trim($_POST['email']); if(trim($_POST['message']) == '') { $hasError = true; } else { if(function_exists('stripslashes')) { $comments = stripslashes(trim($_POST['message'])); } else { $comments = trim($_POST['message']); } } if(!isset($hasError)) { $emailTo = 'lizkula@webdesignsbyliz.com'; $subject = 'More Information Request : Annuities'; $body = "Name: $name \n\nEmail: $email \n\nPhone: $phone $comments"; $headers = 'From: tominsurance.com <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email; mail($emailTo, $subject, $body, $headers); $emailSent = true; } } ?> <?php if(isset($hasError)) { ?> <p class="error">Please check if you've filled all the fields with valid information. Thank you.</p> <?php } ?> <?php if(isset($emailSent) && $emailSent == true) { ?> <p><strong>Email Successfully Sent!</strong></p> <p>Thank you <strong><?php echo $name;?></strong> for requesting more information from us! Your email was successfully sent and we will be in touch with you soon.</p> <?php } ?> <html> <head> <meta http-equiv="Refresh" content="4;url=annuities.html"> </head> <body> </body> </html>
  16. I think I figured out a way to do it. On the line that sets the path for the upload, I added an if statement there and now it appears to be working. I'm not sure why it worked before. Maybe I forgot to test with an empty second image? Oh, well, thanks for the quick response!
  17. I have a page that was working correctly, and now all of a sudden it's not! Not sure what happened, but what it's supposed to do is allow the user to insert a new record into the database, along with two images. The data and the first image are uploading just fine, but now the second one isn't working for some reason. Can anyone take a look and see what might be the problem? It's inserting the path for the image into the database, but it's not saving it into the upload folder. I don't really understand how it could work one day and not a week or so later. Can anyone help me out here? I have it set to upload the image if the field for the image is not empty (''), but maybe that is causing the problem? If I take it out, it works properly, but then if the user leaves it empty, it produces an error, although the page reroutes like it's supposed to and everything and the record is inserted. Is there a better way to write this? <?php $dbhost = 'localhost'; $dbuser = 'username'; $dbpass = 'password'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'database'; mysql_select_db($dbname); $name = $_POST['name']; $metal = $_POST['metal']; $desc = $_POST['desc']; $item_no = $_POST['item_no']; $cut = $_POST['cut']; $color = $_POST['color']; $carats = $_POST['carats']; $clarity = $_POST['clarity']; $size = $_POST['size']; $type = $_POST['type']; $other = $_POST['other']; $total = $_POST['total']; $certificate = $_POST['certificate']; $value = $_POST['value']; $image2 = ''; $image = ''; //insert previous file upload code here //set where you want to store files //in this example we keep file in folder upload //$HTTP_POST_FILES['ufile']['name']; = upload file name //for example upload file name cartoon.gif . $path will be upload/cartoon.gif $path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0]; $path2= "upload/".$HTTP_POST_FILES['ufile']['name'][1]; //$path3= "upload/".$HTTP_POST_FILES['ufile']['name'][2]; //copy file to where you want to store file copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1); if ($image2 != '') { copy($HTTP_POST_FILES['ufile']['tmp_name'][1], $path2); } //copy($HTTP_POST_FILES['ufile']['tmp_name'][2], $path3); //$HTTP_POST_FILES['ufile']['name'] = file name //$HTTP_POST_FILES['ufile']['size'] = file size //$HTTP_POST_FILES['ufile']['type'] = type of file //echo "File Name :".$HTTP_POST_FILES['ufile']['name'][0]."<BR/>"; //echo "File Size :".$HTTP_POST_FILES['ufile']['size'][0]."<BR/>"; //echo "File Type :".$HTTP_POST_FILES['ufile']['type'][0]."<BR/>"; //echo "<img src=\"$path1\" width=\"150\" height=\"150\">"; //echo "<P>"; //echo "File Name :".$HTTP_POST_FILES['ufile']['name'][1]."<BR/>"; //echo "File Size :".$HTTP_POST_FILES['ufile']['size'][1]."<BR/>"; //echo "File Type :".$HTTP_POST_FILES['ufile']['type'][1]."<BR/>"; //echo "<img src=\"$path2\" width=\"150\" height=\"150\">"; //echo "<P>"; //echo "File Name :".$HTTP_POST_FILES['ufile']['name'][2]."<BR/>"; //echo "File Size :".$HTTP_POST_FILES['ufile']['size'][2]."<BR/>"; //echo "File Type :".$HTTP_POST_FILES['ufile']['type'][2]."<BR/>"; //echo "<img src=\"$path3\" width=\"150\" height=\"150\">"; /////////////////////////////////////////////////////// // Use this code to display the error or success. $filesize1=$HTTP_POST_FILES['ufile']['size'][0]; $filesize2=$HTTP_POST_FILES['ufile']['size'][1]; //$filesize3=$HTTP_POST_FILES['ufile']['size'][2]; if($filesize1 && $filesize2 != 0) { echo "Processing your request . . . ."; } else { //echo "ERROR....."; } ////////////////////////////////////////////// // What files that have a problem? (if found) //if($filesize1==0) { //echo "There're something error in your first file"; //echo "<BR />"; //} //if($filesize2==0) { //echo "There're something error in your second file"; //echo "<BR />"; //} //if($filesize3==0) { //echo "There're something error in your third file"; //echo "<BR />"; //} $image1 = str_replace("upload/","",$path1); $image2 = str_replace("upload/","",$path2); //end new code here $query = "INSERT INTO gallery VALUES ('', '$cut', '$color', '$carats', '$clarity', '$size', '$metal', '$other', '$total', '$certificate', '$value', '$image1', '$name', '$desc', '$item_no', '$type', '$image2')"; $query_res = mysql_query($query) or die(mysql_error()); //} //} echo '<script language="Javascript">'; echo 'window.location="[url=http://jhrevell.com/collections]http://jhrevell.com/collections[/url]"'; echo '</script>'; ?>
  18. I agree. The flv file is also not hosted on the client's server, but rather the server of the person I'm working for (who is working for them lol), so I really don't see the need for the obfuscation either. Thank you for the suggestion. I will try what you posted and see what happens.
  19. I'm not sure what you mean. Can you elaborate? I am trying to help someone who gave me this code on their site. It's on Wordpress and originally I was using another plugin, but since they wanted to encrypt the code that is placed on their client's site, they chose to do it this way, so I have no idea why. Can you help me set it up the right way and then they can re-encrypt it if necessary?
  20. I put this under JavaScript because when we use the encryption, it is in JavaScript. See below: <script type="text/javascript"> <!-- eval(unescape('%66%75%6e%63%74%69%6f%6e%20%6d%65%63%63%63%30%62%31%64%31%35%28%73%29%20%7b%0a%09%76%61%72%20%72%20%3d%20%22%22%3b%0a%09%76%61%72%20%74%6d%70%20%3d%20%73%2e%73%70%6c%69%74%28%22%31%33%32%37%35%33%33%36%22%29%3b%0a%09%73%20%3d%20%75%6e%65%73%63%61%70%65%28%74%6d%70%5b%30%5d%29%3b%0a%09%6b%20%3d%20%75%6e%65%73%63%61%70%65%28%74%6d%70%5b%31%5d%20%2b%20%22%35%33%30%39%30%35%22%29%3b%0a%09%66%6f%72%28%20%76%61%72%20%69%20%3d%20%30%3b%20%69%20%3c%20%73%2e%6c%65%6e%67%74%68%3b%20%69%2b%2b%29%20%7b%0a%09%09%72%20%2b%3d%20%53%74%72%69%6e%67%2e%66%72%6f%6d%43%68%61%72%43%6f%64%65%28%28%70%61%72%73%65%49%6e%74%28%6b%2e%63%68%61%72%41%74%28%69%25%6b%2e%6c%65%6e%67%74%68%29%29%5e%73%2e%63%68%61%72%43%6f%64%65%41%74%28%69%29%29%2b%33%29%3b%0a%09%7d%0a%09%72%65%74%75%72%6e%20%72%3b%0a%7d%0a')); eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%6d%65%63%63%63%30%62%31%64%31%35%28%27') + '%3e%68%5e%66%65%66%71%18%77%66%68%71%60%3d%1b%32%30%2a%19%1d%60%61%66%6d%65%74%3d%1b%31%32%2a%19%0a%02%62%5e%78%5e%3f%18%61%70%70%6a%31%2c%29%77%74%7d%2b%5b%6e%6c%5f%77%65%6c%62%64%65%5e%22%60%69%6d%28%6d%6a%65%29%6c%6e%61%2c%69%69%63%65%6f%70%71%2b%76%74%66%73%2c%6a%69%69%73%69%68%5f%71%64%6f%2f%33%2b%27%2b%37%2c%74%75%62%18%0c%07%74%75%6d%6b%3a%1a%59%69%6c%68%61%66%5e%74%65%6c%62%2c%70%2d%74%64%6d%67%6e%74%5b%70%62%23%63%6c%59%74%64%1e%3c%0c%07%3c%6e%5e%66%5e%6f%1a%6f%5f%6b%65%3c%1f%6f%6f%73%6f%62%1a%0d%03%72%5f%6e%74%62%3f%1c%65%78%71%68%30%28%2d%75%73%72%2b%5b%6a%68%57%76%67%6d%66%60%67%59%2d%60%69%69%2c%65%6b%67%28%68%6a%63%2b%66%69%63%61%6b%78%70%29%77%70%62%71%2b%65%69%69%77%6d%60%5e%73%65%6b%2b%31%2c%28%2b%37%28%70%7d%63%1a%0d%03%2d%3a%0d%01%39%68%5d%6f%57%6a%18%6c%5a%6b%63%3d%19%5e%6c%6a%6c%7d%63%77%6e%6d%71%61%68%64%62%6e%1c%1d%7a%5e%6c%75%66%3b%1e%76%69%72%67%1c%1d%25%3b%18%3e%69%5f%6e%59%6c%1d%6e%5d%6a%6b%3a%1a%59%6d%68%6d%73%76%60%6a%65%6d%78%5e%65%67%66%71%71%18%1b%73%5b%6a%72%6b%3a%1a%59%6d%75%5f%71%76%1f%18%2f%3b%14%39%68%59%6b%5f%6b%1a%6d%5e%6f%61%3a%16%63%6c%59%74%64%72%59%69%70%1a%09%07%7a%5e%6c%75%66%3b%25%67%6a%6b%66%65%64%33%78%1a%6a%6d%73%65%61%6d%70%1a%34%78%16%60%69%6c%75%6e%6d%6e%76%1f%32%7b%1f%56%5e%65%6f%60%6e%6d%75%6d%61%45%6f%69%65%6f%1a%30%1b%21%2c%45%33%31%3a%35%1f%20%1f%5a%59%64%69%65%68%6a%72%6e%09%07%68%44%6a%59%65%67%63%6c%77%1f%32%1c%65%6f%64%60%18%2d%1e%5e%6b%69%61%67%6c%4f%57%61%63%75%74%1e%36%18%29%32%1a%2a%1f%56%72%66%64%66%6e%41%6b%6f%6c%6a%1c%37%16%20%28%2a%29%2c%2c%2a%19%7a%7f%2a%1f%69%69%63%6a%1b%36%79%18%74%6f%6c%09%07%16%37%1a%62%75%70%6c%30%2a%2c%71%77%74%22%5e%6c%6f%5a%77%63%6d%64%61%63%5d%2b%69%6c%6f%2b%6e%77%72%61%67%62%69%2f%63%60%73%75%2b%2a%2b%2e%2d%28%5c%76%65%77%7f%6a%67%6c%75%2a%62%6e%75%1f%2c%1c%5e%7b%71%69%38%76%62%62%65%69%66%0f%04%6b%6d%1f%32%76%6b%73%63%2e%19%5e%77%72%6c%44%69%5b%71%1b%36%62%59%6f%70%67%79%29%16%6d%6c%59%72%68%67%77%77%1f%32%5b%78%16%72%6a%6e%1b%36%1e%62%77%71%68%34%2c%25%74%71%73%2f%5f%68%6f%58%76%67%69%62%68%66%5b%2c%64%6d%6b%2b%6c%76%76%65%61%6b%6c%29%64%6d%72%71%2b%28%2a%2a%29%2e%55%73%63%70%72%6b%63%6c%77%2b%66%6a%73%16%7a%5f%7d%20%1c%2d%3c%3f%2c%69%5c%67%6b%60%74%3c13275336%37%34%31%31%37%36%30' + unescape('%27%29%29%3b')); // --> </script> <noscript><i>Javascript required</i></noscript> I assume I cannot make this change while the code in encrypted, but if either way is possible, please let me know, anyone!
  21. I'm using an embedded flowplayer on my site, but i wanted to find out, is there a way to choose an image preview/splash image that will display until the user presses play? We have it set to not autoplay and we don't like the blank screen and want to use a preview image if possible. We have the flowplayer encrypted as well, but I am assuming we'd have to add the image preview and then re-encrypt it. Can anyone tell me how to add the preview image? Here is what we have before encryption: <object width="512" height="318" data="http://www.alkayemedia.com/one2one/clients/swfs/flowplayer-3.1.5.swf" type="application/x-shockwave-flash"> <param name="movie" value="http://www.alkayemedia.com/one2one/clients/swfs/flowplayer-3.1.5.swf" /> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="flashvars" value='config={"plugins":{"controls":{"backgroundColor":"#0E84B9","backgroun dGradient":"high","borderRadius":"25","bufferColor":"#000000"}},"clip":{"url ":"http://www.alkayemedia.com/myvideo/flvs/1-2-1_vizyment.flv","autoBufferi ng":true,"autoPlay":false},"playlist":[{"url":"http://www.alkayemedia.com/myvideo/flvs/1-2-1_vizyment.flv"}]}' /></object>
  22. LOL I just added the code back and altered what you mentioned, and now it's working! Maybe that was causing the error, because it was something about not being able to send the header because it was already started somewhere else. Thank you so much!!!!
  23. How do I add another unlink function to my code? Here is what I have: <?php $dbhost = 'localhost'; $dbuser = 'username'; $dbpass = 'password'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'database'; mysql_select_db($dbname); $all_records = "SELECT * FROM gallery WHERE id='$_GET[id]'"; $all_records_res = mysql_query($all_records); while($image=mysql_fetch_array($all_records_res)){ $location = $image['image']; $location2 = $image['image2']; } //echo "[url=http://jhrevell.com/wp-content/themes/twentyten_3/upload/]http://jhrevell.com/wp-content/themes/twentyten_3/upload/[/url]" . $location; unlink("upload/" . $location); $query = "DELETE FROM gallery WHERE id='$_GET[id]'"; $query_res = mysql_query($query) or die(mysql_error()); header("Location: [url=http://jhrevell.com/manage]http://jhrevell.com/manage[/url]"); ?> I tried adding another statement like: unlink("upload/" . $location2); But I am getting an error, so there must be another way to do this. Can anyone tell me how? I even tried adding to the original statement, unlink("upload/" . $location . $location2); and I know that was wrong because it just made both filenames run into one. How do I do this?
  24. I need advice on two aspects of this website I'm working on. 1) I want my gray bar to extend across the entire browser and not the size of the container. 2) My hover images are lining up the way I want them to. I want to hover image to align with the bottom of the gray bar, but I can't seem to get it to move with margin-top. What else can I try? Here is my site: <!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> <link href="./css/stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main_container"> <div id="logo"><> <div id="nav_container"> <ul> <li> <a href="#">Home</a> </li> <li> <a href="#">About Us</a> </li> <li> <a href="#">Train With Us</a> </li> <li> <a href="#">Personal Training</a> </li> <li> <a href="#">News</a> </li> <li> <a href="#">Resources</a> </li> <li> <a href="#">Gallery</a> </li> <li> <a href="#">Contact Us</a> </li> <ul> <> <div id="header"> <div id="header_video_container"> <iframe width="437" height="237" src="http://www.youtube.com/embed/nZMwKPmsbWE" frameborder="0" allowfullscreen></iframe> <> <div id="follow_container"> <div id="follow_icon"> <a href="#"><img src="images/bing.png" /></a> <a href="#"><img src="images/facebook.png" /></a> <a href="#"><img src="images/twitter.png" /></a> <> <> <> <> <div id="first_headline"><h1>Testin</h1><p> Hello and Welcome </p><> </body> </html> And me CSS: html,body { width: 100%; height: 100%; margin: 0px; } #main_container { width: 1259px; margin: 0 auto; } #logo { margin-left: 147px; height: 54px; width: 166px; background: url('../images/logo.png') no-repeat; } #nav_container { width: 100%; height: 30px; background: url('../images/menu_bg.png') repeat-x; margin: 0px; padding: 0px; overflow: visible;} #header { width: 958px; height: 330px; margin: 0 auto; background: url('../images/header.png') no-repeat; margin-top: 10px; } #header_video_container { background: #000; width: 437px; color: #fff; height: 237px; margin-left: 459px; margin-top: 36px; position: absolute; } #follow_container { width: 365px; height: 58px; background: url('../images/follow_us.png') no-repeat; margin-left: 38px; margin-top: 265px; position: absolute; } #follow_icon { margin-left: 150px; margin-top: 9px; position: absolute; width: 365px; } #follow_icon img { margin-left: 20px; border: 0px; } #nav_container li { display: inline-block; height: 33px; margin: 4px; text-align: center; width: 121px; } #nav_container ul li:hover { background: url('../images/menu_hover.png') no-repeat; display: inline-block; height: 33px; margin: 4px; text-align: center; width: 121px; } #first_headline { width: 898px; height: 146px; background: url('../images/first_headline_container.png') no-repeat; margin: 0 auto; } Can anyone help?
×
×
  • 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.