Jump to content

designationlocutus

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Everything posted by designationlocutus

  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.
  14. Id suggest using the switch statement to handle your actions. Useful if you have many if statements. It has a handy break command too
  15. Nice Well I'd suggest you explore further. Try mysql.com to see if there's a foreign key type included If not document it in your schema for your assignment that it is a foreign key type. Im sure your tutors will be impressed that you investigated it. Good luck with your assignment.
  16. Hmm you may need two tables. The genre entries suggest that you have a many-to-many relationship between weeklyPoints and genre. A single weekly point entry can have one to many genres while a single genre can be included on 1 or more week You could also give each genre a name too. For example: weeklypoints ========== id start end winner (is winner a foreign key to a person table?) weeklypoints_genre =============== id weeklypoints_id genre_id genre ==== id title
  17. Define your product_id as an unsigned int. Im not too sure if there's a foreign key type, but the joins will work fine within the SQL.
  18. If you can do it, you can set up a Cron job on your server to run it. Look up Cron Jobs on Google or specialist sites to specifically find out how to do this. You can use it to call a script at a certain time of the day.
  19. Ah I see. I think you have to move the uploaded file into a directory before it can be displayed on your page.
  20. From what I can see, you haven't assigned $Picture1 with your picture record from the database.
  21. Hmm I've often done counters. To save time on query execution, I created an additional table that stores the count totals. On insert or update of your Actor, Director, Producer, Writer tables, an additional query is executed that counts these and stores the totals. Very useful when you have thousands upon thousands of records that are always being counted on.
  22. Yeah its possible. PHP5 introduced some date/time contants to use. You will probably have to use php date function in order to get them to work properly and then add to the database afterward. http://uk.php.net/manual/en/ref.datetime.php#datetime.constants
  23. What is the datatype in your database for the date?
×
×
  • 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.