[PHP] Re: [PHP-DB] Restaurant menu

2006-07-21 Thread kartikay malhotra
Hey Craig, Place all items whatever way you want in a table. Its while presenting the menu, you have the query the database like: $query = "SELECT menu_id, menu_category, menu_item FROM $menu_name ORDER BY $menu_item_attribute "ASC"; You can choose multiple tables for menu_category, in which c

Re: [PHP] session

2006-07-21 Thread Chris
By default it will give you a new session id. You can set the domain of your session cookie to ".domain.com" and it will be passed and read by both. I beleive the php.ini option is session.cookie_domain, check your ini file, it should be in there. Chris João Cândido de Souza Neto wrote: I´ve

Re: [PHP] Cleaning bad characters from var

2006-07-21 Thread Adam Zey
John Nichel wrote: Paul Nowosielski wrote: I wrote a function to do this for our product descriptions when sending them in a XML doc to certain vendors. It's old, crude, but you're welcome to it. Using regular expressions for that is a very bad idea. You're using regular expressions for

[PHP] session

2006-07-21 Thread Jo�o C�ndido de Souza Neto
I´ve got a big doubt abaout sessions and if someone help me in it, i´ll turn very happy. When i get in e.g. http://www.domain.com and it uses session, a session id will be generated and it´ll be used in whole site. My doubt is: if i´ve got a link that send to http://subdomain.domain.com in

Re: [PHP] search string

2006-07-21 Thread Andrew Kreps
You can use a regular expressions with a function called preg_match to find the values. For example, (Assuming your sql statement is $sql) preg_match("/(tbl_chassis.chasis_model LIKE \'\%[a-zA-Z0-9-]+\%\'/)", $sql, $matches); That will return $matches[0] with the matched data. Similarly, pre

[PHP] authorize.net

2006-07-21 Thread Skip Evans
Hey all, Anybody on the list know authorize.net integration really well and would be interested in earning a few bucks consulting? I have a new install that has their tech support and myself stumped and I really want to get it going. If so, email me off-list with your level of experience

Re: [PHP] Cleaning bad characters from var

2006-07-21 Thread John Nichel
Paul Nowosielski wrote: Dear All, I'm trying to set up an XML feed form our news articles. My XML is validating. The issue is some of the articles have a weird encoding. I wrote a function to do this for our product descriptions when sending them in a XML doc to certain vendors. It's old

[PHP] Cleaning bad characters from var

2006-07-21 Thread Paul Nowosielski
Dear All, I'm trying to set up an XML feed form our news articles. My XML is validating. The issue is some of the articles have a weird encoding. It seems to be single quotes. For example: the world<92>s largest live event producer Notice the <92>. I already have this to clean vars but its no

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-21 Thread Chris W. Parker
Larry Garfield on Thursday, July 20, 2006 6:36 PM said: > On Thursday 20 July 2006 11:30, Chris W. Parker wrote: > > Drupal has its own ecommerce suite that is reasonably robust all on > its own. Yeah I saw that module. I think today I am going to try to set them b

[PHP] Re: Bug in == comparison?

2006-07-21 Thread Jeffrey Sambells
hrm.. It just seemed strange as the script I was working on is 3 years old and had worked flawlessly until today. Thanks. - Jeff ~~ Jeffrey Sambells Director of Research and Development Zend Certified Engineer (ZCE) We-Create Inc. [EMAIL PROTECTED] email 519

[PHP] Re: Bug in == comparison?

2006-07-21 Thread Adam Zey
Jeffrey Sambells wrote: hrm.. It just seemed strange as the script I was working on is 3 years old and had worked flawlessly until today. Thanks. - Jeff ~~ Jeffrey Sambells Director of Research and Development Zend Certified Engineer (ZCE) We-Create Inc. [EM

[PHP] Re: Bug in == comparison?

2006-07-21 Thread Adam Zey
I tried comparing in the reverse sequence ($test2==$test) and the same occurred. It does work as expected if I have === but the rest of the scirpt isn't type sensitive so I want NULL, 0, and empty string to still maintain equality. Wups, I missed the last part there. You want the empty() fu

[PHP] Re: Bug in == comparison?

2006-07-21 Thread Adam Zey
Jeffrey Sambells wrote: OK I have a very strange bug: In the middle of my script I have these two lines: var_dump($test,$test2); echo "'$test'=='$test2' is ".($test==$test2); which is giving: int(0) string(6) "Points" '0'=='Points' is 1 I understand that PHP is loose typed and automatically

[PHP] Bug in == comparison?

2006-07-21 Thread Jeffrey Sambells
OK I have a very strange bug: In the middle of my script I have these two lines: var_dump($test,$test2); echo "'$test'=='$test2' is ".($test==$test2); which is giving: int(0) string(6) "Points" '0'=='Points' is 1 I understand that PHP is loose typed and automatically does type conversion b

[PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-21 Thread Mark
Mark wrote: > I have an extension that seems to create PHP variables correctly, and > var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it > fails. > > Anyone have a suggestion? Well, it is fixed. Evidently, PHP 5.1 sees a difference between $var["0"] and $var[0]. It never did

[PHP] Re: Setting cookie on one domain for an other domain

2006-07-21 Thread Mark
Peter Lauri wrote: > Best group member, > > > > When a user does a specific action on domain1.com I want a cookie to be > set so that domain1.com and domain2.com can reach it. Ok, after reading > the manual for setcookie() I tried this: > > > > setcookie("thevariable", "thevalue", time()+6

[PHP] Stumped! 4.x to 5.1 problem!!

2006-07-21 Thread Mark
I have an extension that seems to create PHP variables correctly, and var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it fails. Anyone have a suggestion? array(2) { [0]=> object(classfoo)#2 (1) { ["hostname"]=> string(3) "foo" } [1]=> object(classfoo)#3 (1)

Re: [PHP] UTF-8 With content-type text/xml problem.

2006-07-21 Thread Jon Anderson
I'm somewhat new to this stuff as well, so take this with a grain of salt... Someone else was hinting at this, but more directly, try running utf8_encode() on whatever part of your data that requires utf8 encoding. In the case of your example, you could just utf8_encode the test get variable.

[PHP] Re: UTF-8 With content-type text/xml problem.

2006-07-21 Thread Barry
Mathijs schrieb: Hello ppl, I have a big prob. I have a page which post some input. This input can be UTF-8 like chinese or other utf-8 chars. Also i need it to return UTF-8 and it has to be xml. For some strange reason this isn't working. Small example. PHP Code: '."\n"; print ''.$_GET['tes

Re: [PHP] PAYMENT TRANSACTION

2006-07-21 Thread tedd
At 12:37 AM -0700 7/21/06, BBC wrote: >How are you all? >I hope some body can give me some references for internet payment. >I made a kind of shopping cart in my project; even though I was doubt in >making it caused I don't have any idea how to make internet >transaction. But I just heard from a f

[PHP] UTF-8 With content-type text/xml problem.

2006-07-21 Thread Mathijs
Hello ppl, I have a big prob. I have a page which post some input. This input can be UTF-8 like chinese or other utf-8 chars. Also i need it to return UTF-8 and it has to be xml. For some strange reason this isn't working. Small example. PHP Code: '."\n"; print ''.$_GET['test'].''."\n"; ?> a

Re: [PHP] Re: headers and newline at end of script

2006-07-21 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2006-07-20 at 16:50, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Thu, 2006-07-20 at 14:15, Martin Marques wrote: On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2006-07-20 at 12:12, Adam Zey wrote: