Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About himynameismark

  • Rank

Profile Information

  • Location
  1. Wow, such a simple fix was giving me a massive headache! Thanks for that explanation. I didn't even think to add z-index to the footer... Apparently the padding on the main div once it was long enough to where I had to scroll to see the full footer made it overlap the footer, rendering my links unclickable.
  2. Yeah, I forgot about that warning. Since posting this here, I have changed the span tags to div tags. Have you tried to hover over all the links and make sure they work? At first glance, everything seems to work fine. I just tested in FF, IE9, Safari, and Opera. Somehow IE9 was the only browser it worked in. If it comes down to it, I may have to post how I actually have the codes set up (with my PHP include and functions). I took out the dimension styles on my CSS, and in the <textarea> element, switched the cols attribute to "62" and rows is still "". When I put a number in rows, the li
  3. I have validated both my HTML and CSS. My HTML passes with no warnings or errors. When I validate my formStyle.css file as CSS3, the only errors are vendor extensions for the border-radius (for older Mozilla and Webkit based browsers). My style.css file validates as CSS3, with only warnings stating that the color and background color are the same in multiple parts, like when I have the blue background behind the header navigation and the blue footer with white text, and a white background for the rest of the page. I have figured out that removing any type of dimensions from the textarea in the
  4. Hi. I have a website using a PHP require_once template that I created myself. I required the template file in my head, and it has functions to include the header, top navigation, and footer (which includes a smaller navigation menu as well). The whole website works like a charm, except for the footer navigation on the contact page. It works perfectly fine on all other pages, as well as when I comment out the textarea on the form. I have been studying and experimenting with HTML and CSS for some time now, and have never run into this problem. If I put a link immediately after the submit button,
  5. I am working on a blog for a friend's website. Upon testing the database which holds her blog posts (for security issues and whatnot), and dropping random rows from it, I have noticed that the id field does not re-organize itself. The way I will be displaying her posts (5 per page, with previous and next buttons) depends on the id being in order and with no gaps. Is there any way I can put in a script using PHP or MySQL to organize these in case of a row being removed once the blog goes live? Also, I have noticed that I can put in one entry, drop it, and then when I test another one the id sta
  6. Nevermind, I figured that out. It's essentially the same thing as $last_artist, but there is also a counter: if ($prevfirstletter != $firstletter) $counter = 1;else $counter++; And then at the end of the while loop, $prevfirstletter == $firstletter; Then I altered the code to change my first starting with each letter to: if ($counter == 1) echo "<tr><td><a name='" . $firstletter . "' />" . $artist . "</td>";else echo "<tr><td>" . $artist . "</td>;
  7. Okay, now I have another question regarding the same page. I know how to find the first letter of each artist, but is there a way that I can find the first instance of the first letter being _? I want the users to be able to browse the list by first letter, so they can click a-z or # and it brings them directly to the top of the list starting with whatever letter they click.
  8. That's very similar to something I had already tried, except I didn't think to add the $last_artist = ''; line above the loop. That works, thank you!
  9. I am working on a website for a company who does Karaoke and they need a song list. I have a sample page of a few songs selected from a sample database I set up. The MySQL and PHP I used organize the artists (removing the word "the" from the artist name), and then the songs when the artist has multiple songs on their list. However, when the artist has multiple entries in the database, I only want their name to appear in the first instance. For example: Adam Ant - Goody Two ShoesThe Beatles - Eleanor Rigby__________ - Hey Jude__________ - The Long and WInding RoadBlondie - Call Meetc. (obviousl
  10. I am working on coding a blog by hand for a friend (partially because she doesn't like Wordpress, partially because I want to know that I am capable of hand coding an easily-customizable blog). I just finished her login page yesterday, importing her username and password directly into a database using phpMyAdmin. What should I do for security precautions to protect the database from being hacked? I have been trying to find tutorials on MySQL and PHP security, but I'm having trouble finding one that fits my needs as I have never worked with a database on a live website before.Thanks in advanceM
  11. Thanks! I don't know why I didn't think about that before. I guess I was trying to make it more complicated than it actually is.
  12. I am writing a script to register users for a client's website. I have almost all of the validation done using PHP. I will write some Javascript for it too, to check it before the user submits if he or she has Javascript enabled. However, in the case that the user does not have Javascript enabled, I am trying to write a PHP script to reload the form to show errors.In my form, I have a div over each input selection explaining the error, each with it's own specific id. In my validation, I have an error[] array where each part of the array is a form input. For example, error[firstName]. By defaul
  13. I am setting up a registration form for a website I am about to start, and in order to help my client with some demographics, I have discussed with him setting up a Birthday field in his form. I know it's possible and not very difficult to do what I'm looking for in Javascript, but I want to know if it's possible to do this in PHP, as I am trying to use as little Javascript as possible.I have it set up as:Birthday: (drop-down select Year) (drop-down select Month) (drop-down select Day)Is it possible to determine how many days to add to the Day select list based on which month the user selects
  14. That first block of code I posted is in the <head></head> tags. I tried to save it as an external PHP file when I wrote it though, and it failed to bring in my WP stuff for some reason.
  15. I successfully have WordPress on the site that I am currently trying to finish. My whole goal was to display the posts, titles, and dates on my actual page rather than in my WordPress blog. This required two PHP codes. The first one, in the header, looked something like this: <?php // Include Wordpress define('WP_USE_THEMES', false); require('./mdblog/wp-load.php'); query_posts('showposts=5');?> My first question is: Is it impossible to load an external PHP script in the header? If not, how would I do that? Because the script didn't work for me when I had it as external and tried
  • Create New...