Forum: PHP Sep 18th, 2008 |
| Replies: 3 Views: 826 Hi Venom Rush,
please include a link to the project so that we don't have to search for it.
I would be surprised if they didn't have a usage example on their website. |
Forum: PHP Sep 18th, 2008 |
| Replies: 8 Views: 2,132 Helo Bear,
I guess the immediate problem is that you reference $checkbox instead of $_POST['checkbox']. You use $_POST['delete'] so you probably work in an environment with register_globals off.
... |
Forum: PHP Sep 4th, 2008 |
| Replies: 4 Views: 3,661 Hi there,
in HTML apply this
style="mso-number-format:'\@';"
to cells with your . values or define a CSS class with this style and apply the class. |
Forum: PHP Jun 10th, 2008 |
| Replies: 2 Views: 1,000 Hi there,
the bug is in this if statement. Try using parentheses to make your intentions more clear:
if ( (!isset($filter)) && ($page == 1) )
Frankly I would just write this instead of the... |
Forum: PHP Apr 3rd, 2008 |
| Replies: 2 Views: 884 I'm afraid it isn't possible. But if you tell us why would you ever want such a thing maybe someone will come up with a better solution. |
Forum: PHP Apr 3rd, 2008 |
| Replies: 1 Views: 1,757 Hi Anish, I don't quite understand your description. What do you mean by "pass null values to integer"?
PHP NULL values won't be passed to MySQL as NULL you have to explicitly type NULL.
Example:... |
Forum: PHP Apr 2nd, 2008 |
| Replies: 2 Views: 2,555 Hi there, could you please let us know what isn't working? I.e. what is the behaviour you expect and what is it doing instead.
BTW: Are you sure you need all that JavaScript hassle with onClick on... |
Forum: PHP Apr 1st, 2008 |
| Replies: 4 Views: 912 Hi, first let me suggest that you should think of some less complicated way of displaying the data. I guess you could achieve the same result with just about twenty lines of code.
But to answer... |
Forum: PHP Apr 1st, 2008 |
| Replies: 2 Views: 6,296 Hi Peter,
you could use your webhosting's SMTP server but PHP doesn't support SMTP authentication out of the box. You have two options:
a) Either you will use your Internet provider's SMTP server... |
Forum: PHP Mar 26th, 2008 |
| Replies: 12 Views: 1,710 check for viruses:
your hosting must be allowed to execute files (which I seriously doubt)
you have to know where the antivirus program is and what parameters it expects
then use exec() to... |
Forum: PHP Mar 26th, 2008 |
| Replies: 12 Views: 1,710 If you are going to do only what you do now: move the file from temporary location to permanent location then yes, set only these three ini attributes.
If you are going to process the ROM files... |
Forum: PHP Mar 25th, 2008 |
| Replies: 12 Views: 1,710 Hi Scottmandoo,
I'm a bit confused. Are you saying that the total file size of all files in your hosting must not be higher than 8 MB? Boy that's not much :-) Try http://pipni.cz/ - you get 1.5 GB... |
Forum: PHP Mar 21st, 2008 |
| Replies: 7 Views: 684 So what did you do to try to find out why? C'mon, we're not going to do your homework for you, we can just explain things if you ask specific questions.
Try to insert echo $sql; after $sql="SELECT... |
Forum: PHP Mar 21st, 2008 |
| Replies: 7 Views: 684 I'm sorry I got lost in your post so let me reword it.
Let's say that you have pages homepage.php, courses.php, students.php and you want to protect all three - valid username+password is required... |
Forum: PHP Mar 20th, 2008 |
| Replies: 7 Views: 684 Hi there, I'm a bit confused:
I don't see a reason for calling session_start(); session_destroy(); I'd say that you can safely ignore this
The other "Put this code in first line of web page"... |
Forum: PHP Mar 19th, 2008 |
| Replies: 12 Views: 1,710 Hi there,
because you posted your database login info here you will have to change it. Otherwise the first hacker who happens to read this (e.g. using an automated search script) will either erase... |
Forum: PHP Mar 17th, 2008 |
| Replies: 12 Views: 1,710 Thanks for the syntax highlighting it's much better.
The errors you are getting aren't deadly. So why do you think there's something wrong with the script?
Looking at the script I have a few... |
Forum: PHP Mar 17th, 2008 |
| Replies: 12 Views: 1,710 Hi Scottmandoo,
best if you place this at the top and run it:
ini_set("display_errors", true);
error_reporting(255);
Then you could post the error messages and I'll explain what they mean.
... |
Forum: PHP Mar 14th, 2008 |
| Replies: 4 Views: 2,501 All right, I can see that you know what you're doing :-)
Since your hacking it anyway, we won't mind using eval(), will we? (yuck!)
$string = "level1.level2a.level3=10";
list($combinedKey,... |
Forum: PHP Mar 14th, 2008 |
| Replies: 8 Views: 847 That's it. You said you have a linux box so you have to locate sendmail - I assume that you have it installed. To find where your sendmail is run:
locate sendmail
then uncomment the... |
Forum: PHP Mar 14th, 2008 |
| Replies: 4 Views: 2,501 Hi JRSofty,
before I think about a solution to what you want, let me cast some doubts on it first:
Is it really so time saving to have your config code instead of good ol' php?
$config = array(... |
Forum: PHP Mar 14th, 2008 |
| Replies: 8 Views: 847 Hi maydhyam,
if you use a professional hosting (someone has set up the server for you) you don't have to worry about anything. Just use mail().
If you're running your own server (e.g. development... |
Forum: PHP Mar 13th, 2008 |
| Replies: 2 Views: 835 Hi Dave,
you're not giving us the whole script, are you?
$sendmail should be defined somewhere. That's where your path to sendmail goes.
BTW: This method of sending e-mails is bad, read... |