I think it's safe to say every script I have written didn't work like this on the first run.
A lot of people like debuggers like Zend, I like to just start at the top of the script and: var_dump($myVar); die(); then go to the next part of the script and do the same by doing this I slowly work out what is happening in the script. If you get to the sql, echo it out, and copy and paste it into phpmyadmin to test it. It doesn't sound like you have a script problem, so much as a need to improve your debugging skills. As long as your start at line 1 and echo/dump the variables (in theory) any script can be worked out, and often it takes a lot less time than you think. On Apr 1, 11:12 am, Caleb <[email protected]> wrote: > Hi Paul, > > When I say it doesn;t work, I mean: It does nothing. I put the script > in the scripts folder, with the right filename, and then create an > account in WHM, and when it is finished creating the account, I check > the DB it's supposed to have updated and there's nothing. I don't know > what errors it might be throwing, because unless there's somehwere to > see them I don't know about, it doesn't display any errors during the > account creation process. > > Caleb > > On Apr 1, 10:45 am, Paul Bennett <[email protected]> wrote: > > > Hi Caleb, > > > what doesn't work? > > What error messages are you getting? > > > Paul --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
