www.webdeveloper.com

Search:

Type: Posts; User: Shorts

Page 1 of 19 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    38
    Views
    7,936

    Another thing to be on the lookout for if you use...

    Another thing to be on the lookout for if you use AJAX. XSRF attacks, to stop the bulk of them is quite easy though, you set a cookie with a randomly generated id and then on AJAX calls you send that...
  2. Replies
    38
    Views
    7,936

    Phoenix, one thing you can do is transfer your...

    Phoenix, one thing you can do is transfer your SQL calls to MySQLi and use Prepared Statements.

    You should probably be using MySQLi anyways as you should see a performance boost as well. It is...
  3. Replies
    38
    Views
    7,936

    What's your site and what's your backend? Is it...

    What's your site and what's your backend? Is it custom built or a product (open sourced or not).

    Definitely sounds like a sql injection though. Not sure from where since I know nothing of your...
  4. Look up JOINs. If the data must be linked then...

    Look up JOINs. If the data must be linked then you'll want INNER JOIN, if you just need data from the first table and if the second data also has it, LEFT JOIN, RIGHT JOIN for the opposite.

    And,...
  5. Replies
    8
    Views
    2,083

    First, remove the "best viewed with" on the top...

    First, remove the "best viewed with" on the top of your page.

    Also, the red scrolling text on top of a green background is hard on my eye. Very jarring.

    The language\localization appears to be...
  6. Replies
    22
    Views
    3,138

    To combine tirna and my suggestion: var...

    To combine tirna and my suggestion:

    var variable = parseFloat(!isNaN(document.getElementById('name').value)?document.getElementById('name').value:0);
  7. Replies
    22
    Views
    3,138

    var variable =...

    var variable = parseFloat(document.getElementById('name')?document.getElementById('name').value:0);

    Have you tried a ternary operator?

    If the element exists, use that value, otherwise use 0.
  8. Seconding aj_nsc, the browser reset is used...

    Seconding aj_nsc, the browser reset is used pretty much by everyone. (I add a border:0 as well). There are also more encompassing versions as well.
    ...
  9. Replies
    18
    Views
    2,333

    It's because you're using position:absolute,...

    It's because you're using position:absolute, which bases off the first parent element that has a position:[absolute|relative].

    You can fix that by adding position:relative to your .wrapper {} so...
  10. Replies
    5
    Views
    1,402

    Indeed. I won't review the same site twice.

    Indeed. I won't review the same site twice.
  11. Replies
    6
    Views
    841

    The onload will execute that function after the...

    The onload will execute that function after the page is completely loaded (images included) so it will run only once. You don't need to use an onload for this example, you just need to make sure that...
  12. Replies
    6
    Views
    841

    Reorder:

    Reorder:


    <html>

    <body>

    <a href="#" id="do">whateveer</a>
    <script type="text/javascript">
    var doSomething=document.getElementById("do");
  13. Replies
    18
    Views
    2,333

    Looks good on my latest Firefox and Opera...

    Looks good on my latest Firefox and Opera (Windows 7) and 1024x768.

    Good job with the css rollovers. Personally I feel like I just took off some dead weight when changing js rollovers to css.
    ...
  14. Replies
    7
    Views
    2,083

    I like it a lot. (Although, the link you provided...

    I like it a lot. (Although, the link you provided is missing a backslash).

    Only gripe I found was the background makes some weird hard to read (gray on gray).

    Like your logo was well, very...
  15. Replies
    5
    Views
    1,402

    I'd suggest reworking the header, other than that...

    I'd suggest reworking the header, other than that no complaints.

    As for the header, logo is bland and off centered, and the sub header section, like the background. Would suggest using just that...
  16. Replies
    18
    Views
    2,333

    Not bad, I concur with the a:hover CSS image...

    Not bad, I concur with the a:hover CSS image swap. That way users without javascript can also have the same functionality. Also, the copyright on the bottom, is that necessary to be an image?
    ...
  17. Replies
    2
    Views
    740

    Poll: If I'm going to a fishy site I don't know about...

    If I'm going to a fishy site I don't know about might turn off JS (F12, then uncheck in Opera).

    Right now redeveloping the entire way the site I work at to be JS-off friendly. So much to do though...
  18. Replies
    1
    Views
    1,695

    View Post

    <?php

    $bookQuery = mysql_fetch_row(mysql_query("
    SELECT COUNT(*) FROM bookings WHERE `Booking_Castle`='$cid' AND `Booking_Date`='$bookingDate' AND `id`!='$_SESSION[bid]'"));
    ?>
    ...
  19. Replies
    4
    Views
    1,326

    I agree education isn't evil as long as the...

    I agree education isn't evil as long as the student is learning.

    That piece of paper will matter for the first 5 years of your career after school and will definitely help acquire a better intro...
  20. Thread: facebook links

    by Shorts
    Replies
    4
    Views
    837

    Well Facebook uses PHP, so they most likely use...

    Well Facebook uses PHP, so they most likely use cURL. (http://php.net/manual/en/book.curl.php). With that, the server itself basically accesses the website and then grabs all of the HTML on the page...
  21. Thread: facebook links

    by Shorts
    Replies
    4
    Views
    837

    Through AJAX. When the form element changes,...

    Through AJAX. When the form element changes, JavaScript looks for websites. If a website is found it makes a call to the server. Server checks that page for details and returns it.
  22. Replies
    6
    Views
    1,371

    Hmmm, in that case might as well take a crack at...

    Hmmm, in that case might as well take a crack at PHP 5.3+ and learn it from an Object Oriented prospective. If web development is the angle you're interested in. Would say split it up between PHP and...
  23. Replies
    3
    Views
    4,591

    PHP 5.3 is even sleeker, with more OOP related...

    PHP 5.3 is even sleeker, with more OOP related functions like static, __invoke, __callStatic.

    Would highly recomment 5 over 4 just for OOP reasons (5.3+ in particular).
  24. Replies
    4
    Views
    1,326

    If you already have a PHP foundation I would...

    If you already have a PHP foundation I would totally suggest learning OOP PHP how you planned. PHP is great for quick freelance jobs that don't need drastic sizes (as well as large jobs that are of...
  25. Replies
    6
    Views
    1,371

    If you know Python, you might as well just stick...

    If you know Python, you might as well just stick to that. Python with MySQL for storage and dynamic content is perfectly fine. Also will be a great way to try out new elements of your language. Most...
Results 1 to 25 of 467
Page 1 of 19 1 2 3 4
HTML5 Development Center



Recent Articles