Re: [PHP] MySQL problem...

2001-04-25 Thread Brian Rue
Here's all the code that uses MySQL... $db = mysql_connect("localhost","user","pass"); mysql_select_db("db",$db); $gmdquery="SELECT * FROM game_of_the_day"; $the_info = mysql_query($gmdquery,$db); while ($myrow = mysql_fetch_row($the_info)) { (get info from the result) } ... (dec

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Dan Lowe
Previously, Jordan Elver said: > > I'm not using virtual hosts on my local machine but I am on the production > machine. What should DOCUMENT_ROOT return? I though it returns the directory > of the current script. So if I had a site in > /usr/local/apache/htdocs/cha/script.php then I would expe

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-25 Thread Dan Lowe
Problem with this is that many people use '+' in email addresses along with other strange characters (a friend of mine has an apostrophe in her address at General Electric). Bottom line, trying to catch all valid email addresses using a regex is a really ugly thing to try to do. The one shown he

Re: [PHP] OOP and Future of PHP

2001-04-25 Thread Yasuo Ohgaki
"Steven Haryanto" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 4/25/2001 09:02 PM, Reuben D Budiardja wrote: *SNIP* > What I *really* like to see in PHP is: > > - NAMESPACE > - TRACEBACK INFO > - exception (try-except block) > - $obj->method()->anotherMe

RE: [PHP] MySQL problem...

2001-04-25 Thread Maxim Maletsky
I think here's your problem: $query="INSERT INTO game_of_the_day VALUES ('',$curr_yday,'$gameone_genre',$gameone_number,'$gametwo_genre',$gametwo_nu mber)"; should look like : $query=" INSERT INTO game_of_the_day (ID, curr_yday, gameone_genre, gameone_number, gametwo_genre, gametwo

[PHP] win32 dll

2001-04-25 Thread Patrick Lai
Can anyone tell me whether php can use win32 dll library functions? If yes, how? Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] OOP and Future of PHP

2001-04-25 Thread Ulf Wendel
Rasmus Lerdorf schrieb: > > If anyone has any idea, or tricks to hide information in a variables or > > method in a class, or in other words, make a variable or method a private, > > I would really like to know. Thanks for any comments. > > PHP also doesn't have introspection, so there isn't a

Re: [PHP] OOP and Future of PHP

2001-04-25 Thread Ulf Wendel
Yasuo Ohgaki schrieb: > I don't use GDB, but it seems it supports traceback. > How about Zend Debugger? Does it support? Anyone? http://dd.cron.ru/dbg/ ? Ulf -- Neu: PEAR Cache Erweiterung OutputCompression http://www.ulf-wendel.de/php/show_source.php?file=out_cache_com http://www.phpdoc.de

Re: [PHP] win32 dll

2001-04-25 Thread elias
not that i know...but if you can code an extension that have functions to call Win32 dlls than you solved it... I also care to know if what you asked for have a direct solution... -elias http://www.hostrix.com ""Patrick Lai"" <[EMAIL PROTECTED]> wrote in message 9c8d8l$uh3$[EMAIL PROTECTED]">new

Re: [PHP] OOP and Future of PHP

2001-04-25 Thread Yasuo Ohgaki
> > > Yasuo Ohgaki schrieb: > > I don't use GDB, but it seems it supports traceback. > > How about Zend Debugger? Does it support? Anyone? > > http://dd.cron.ru/dbg/ ? > > Ulf Thanks for correcting my typo, Ulf. GDB => DBG :) Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) T

[PHP] Retrieving and Printing Categories

2001-04-25 Thread Jordan Elver
Hi, I've got a load of records that are in different categories. What is the best way to get all the records or selected records and print them in such a way that they are grouped (on the page) in their relevent category, like: Fruit -> Apples -> Pears -> Bananas Vegetables -> Carrots -> Cabba

RE: [PHP] Retrieving and Printing Categories

2001-04-25 Thread PHPBeginner.com
well, as long as they are related to each other .. just a quick SQL, SELECT groupName, title FROM table WHERE this='is what I need' GROUP BY groupName ORDER BY

<    1   2   3