Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by floridaflatlander

  1. is id="xxx" auto generated?
  2. Okay I printed $q and found the problem, 12 the number I didn't want was first up in the loop and address in the if() not the elseif() Sorry about that Muddy_Funster and thanks
  3. In the elseif below if the $group_num is in the $dont_print I don't want add the info, what am I doing wrong $dont_print = array(0, 12); foreach ($group_array as $key => $group_num) { if (!$add_on_sql) {$add_on_sql = 'WHERE id_group = '.$group_num.'';} elseif (in_array($group_num, $dont_print, FALSE)) {$add_on_sql .= ' OR id_group = '.$group_num.'';} } Thanks
  4. Sorry I miss read your first post, I thought you said you had two problems. My bad. Anyway YOU wrote it in a drupal theme? I counted 29 divs in your html, if you need them good, if not why have them. Have you drawn out the basic look of your web page? I got 15 errors in your html here http://validator.w3.org/ and 10 errors in your css here http://jigsaw.w3.org/css-validator/, and you should book mark these two sites. These errors can effect how your web page is displayed. I don't know but it looks like you made it harder than it needs to be, there are sharper people here and on other sites maybe they can help you.
  5. I think you can get rid of the white area around the parameter by using: body {margin: 0; padding: 0;} note this is not .body. I'm at a loss about the white borders on the left and right. Were did you get this code from?
  6. So what wrong with picture on the left, what have you changed to make it like the pic on the right?
  7. You need to get firefox's firebug and use it. But when I look at it in firebug page_body has no padding or margins and the space between the page_body and the footer comes from the padding of a div inside another div inside page_body. Look at the class "left_Text" in firebug and see what happens to it's padding ... I don't know what happens to it when you increase the screen size. After you do that you could also try getting rid of left_text bottom padding and use a margin bottom for page_body. I'm assuming this isn't your code, or maybe you've gotten pieces from this or that or the other. Also it has a God awful amount of divs in it and you can't name id's the same name in the same file. Always run your css through here http://jigsaw.w3.org/css-validator/ and your html through here http://validator.w3.org/ . PS you're not closing your image tag on line 310 and .... I think you can use chrome to look at the code and style too.
  8. Well the very first step will be fixing your html
  9. The first one looks fine, the I couldn't open the second one, do you need to fix the errors to increase the chances of cross browser compatibility.
  10. So I take it you didn't build this. Anyway I'd put another div inside the main div and give it the world of warfare graphic with the jet a background image, that way you'd have two background images in the two divs in the header, one with the gradient background image and the other with the graphic and jet
  11. I just copied the page and css to my computer but not the header image. I then took the min width off and it worked. The only problem Is that it over rode the left column when I collapsed it. So remove you header bg image and width and see if it works. With that said the bg image shouldn't stop the collapse of the page. I'd only have min width on the left column and min width on the main of about 400-500 or so. Also you have the contents of the left column at 100% then 5px in padding, so your contents width is 100% plus (5px * 2) also was the world of warfare graphic with the jet a background image?
  12. I think if they have content they'll only shrink so far before one div drops below the other. I looked at it and can't figure it out, however I placed your html code here http://validator.w3.org/#validate_by_input and came up with 14 error's. Fix them and see if that helps I would say use a minimum width but it's pretty wide when the right div falls
  13. I trying to build a page that has a variable width depending on the viewing monitor that also has a fixed column to one side. My problem is that when I have floated divs in the none floated div and put <br style="clear; both;"/> under the divs or apply the clear to the p tag the clear drops below the right column. I thought the clear style only applied to it's containing div. How can I fix this? Thanks. This image is an example of my problem
  14. Jesus, thanks fastsol, I don't even think of using the mysqli_num_rows, that does look cleaner. thanks
  15. I have a select that allows a user to select an album. I then run a query to check the post of the select to make sure it's a real album number. So what I do is run the query then use in_array to see if the entered number is a good album number My problem is the first one doesn't return an array and when I use print_r I only get one value I can't get this one to work, why won't the in_array work? I thought $aid_rows = mysqli_fetch_array($ar, MYSQLI_ASSOC) would give me an array // Check for an album id if (empty($_POST['aid'])) { $errors [] = '<h5 style="color: red;">* You forgot to select an album.</h5>'; } elseif (is_numeric($_POST['aid'])) { $aid_entry = (int)(trim($_POST['aid'])); $aq ="SELECT aid FROM cpg15x_albums"; $ar = mysqli_query($dbc3, $aq);// or die("Error: ".mysqli_error($dbc3)); $aid_rows = mysqli_fetch_array($ar, MYSQLI_ASSOC); if (in_array($aid_entry, $aid_rows)) { $aid = $aid_entry; } else {$errors[] = '<h5 style="color: red;">* Album number error.</h5>';} } else {$errors[] = '<h5 style="color: red;">* Album string error.</h5>';} My new one that works but I have to use a while loop // Check for an album id if (empty($_POST['aid'])) { $errors [] = '<h5 style="color: red;">* You forgot to select an album.</h5>'; } elseif (is_numeric($_POST['aid'])) { $aid_entry = (int)(trim($_POST['aid'])); $aq ="SELECT aid FROM cpg15x_albums"; $ar = mysqli_query($dbc3, $aq);// or die("Error: ".mysqli_error($dbc3)); $aid_rows = mysqli_fetch_array($ar, MYSQLI_ASSOC); $aids = array(); while ($aid_rows = mysqli_fetch_array($ar, MYSQLI_ASSOC)) { $aids[] = $aid_rows['aid']; } if (in_array($aid_entry, $aids)) { $aid = $aid_entry; } else {$errors[] = '<h5 style="color: red;">* Album number error.</h5>';} } else {$errors[] = '<h5 style="color: red;">* Album string error.</h5>';}
  16. Thanks for the reply ginerjm, no the conditions on the member page worked, the redirect also worked. The problem was on the login page if there was a session member id it would redirect back to the member page, the page the first redirect came from. I added ($_SESSION['agent'] == md5($_SERVER['HTTP_USER_AGENT'])) to the condition on the login page and it worked. Thanks again
  17. I can't get this simple redirect to work I put it at the beginning of a page to make sure all the needed session are present. I think the problem is in the user agent, I take that out and it works Say it's on website/member/index.php?id=1 and I change the user agent it doesn't redirect. It gives me a "This page can't be displayed" error on the same page website/member/index.php?id=1. function user_loggedin($home){ //if ($_SESSION['agent'] != md5($_SERVER['HTTP_USER_AGENT'])) echo 'NO Match'; else echo 'Match'; // for testing // If not fully logged in with required Sessions redirect if (!isset($_SESSION['id_member']) OR !isset($_SESSION['id_group']) OR !isset($_SESSION['agent']) OR ($_SESSION['agent'] != md5($_SERVER['HTTP_USER_AGENT']))) { header("Location: $home/members/login.php"); exit(); // Quit the script. } } Thanks
  18. I would think so, are you sure your provider used a photo that was large enough for the test upload?
  19. What do you or they have your php.ini memory limit set to? Two interesting links I found last week were http://forums.devshed.com/php-development-5/imagecreatefromjpeg-causes-memory-error-667236.html & http://www.webdeveloper.com/forum/showthread.php?182328-imagecreatefromjpeg-is-eating-memory If I remember correctly and did it correctly my 2.91mb photo took up almost 71mb. As a poster noted you definitely want to use imagedestroy
  20. Thanks Barand & Requinix, this is I was looking for. I'm saving a little processing taking the thumb from the resized photo and because it's a thumb quality doesn't have to be perfect. Thanks again
  21. Thanks for the reply requinix, I really don't know how it works but I'm assuming that the image is already loaded to make the larger 450*400 picture so it wouldn't be loading twice(I think)
  22. http://php.net/manual/en/function.htmlentities.php note the flags constants, I use ENT_QUOTES
  23. I'm saving two photos from an upload. One is a larger photo and the other is a thumb. I was wondering if i used less resources to create the thumb copy of a photo from the reduced larger photo say 450*400 or create the thumb from the original that can be say 3mb and say 2500px * whatever or is it 6 one way or a half dozen another? imagecopyresampled($photo, $source, 0, 0, 0, 0, $photo_width, $photo_height, $width, $height); // imagecopyresampled($thumb_photo, $source, 0, 0, 0, 0, $thumb_width, $thumb_height, $width, $height); // OLD WAY imagecopyresampled($thumb_photo, $photo, 0, 0, 0, 0, $thumb_width, $thumb_height, $photo_width, $photo_height);
  24. Has anyone had this problem that I solved(I hope) with bleepingcomputer.com Whenever I tried to upload a photo here or at several other sites from my computer the picture folders wouldn't shown on this or several other sites in ie10, they worked fine with firefox. And yes I was always in the right folder and none of the folders were hidden. On one of several searches ... "not all the picture folders are showing in ie10 upload" I got this http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/not-all-the-folders-are-showing-ie10/36835c45-afd9-4573-8ea1-658df0dd4368 then this http://www.bleepingcomputer.com/download/unhide/ This link said ... "Unhide is a program that reverts back the changes made to your files and Windows Registry by the rogue.FakeHDD family of rogue anti-spyware program. This family of malware pretends to be a hard disk repair and system optimization program for Windows. In reality, though, these programs are computer infections that deliberately hide your files and change certain settings in the Windows Registry to make it appear that you have lost data on your hard drive. It will then prompt you to purchase the program to restore the data" Running a full scan with Norton Security Suite did not help. Now a week or so ago I did click a link to a site that said I need to run their software to clean my computer of viruses so maybe I got something there. I ran the above from bleepingcomputer.com and ie upload now reads the photo folders. So my question is Has anyone had this problem or heard of it and how it you solve it? Thanks
  • 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.