Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by floridaflatlander

  1. I need a js gallery that automatically loads a main photo and I'm hoping someone can point me in the right direction to find one.

    Currently I'm using http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

    But my issue is that this code doesn't load a photo until an image is clicked or you hover over it and I want one that loads a chosen photo automatically. (I have a db table with the photos info in it)

    Thanks for any help or pointers

     

    SJ

  2. How can I set up pretty/styled emails and mailing list?

     

    I can use php's mail() and I use it all the time but I can't style the email article or add pics.  Every time I add an h1 tag for a test I get <h1> in the email not the style text.

     

    Does anyone have links to tell me how to do this?
    Is it worth the hassle?
    Would it just be easier just to use someone like constantcontact dot com

     

    Thanks

  3. Looks good to real good to me and it worked well, I didn't read your last sentence of the first post so I was missing the link to the site at first. The logo on the bottom may be too big but this is just a small small issue to me.

  4. so you used session_destroy() and you destroyed your session cookie name (time()-x)?

     

    Can you echo the session variables after you logout?

     

    Can you post your logout code?

     

    Are you using ie?

     

    Not that I'm talking bad about ie but believe it or not I had something like this happen a few months ago, I looked at it for hours, I restarted my machine and I guess ie reloaded correctly and it work from then on.

  5. 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

  6. 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.

  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. 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

  9. 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?

  10. 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

    post-103106-0-94128900-1374271492_thumb.jpg

  11. 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>';}
    
×
×
  • 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.