Search found 8 matches
- Sun Jun 01, 2008 5:47 am
- Forum: PHP - Code
- Topic: CAPTCHA Program doesn't work on web but works on PC
- Replies: 6
- Views: 536
Re: CAPTCHA Program doesn't work on web but works on PC
Normally enabling GD is as simple as un commenting a line in php.ini for the GD library.
- Sun Jun 01, 2008 5:29 am
- Forum: PHP - Code
- Topic: Why this came out cannot select DB?
- Replies: 2
- Views: 236
Re: Why this came out cannot select DB?
"cannot select DB" generally means one of your settings for the database is wrong... Server, password or username. Not knowing how 000webhost.com work i can not say the format usernames etc should be in. The databse name is the name of the database and on free hosts it is normally the same...
- Sat May 31, 2008 4:37 pm
- Forum: PHP - Code
- Topic: Don't Know Where To Start
- Replies: 8
- Views: 520
Re: Don't Know Where To Start
What direction do you want to go? 
- Sat May 31, 2008 1:47 pm
- Forum: PHP - Code
- Topic: Real quick and Easy Question: What is the servername?
- Replies: 5
- Views: 319
Re: Real quick and Easy Question: What is the servername?
Yes it would remain localhost as normal webhosts have the sql server on the same server; its only when its a seperate server do you have to specify something other than localhost.
- Sat May 31, 2008 1:45 pm
- Forum: PHP - Code
- Topic: PHP to Twitter Refresh
- Replies: 1
- Views: 133
Re: PHP to Twitter Refresh
What you could do is just generate a random number and then match that up to one of the strings in the array and submit that to Twitter. Now, with only 2 values the chances of getting the same number again are high, but if you have maybe 10 or so different srtings there is less chance of the same on...
- Sat May 31, 2008 1:40 pm
- Forum: PHP - Code
- Topic: What is the difference in submitting form in IE and FF?
- Replies: 1
- Views: 153
Re: What is the difference in submitting form in IE and FF?
Can you list the steps, its hard to understand what you mean...
For example, i understood you have a form to upload a file but then i got lost when you were talking about rendering... Do you want to display the uploaded image?
For example, i understood you have a form to upload a file but then i got lost when you were talking about rendering... Do you want to display the uploaded image?
- Sat May 31, 2008 1:37 pm
- Forum: PHP - Code
- Topic: Regarding date and time
- Replies: 4
- Views: 591
Re: Regarding date and time
Hard to tell what you mean but have been using dates in the format of "DD-MM-YYYY" for example? Try using timestamps instead which makes it much easier to compare dates.
- Sat May 31, 2008 1:32 pm
- Forum: PHP - Code
- Topic: if statement within switch not working as expected
- Replies: 1
- Views: 114
Re: if statement within switch not working as expected
Is that an exact copy of your code?
I don't think thats the right way to do IF statments, dont know why your using colons...
This is the correct method:
Hope that fixes it!
I don't think thats the right way to do IF statments, dont know why your using colons...
This is the correct method:
Code: Select all
19 if (is_evening()){
25 }else{
34 }