Sora
-
Posts
23 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Sora
-
-
My mistake, this post can be deleted.
-
Replace
SELECT COUNT(*) FROM users
with
SELECT id FROM users
id, or any other column.
Avoid * for performance reasons.
-
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 |+----------+
-
It's difficult to say with that little information.
Are you a complete beginner? If that is the case I would recommend getting started with HTML.
-
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.
-
There can be several ways to go about it. What hosting/software are you using?
-
Put the query within the curly brackets.
It would work without isset by the way.
-
HTML & Php
in PHP
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.
-
Hi Angelica,
Despite the frames, I like it.
What about getting a logo done for it?
-
Good looking website but the pages take way too long to open up IMO.
-
Hi Khai, I like your website.
I would have justified the text though.
Also I don't like very much the contact form, why the huge inputs and the tiny select?
-
so, any luck??
-
Might come in handy someday, bookmarked. Thanks Caligo.
-
Take me everything but Notepad++ & Netbeans
-
I hate frames.
Same here.
It would be so much better/easier with two floated divs!
-
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.
-
Ouch I just realized that would rule out touchscreen devices though.
-
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.
-
I like it, without any images it's going to open up light speed.
I am not American but I seem to hear there have been a lot of problems with the healthcare.gov one.
-
***Please delete I don't like my answer***
-
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 -
Without more information
UPDATE table SET column=anything WHERE id=5
how to configure msqli
in SQL
Posted
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?