Re: [PHP] PHP Parsing Database Text

2002-01-10 Thread Adam Baratz
> Is it possible to have PHP parse text queried from > a database (security issues notwithstanding)? > If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List

Re: [PHP] POSTing HTML into a database

2002-01-06 Thread Adam Baratz
> Does anyone know, by the way, if there's a port of PostreSQL to Windows > 2000? Or can I run it in Cygwin? I've seen it in the package list for Cygwin, there may be a full port as well, check Postgres' web site. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Fw: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Adam Baratz
- Original Message - From: "Bas van Rooijen" <[EMAIL PROTECTED]> To: "Adam Baratz" <[EMAIL PROTECTED]> Sent: Saturday, January 05, 2002 4:39 PM Subject: Re: [PHP] MySQL error... but it works!!?? > > maybe try: > > if (!$result) > { >

Re: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Adam Baratz
> Does anyone have any idea why this is giving me a "Warning: Supplied > argument is not a valid MySQL result resource in..." error? You'll have to give more code, which line you get that error from, etc., to give us a better idea why it's "not working." However, a quick tip: > $crdate = date("

Re: [PHP] If Statement with more than one conclusion

2002-01-03 Thread Adam Baratz
Switch statements work well for these situations as well. They might be faster than checking for the item in a list from an array since an array must be created and searched through. General programming tip: your method *definitely* wouldn't work. The or operator has precendence over the == ope

Re: [PHP] Get PHP Configuration

2002-01-01 Thread Adam Baratz
> How would you get the current PHP configuration information, > more specifically, the exact command line used at compilation? Check the output of phpinfo(). -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM