Jump to content

designationlocutus

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

designationlocutus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes it should do. The W3C validator checks syntax rather than the actual layout (against the specified doctype) so will work in all browsers. As a rule of thumb (I have a few rules of thumb!) I try to get the exact layout in all browsers (one thing that troubles me is when designers insist on non-web safe fonts!). Following the recommendations of the W3C makes cross-browser layout easier to maintain when it comes to adding the CSS and the related browser hacks. Get the Web Developer extension for Firefox and use it to disable CSS and see what your page layout looks like with no styles defined and no images displayed. If the site is readable and structured you have yourself a nice layout
  2. Does a City always exist in a State? Your City table implies that a city must have exactly one State (you specified a 0-n relationship between State and City and the state_id is in the table). To truly create the 0-n your table structure could be: states_cities { states_cities_id, state_id, city_id } states { state_id, state_name, ... a bunch of other relevant state attributes } cities { city_id, city_name, ... a bunch of other relevant city attributes } // State id removed Because how this is organised, both State and City are distinct objects
  3. Divide and conquer. Break your brief down into data structures and figure out how they interact with each other. If there's gaps question the client. If done well, hardly any time will be spent on code.
  4. I use the little rule - id if there is only one of the type on the page - class if its going to be repeated on the page. Hehe I try to keep to the W3C and WAI if there is time at the end of a work project (which is rare). I suggest it, but its always down to my company and the time they want to spend on it!
  5. I think Ajax may help you here. Check out the link below. http://w3schools.com/ajax/default.asp
  6. I can't at the moment as it is on a testing server, but I will go into more detail about the structure: It is a rounded corners box. The header of the box covers and area of 768 pixels by 32 pixels. The mid box div with the borders contains two divs floated left and right to create a two-column display. The footer box is as the header box. There is no problem with the borders in Firefox, just in IE when part of the page is refreshed when someone scrolls.
  7. I am developing a website and have a small problem. Im working with IE 6. I have a content box with the border-left and the border-right properties set. When I scroll down the page in IE6 the border styles vanish. Is there a reason for this? If so, then is there are workaround?
  8. If you use the switch statement, you could do something like: <?php session_start(); $rank = $_SESSION['rank']; switch ($rank) { case "webmaster": case "chairman": case "secretary": case "treasurer": // Do whatever break; default: exit('<meta http-equiv=refresh content=0;URL=http://www.MYSITE.org.uk/events.php>'); } ?>
  9. You're welcome and the best of luck with your project.
  10. Might be good to go with the switch statement on this one
  11. No, try the code below: <?php if (($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < 350000)) { //create the directory if doesn't exists (should have write permissons) if(!is_dir("./files")) mkdir("./files", 0755) { //move the uploaded file move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']); chmod("./files/".$_FILES['Filedata']['name'], 0777); } } ?>
  12. Do you have the closing brace on your 'if statement'?
  13. Calculate it beforehand and then place it into the statement as a variable. Im guessing that its evaluating it as a none string and cannot echo it.
×
×
  • 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.