Jump to content

Sora

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Sora

  1. As thescientist already pointed out you have to replace

     

    mysql_connect with mysqli_connect

     

    and

     

    mysql_select_db with mysqli_select_db

     

    and so on and so forth throughout your code

     

    mysql_ has been deprecated in PHP 5.5.

     

    What PHP version are you using by the way?

  2. mysql_num_rows() returns the number of rows returned by a query.

     

    Since you are using COUNT(), the query will always return one row, the result of COUNT, even if this is 0.

     

    Example from shell

    mysql> SELECT COUNT(*) FROM users;+----------+| COUNT(*) |+----------+|    21912 |+----------+mysql> SELECT COUNT(*) FROM users;+----------+| COUNT(*) |+----------+|        0 |+----------+
  3. I know one reason why www is recommended and that is because of the zone apex / CNAME issue.

     

    For example you can't have something like this "example.com CNAME anything.blogspot.com"

     

    On the other hand I can see why people like to type domain names without www.

  4. If you're talking about filenames, I always name the files .php files even if they don't have any PHP code in them, so that if I do add PHP code I don't have to change filenames and links.

     

    This is what I do as well, and what I would recommend.

  5. Put your website on a server with a domain and more people will give you opinions... I'm to lazy to grab your code and open a localhost version. So I can't give input.

     

    That was my thought exactly LOL.

  6. Hi Dave,

     

    I like it.

     

    I would have made it hover-based rather than click-based though.

     

    It would be even quicker to consult, I just hover in the event that interests me and hover out.

  7. Hi,

     

    Thanks for Answer, but as i'm new to website designing, can you just let me code for the same or else,

     

    can you just tell me whats this process is called, so that i can just search over net, for its code.

     

     

    Thanks in Advance

    Ashish

     

    Hi Ashish, search "javascript div popup" on google
×
×
  • Create New...