Hi Johari, When developing, you should turn the error reporting of PHP to E_ALL in php.ini, so that it will tell you exactly what's wrong instead of a blank page. E.g.: instead of a blank page, it would tell you which line is causing the error.
I would recommend that you use something like "Eclipse PDT" instead of Notepad++, because the editor will let you know as you type if you for example miss a semicolon. Kind Regards, Sid On Thu, Oct 23, 2008 at 9:47 AM, Johari <[EMAIL PROTECTED]> wrote: > Hi, > > I'm still new to this forum. Currently I'm at final Semester in CPIT doing > Grad Dip in ICT. My project is to build an e-commerce website and I have > done the E-R diagram, Data Dictionary, etc for the database. I was given a > space at Techlabs Server and I had created a database tables and inserted > sample data. I had finished testing all type of SQL queries needed and > tested directly with the MySQL Database Server. It's all fine even though I > had few difficulties at first. > > The "real" problem started when I used PHP to communicate with the MySQL > Server. When I uploaded my finished "test" version and run it in my browser, > I get a blank page - obviously it's not running as expected, and I didn't > know what's wrong with my code. I use Notepad++ to configure the codes. > > Therefore, I had to re-code again.... and check my codes line by line > comparing to the working codes just to find out what had went wrong. Then I > found out that I missed the (;) in one of the codes. This problems, took me > 1 1/2 days. That's a setback since I was thinking to write the PHP codes and > upload it to the server bit by bit. Now maybe I have to do everything > locally, and only upload the final one. But I also want to make sure that it > will work with the server (as part of my QA plan). > > I have read few books and I was told how to write a good code, but not > really how to write it efficiently... so, while I'm still googling around to > find an efficient way to write a good code, can anyone can give me some > advise based on your experience dealing with PHP horrors? > > Thank you very much for your time. > > Johari > > > > -- Visit my website: http://onlinesid.com --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
