Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by floridaflatlander

  1. I use a switch too for stuff like that, don't forget a default $url = basename($_SERVER['PHP_SELF']); switch ($url) { case "/index.php": $page_title = 'y'; $h1 = 'yy'; $h2 = 'yyy'; $discription = 'yyyy'; $keywords = 'yyyyyy'; break; default: $page_title = 'x'; $h1 = 'xxxx'; $h2 = 'x'; $discription = 'x'; $keywords = 'x'; break; } You can add an image name for a page
  2. I used the book "php soluitons" to learn how to do it, There is a PDF version on line, I have both (they're the older versions and as a note you can get the older book at amazon for a deal. The newer one deals with photo uploads and such but works more with objects). I move my photos from the servers temp folder and create both a large photo for display and a thumb nail at the same time. Reducing the quailty(pixal size) for the internet, I use 50 with no problem.
  3. Temporarily comment out your css and see if they show in ie8 then.
  4. Stuff like that can work, sometimes I use <br class="clear"/> then make s style called .clear also try margin-bottom on the main wrapper, when stacked on top of one of another one of the margins takes precedence(I think), I can't remember how it works though. Also when things are floated that also has an effect. When people start getting online today I'm sure you get more and better ideas.
  5. I have a hard time with these spaces too sometimes, padding is on the inside of your div. and uses the same background color or image as the div. Margin is on the out side of the div and puts spaces between them. Try margin-top
  6. How big is your table, can you make a column fill it then rename it an auto increment column or build another table? Also I have a small site but my picture info db has auto increment and then I use three queries to retrieve the display pic, the next pic and the previous pic. I'm sure there are better ways but like I said it's a small site.
  7. Thanks All The {word-wrap: break-word;} worked like a charm however I check with w3.org and it said "Property word-wrap doesn't exist :" But I'm still going to use it, I played with it in ie7, 8 & firefox and it worked great. I looked at php.net and wordwrap() may not do what I want because even though the index page will have thumbnails the picture page would need the full unbroken title or there abouts because the picture would have more room on it's own page. Thanks again I'm going to work with them both more as I get more time tonight and tomorrow.
  8. How would I use substr() to limit word length? I can use it to limit a string like $title = substr ($title, 0, 100); But I want to limit the size of a word in the string. So if I have var thats $title = " A Cow Jumped Over The Mooooooooooooooooooooooooooooooooon" how can I change it to " A Cow Jumped Over The Mooooooooooo oooooooooooo oooooooooon" for the reason listed above. Thanks for the reply
  9. I have a div 120px in width that contains a thumb nail and a title under it. My problem is if a word in the title is over X (20+ I think) characters the div gets wider to hold all the characters in a word. I can limit the string length with substr, but I want to limit the length of a word in a string. How do I limit a words length? Thanks S
  10. I think you should use it on all text fields and have read where othes have said the same thing. Also when inserting numbers make sure your numbers are numbers.
  11. Hope this is the right board. For about 30 minutes now I've had a search problem. I keep getting. An Error Has Occurred! Unable to access the search daemon With multiple words and simple searches like for "php" Is it me? thanks
  12. Do you mean replace Test with a hyperlink Test? $str = "This is my [Test] string";
  13. You added? That's all you did? It shouldn't change the orginal at all if any.
  14. Then do the same thing except change the p tag to an h1 tag and adjust your your span class if needed or as needed
  15. You can't unless you have all the info in the same h1 tag, I'm guessing your wanting big letters at certain parts of your paragraphs. You can use spans like this <p><span class="large">Start of paragraph</span>and here is the rest of the paragraph.</p> Then do a style the style "large" however you want ot to be.
  16. I meant a width of 895px total for the left center and right div. And yes I'd make a width of 895 total or 890 for all the divs in ie 8 or ie 9 Are you missing a closing </div>
  17. When I add up left, center and right I get 910 px width. "NOT INCLUDING MARGINS, PADDING & BORDERS" total width = width + padding + border + marign I always try to keep them around 895 total for the ie6 folks.
  18. Does this guy have a forum? Most authors do. Also look at your forms html and see if anything sticks out
  19. I would say you figure out your table sizes and get the html & css right then run your queries the usual way. First blocks criteria, the second blocks criteria and so on.
  20. Make sure everything is defined and put php after your <? to make it <?php
  21. What's on or around line 55 on file index.php ?
  22. I had to use htaccess and have a record with a field with the users name. When users register the db is searched for a simular name, if one already exist the user is given another name. Get searches for the name in my case.
  23. Where are you getting a blank page? At http://www.example.com or on the file with the code? Also take the if statement out or comment it out and make an echo statement and see what you get. "I think" it would be something like "/example.com" not http://www.example.com
×
×
  • 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.