[PHP-DB] classes and operator

2001-03-13 Thread Lennin Arriola
of my classes functions, and then the script doesn't crash, it does not work however due to that the logic of the script requires the . When I put back the , it works 2 or 3 times and then back to the crash thanks, Lennin Arriola -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP-DB] parsing parameter over page

2001-03-06 Thread Lennin Arriola
I don't think so, you'll have to persist your object in some way, for example in a database and then you only pass the id of your object. Another option is to persist your object as a string and then pass it either in the query or as post in a form. Lennin Arriola [EMAIL PROTECTED] -- PHP

Re: [PHP-DB] Most Occurring

2001-02-22 Thread Lennin Arriola
you mean the "mode". I'm afraid you'll have to do it by hand. Other databases do have functions for a couple of statistics measures( though not sure the mode is included), but MYSQL doesn't. Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To u

Re: [PHP-DB] next previous record

2001-02-22 Thread Lennin Arriola
Keep a counter of the rows you have fetched. so when you want to go back call mysql_data_seek ($Result, Counter-1); then mysql_fetch and you've got the previous row. Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP-DB] number formatting bug?

2001-02-21 Thread Lennin Arriola
I was thinking again , if you are for instance using winxxx check in start settings/control panel/regional settings decimal after point... this might be affecting, there must be something similar on unix. Check out in the help "set_locale" that should do the trick. Lennin Arri

Re: [PHP-DB] number_format bug?

2001-02-20 Thread Lennin Arriola
I was curious about it, so I tried it on my machine and I got "13,80" win2k+php4. I think is about settings in your php configuration, although I don't still find a reference for it. Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscri

Re: [PHP-DB] SQL Select statement

2001-02-19 Thread Lennin Arriola
3 then your sql statement will work. (* you might still add another field in case for instance there are several votaciones...) Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP-DB] composite keys

2001-02-19 Thread Lennin Arriola
for composite keys, Indeed not recommended. Lennin Arriola [EMAIL PROTECTED] ps. check out, http://www.ambysoft.com/mappingObjects.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DB] Suppressing NULL values in search results

2001-02-19 Thread Lennin Arriola
I used to do this: function nice( $value ) { if ($value=="") { return "-nbsp;"; } else return $value; } print nice($row["company"]) Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E