Re: [PHP] warning message to hide

2007-04-14 Thread siavash1979
Quoting Alain Roger <[EMAIL PROTECTED]>: > Hi, > > Today i discovered that when my host webserver has some issue with > PostgreSQL database, my code displays the following error message : > *"Warning*: pg_connect() > [function.pg-connect]: > Unable to co

Re: [PHP] Posting a variable

2007-04-11 Thread siavash1979
Quoting Robert Cummings <[EMAIL PROTECTED]>: > On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: > > 1- your mysql query statement is better to have a WHERE part too. > > 2- I would use mysql_fetch_row instead of mysql_fetch_assoc > > Ummm, why would you want to reduce clarity and maint

Re: [PHP] Posting a variable

2007-04-11 Thread siavash1979
1- your mysql query statement is better to have a WHERE part too. 2- I would use mysql_fetch_row instead of mysql_fetch_assoc 3- in your form, you're using a single quote. anything in between single quotes will be printed as is. you need to close your single quote and print username and open anot

Re: [PHP] foreach question

2007-04-08 Thread siavash1979
Quoting Lori Lay <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > Sorry this is the full script... > > > > whois.php > > > > > > > > > > > > Enter Domain Names (one per line) > > > style="font-size:13;font-family:Arial,Verdana;"> > > Gotcha! A textarea does not produce an array. Even tho

Re: [PHP] keeping credit card info in session

2007-04-08 Thread siavash1979
Thanks a lot every one. These are great replies. I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. second, I did suggest using a paypal API or a paid site to take care of this, but my client said no. She has a credit c

Re: [PHP] foreach question

2007-04-08 Thread siavash1979
Your code is fine and it should work. but in any case, try: foreach ($_POST as $key){ echo $key . ''; } Also, what php version, and what browser are you using? good luck, Siavash > [EMAIL PROTECTED] wrote: > > "both examples do the same thing.." > > > > no, ex1 only has 1 > > > > so out

[PHP] keeping credit card info in session

2007-04-08 Thread siavash1979
Hi All, I've got quite a bit or php experience, but I've never had to deal with credit card info before. Now for a property rental site, I'm adding a way for users to be able to fill out a form which also has some credit card info in it. After they submit the form, there are a couple of more

Re: [PHP] Firefox Extension (Firefox 2.x.x.x)

2007-03-28 Thread siavash1979
Quoting Tijnema ! <[EMAIL PROTECTED]>: > On 3/28/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > >If you're like me, you spend your fair share of time going to the PHP > > website to check specs, changes, or even to refresh your brain with PHP's > > functions. So today I threw together a simple

Re: [PHP] google video like site

2006-12-15 Thread siavash1979
Quoting Robert Cummings <[EMAIL PROTECTED]>: > On Fri, 2006-12-15 at 09:30 +0100, Jochem Maas wrote: > > Robert Cummings wrote: > > > On Thu, 2006-12-14 at 23:40 +0100, Jochem Maas wrote: > > > > I doubt they were stupid enough to shell out that kind of cash to on a > php-nuke install, > > > > >

[PHP] google video like site

2006-12-14 Thread siavash1979
Hi, I applogize if this isn't really related to php-programming, but it's related to php. I'm wondering if anyone knows what program sites like google video or break.com use? is it a software like php-nuke, or phpBB or drupal? They all look pretty much the same, so I'm guessing it's a package the

Re: [PHP] pop-up window in php???

2006-05-29 Thread siavash1979
Quoting Lester Caine <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > > ok, maybe I didn't make my question too clear. I was mostly wondering if > there > > is a way to do it in PHP rather than Javascript. I would prefer only using > php. > > > > and from the answers I got, I take it that the

Re: [PHP] pop-up window in php???

2006-05-29 Thread siavash1979
ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. thanks, Siavash Quoting Andrei <[EMAIL PROTECTED]>: >

[PHP] pop-up window in php???

2006-05-29 Thread siavash1979
Hi all, Is there anyway to have a pop-up window to ask "are you sure? yes / no" in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if "no" is pressed. any help would be appreciated. thanks, Siavash -- PHP Gener

Re: [PHP] Escaping double quotes

2006-05-25 Thread siavash1979
> So I'm writing this page (PHP Newbie here) and it checks to see if a var > is set, if it isn't it spits out the form info like so: echo " action="myform.php" method="post">"; > Now is there a way to 'wrap' that so I don't have to escape quotes? > Something like perls 'qq' function is what I'm lo

Re: [PHP] credit card purchase and downloads

2006-04-27 Thread siavash1979
Thank you very much Stut, great points. I didn't even think about wanting to display a list of files they have access to. I guess I'll go with the simpler way and save myself a lot of overhead. As I said, I've never made a site that had anything to do with money before, this is the first time. I

Re: [PHP] credit card purchase and downloads

2006-04-27 Thread siavash1979
is that really secure? I just thought if for any reason, someone can get into my database, they can't just add usernames and file ids to my table and have access. I thought if I md5 it, then it'll be more secured. would 1 table for username-fileid really be fine? thanks, Sia Quoting Stut <

[PHP] credit card purchase and downloads

2006-04-27 Thread siavash1979
hi guys, I'm planning to add paid downloads of some speech files on one of my customers website. Basically I want people to be able to pay for a speech and then be able to download it. it's the first time I wanna do anything like this, so I was thinking to myself to do it this way: when they p