Recent content by imported_jimbot

  1. I

    What is the issue with my php/mysql syntax using min() function?

    I think you have to use a GROUP BY clause if you use the MIN function. Try SELECT MIN(views) FROM jokes GROUP BY id However, the best way would be to order the recordset by views and just take the first record. Also, you could add a random component so that if many jokes had the same views...
  2. I

    Html tables question?

    Don't use tables for layout. Use divs.
  3. I

    HTML - menu, header, footer problem?

    If you are using plain HTML you can't really do that, except for (ugh) frames or (ugh ugh) javascript. If you are using php or asp or something it's very easy, and you should look up "php include" or "asp include".
  4. I

    When usin PHP on a website do you put the code straight into the code for the

    Either. Example: <html> <?php // here is some php code ?> </html> or <html> <?php include "anotherfile.php"; ?> </html>
  5. I

    Should I learn PHP or Ruby?

    Depends what you want to do. If you're looking for a job any time soon, go with PHP as it's a lot more widespread and useful to more employers.
  6. I

    Using ASP to respond with raw data.?

    You should be able to set the contenttype to "text/plain" or something (I never did much asp.net but with vanilla asp it was) response.contenttype = "text/plain" You can also use response.binarywrite instead of response.write if you are having troubles with text getting converted to unicode or...
  7. I

    Embedding PDF In the HTML page?

    Not sure if annotations are supported in the free version of Acrobat, so assuming they are not you've got a whack of programming to do. You'd need to create a "fake sticky note" api using html and javascript, and on the back end have some code that knows how to generate and/or modify pdfs...
  8. I

    Can you pass this math quiz?

    3x^3 y^3-72x^2 y^4+432xy^5 (factor) = 3xy^3(x^2 - 24xy + 144y^2) = 3xy^3 * (x - 12y)^2 -[6z-(12z+6)]=6+(5z+3) -[-6z - 6] = 9 + 5z 6z + 6 = 9 + 5z z = 3
  9. I

    javascript vs. ajax slide show?

    Check the height or width of the images ONCE IT HAS FINISHED LOADING - if either are zero it didn't load correctly. document.getElementById('image').onload = function () { if (this.width == 0) { // the image didn't load } } document.getElementById('image').src = something;
  10. I

    javascript vs. ajax slide show?

    Check the height or width of the images ONCE IT HAS FINISHED LOADING - if either are zero it didn't load correctly. document.getElementById('image').onload = function () { if (this.width == 0) { // the image didn't load } } document.getElementById('image').src = something;
  11. I

    javascript vs. ajax slide show?

    Check the height or width of the images ONCE IT HAS FINISHED LOADING - if either are zero it didn't load correctly. document.getElementById('image').onload = function () { if (this.width == 0) { // the image didn't load } } document.getElementById('image').src = something;
Back
Top