[PHP-DB] Looking for a small open-source PHP-DB app that utilize OOP.

2007-09-27 Thread T K
Hi, For a study purpose, I'm looking for a small open source program that works in PHP-MySQL. In particular, I would like to see some examples with PHP 5 and Object-Oriented Programming (such as class, objects, and so on). I'm looking for a small program, possibly like blog, wiki, forum and so on.

[PHP-DB] Re: Looking for a small open-source PHP-DB app that utilize OOP.

2007-09-29 Thread T K
Thanks all. Looks like some tutorials and the survey system look a very good start to me. Especially the code of UCCASS looks very readable. Thanks a bunch. >

[PHP-DB] PHP4 and Constructor

2007-10-03 Thread T K
Hi, I would like to use constructor in PHP4, but how do you make a constructor? In PHP5, I do like class ClassName { function __construct() { } } But PHP4 doesn't have such a thing as __construct()... Reading the official manual didn't make me understood. Does this mean the very firs

Re: [PHP-DB] PHP4 and Constructor

2007-10-03 Thread T K
Thanks guys! I got the same name trick for PHP 4 class constructor. All the best, T -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Prevention for multiple submissions from the same form

2007-10-04 Thread T K
Hi, I have a form with a button, which adds user inputted data into database. I've been looking for a way to prevent users from pressing the same button twice mistakingly. I've learned that this is possible to make and send a unique id in hidden input, and check if the id is used before database

Re: [PHP-DB] Prevention for multiple submissions from the same form

2007-10-04 Thread T K
Thank you for answering my question. Can anybody explain a simple JavaScript only solution? I haven't used JavaScript except for some copy-and-paste jobs. Tek -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Preparing SQL insert statements from CSV files

2007-10-04 Thread T K
Hi, I have to parse csv files and put them into database. I was able to parse the files by fgetcsv() and made an HTML table. But, when it comes to parse more closely and make "INSERT INTO" statement, then I'm having problems with, probably "for-loop". For example, how do you do this task with the

Re: [PHP-DB] basic form entry

2007-10-07 Thread T K
> mysql_query ("INSERT INTO users (First,Last,Phone,Mobile,Email,Web) VALUES > ('$first_name','$last','$phone,'$mobile','$email','$web') "); > > echo('$username','$last') This doesn't work. You need to make a variable for the executed query, like, $query = mysql_query(.); After that, you get