Re: [PHP] Security/Web tree/db connect and select

2004-05-28 Thread John W. Holmes
Dennis Seavers wrote: Option 1: Include the mysql_connect and mysql_select_db commands within the script that manipulates the data from the database. Option 2: Include the mysql_connect and mysql_select_db commands (along with usernames and passwords) outside the Web tree, but have the script

Re: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-28 Thread Santiago Peirano
It is what I was looking for. Thx a lot for the information. Santiago Lance Lovette wrote: If you only need to persist a handful of request-agnostic variables you may be able to make use of an extension I wrote. Note that it doesn't work under Windows and I haven't tested it under PHP 4.3.x. http:/

[PHP] Security/Web tree/db connect and select

2004-05-28 Thread Dennis Seavers
I have a question about comparing the security risks for two methods of connecting to a database with PHP. The DBMS is MySQL. Option 1: Include the mysql_connect and mysql_select_db commands within the script that manipulates the data from the database. Option 2: Include the mysql_connect and

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
That's funny Travis ! >>Here's what you do. Assume 10-hour work days. Obviously, you want to start >>with the schema. That's pretty darn important, so allow yourself a whole day >>for that. >> >>You have four days left. Oh wait -- you will probably have to work the weekend >>for this one.

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Tim Traver
Oh my god...I'm crying... what the heck is a bacon stretcher ? t At 03:52 PM 5/28/2004, Travis Low wrote: Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days left.

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Curt Zirzow
* Thus wrote Chris Jernigan ([EMAIL PROTECTED]): > Hi everyone, > What's the problem? I have one week to do this. Oh, and did I mention that I > know VERY little about PHP / mySQL. I know NOTHING about ColdFusion or > MSSQL. And to top it off, the site in question contains over 300 .cfm files! >

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Travis Low
Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days left. Oh wait -- you will probably have to work the weekend for this one. So you have six days left. That's

Re: [PHP] datetime formatting problem

2004-05-28 Thread Stephen Lake
Try strftime it allows you to take a timestamp created by time() and format it as required. heres the man page for it: http://www.php.net/manual/en/function.strftime.php "Matt Newell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] thanks a bunch torsten. it worked like a charm and i'

[PHP] Re: ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Stephen Lake
Yeah tell your boss to get stuffed and that your not old enough yet to have a stroke ;) There is absolutely no way no one knowlegable and experienced in both languages can do it in a week no less a non programmer either -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
appreciate the headsup, but all times will be from when record is inserted which will not be possible before today. thanks, m. -Original Message- From: Jordan S. Jones [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:20 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] datetime formatt

RE: [PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
thanks a bunch torsten. it worked like a charm and i'm off to read up some more on strtotime. best, m. -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] datetime formatting problem "Daniel Clark"

Re: [PHP] datetime formatting problem

2004-05-28 Thread Jordan S. Jones
[snip /] Hi Matt, try this: function formatDate($val) { $timestamp = strtotime($val); return date('M d, Y g:i A', $timestamp); } strtotime possibly will not work if your date is < 01/01/1970. [snip /] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Re: ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Ammar Ibrahim
Tell your boss to get a life :) I'm working on converting a large web application from ColdFusion/MsSQL to PHP/MySQL. This web app is almost around 3 million lines of code :| I was wondering if there exists a tool similiar to ASP2PHP to convert ColdFusion code to PHP. But anyway, the way ColdFus

Re: [PHP] datetime formatting problem

2004-05-28 Thread Torsten Roehr
"Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Isn't "date" a reserved word? date and dateTime are not reserved in MySQL and can be used as column names. > > > hi all - > > > > this is probably straight forward, but i'm learning and would appreciate > > any insight.

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
I've used Cold Fusion for years. However one week at 100 hours might not be enough time to covert everything to PHP and mySQL. > Hi everyone, > > Ok, I need serious help. I have been handed a project by my boss to > convert > an existing site that was built using ColdFusion / SQL into a site tha

RE: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Jay Blanchard
[snip] Tell your boss it's an unrealistic goal. Even for a seasoned PHP programmer with a firm grasp on MySQL, something of this scope is unrealistic for a single person. Scoping out the db schema alone could take a week or more (depending on the size of your db). That doesn't even take into

[PHP] PHP5 CGI with Apache2

2004-05-28 Thread Gerard Samuel
I installed php5 RC2 on winXP with Apache 2 on my dev box. I started with the sapi module and it worked great there. I edited apache's httpd.conf file to try out php as a CGI, (as mentioned in the install file), and I keep getting server 500 errors -- Internal Server Error The server e

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread John Nichel
Chris Jernigan wrote: Hi everyone, Ok, I need serious help. I have been handed a project by my boss to convert an existing site that was built using ColdFusion / SQL into a site that will use PHP / mySQL. The site relies heavily on calls to the database for everything from site content, to an admin

[PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Chris Jernigan
Hi everyone, Ok, I need serious help. I have been handed a project by my boss to convert an existing site that was built using ColdFusion / SQL into a site that will use PHP / mySQL. The site relies heavily on calls to the database for everything from site content, to an admin area where you can e

Re: [PHP] datetime formatting problem

2004-05-28 Thread Daniel Clark
Isn't "date" a reserved word? > hi all - > > this is probably straight forward, but i'm learning and would appreciate > any insight. > > i'm using the datetime type in mysql and have been able to successsfully > pull the data records's date, but it's failing out and giving me the > current time [a

[PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
hi all - this is probably straight forward, but i'm learning and would appreciate any insight. i'm using the datetime type in mysql and have been able to successsfully pull the data records's date, but it's failing out and giving me the current time [as in what it says on my system's clock] bas

[PHP] Playing RealAudio files on the fly!

2004-05-28 Thread hamidhossain
Hi, I want to play realaudio files without showing their location in my site. That means I have to use php header() function to change the MIME type of the page to "audio/x-pn-realaudio" which looks to me the correct MIME to paly real files. Unfortunately, I did not success in playing those files

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
> --- Gerben <[EMAIL PROTECTED]> wrote: > > does anyone know how to create a true nl2br function in stead of a > > nl2br-and-nl function. > > $foo = str_replace('\n', '', $foo); Make that "\n" to interpret the newline correctly. Sorry about that. Chris = Chris Shiflett - http://shiflett.org

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben <[EMAIL PROTECTED]> wrote: > does anyone know how to create a true nl2br function in stead of a > nl2br-and-nl function. $foo = str_replace('\n', '', $foo); Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sam

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Tim Winters
Steve!!! This is great! I had no idea you could use arrays in url variables. That makes everything much easier. Thanks very much Tim At 06:26 AM 28/05/2004, Steve Edberg wrote: At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: Thanks for the reply Denis, Let me elaborate a bit. I have a php pag

RE: [PHP] Re: nl2br problem

2004-05-28 Thread Vail, Warren
Sounds like you have tab characters and blanks controlling your indentation and html will display only one blank between text characters, has nothing to do with nl2br. This does not happen when you use tags, but then the doesn't work either. Warren Vail -Original Message- From: Gerb

[PHP] Re: nl2br problem

2004-05-28 Thread Gerben
my indentation is screwed up when I use nl2br(); "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gerben wrote: > > > If have some problems with the nl2br function. It f*cks up my layout. > > does anyone know how to create a true nl2br function in stead of a > > nl2

Re: [PHP] Re: Changing environment variables ? (stupid question)

2004-05-28 Thread Harry Sufehmi
On 27/05/2004 at 12:55 Jason Barnett wrote: >Oooh, wish you'd said Windows, I coulda given you a walkthru there. The >environment variable that you want to set cannot (AFAIK) be changed by >Apache. You'll need to change the variable in Solaris itself. >So sayeth google: >http://docs.sun.com/db/do

[PHP] Re: nl2br problem

2004-05-28 Thread Justin Patrin
Gerben wrote: If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace("\n", "", nl2br($text)); but I don't like it that much and I don

[PHP] Re: how to redirect with post method

2004-05-28 Thread Justin Patrin
Raúl castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header("location:information.php?cod1=$cod1&cod2=$cod2&...codn=$codn"); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. If you really need to redire

Re: [PHP] how to redirect with post method

2004-05-28 Thread Daniel Clark
I don't believe you can sent those post variables on the URL. Either as GET variables on the URL. Set Session variables and read on the next page. Or setup a with hidden post variables populated with the $post variables, and JavaScript to auot submit onload. > Hello, > I have a webpage that I'm

[PHP] nl2br problem

2004-05-28 Thread Gerben
If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace("\n", "", nl2br($text)); but I don't like it that much and I don't know if nl

Re: [PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread raditha dissanayake
Bryan Waters wrote: I've asked this question in 4 different places and in each place i've not received a single response...is that because its too hard or too esoteric? I need to get this resolved and i'm stumped... and earlier: What am i missing? If i didn't include enough information, my apol

Re: [PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread John Nichel
Bryan Waters wrote: I have an Apache 1.3.27 server configured with SSL, PHP and so on... My problem is that PHP doesn't work under the SSL virtual host...it works under other named virtual hosts and the main site, but it simply doesn't work under the _default_:443 virtualhost for some reason...on a

[PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread Bryan Waters
I've asked this question in 4 different places and in each place i've not received a single response...is that because its too hard or too esoteric? I need to get this resolved and i'm stumped... Please help! thanks again -bryanw -Original Message- From: Bryan Waters [mailto:[EMAIL PROTE

Re: [PHP] how to redirect with post method

2004-05-28 Thread raditha dissanayake
Raúl Castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header("location:information.php?cod1=$cod1&cod2=$cod2&...codn=$codn"); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. In fact if you redirect f

Re: [PHP] how to redirect with post method

2004-05-28 Thread John Nichel
Raúl Castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header("location:information.php?cod1=$cod1&cod2=$cod2&...codn=$codn"); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. Easy way, JavaScript. More i

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
I have not changed my configuration lateley, what I know of. There is another guy working on the server, but he said he had changed nothing either. I've been running this configuration for a couple of months now and it has never caused me any troubles. /peter Michael Sims wrote: peter a wrote

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
PHP configuration has not been changed though... so it's just strange.. I read something about a similiar trouble if you SSL on the server, I have SSL installed but this site is not under https. Anybody now anything about that? /peter Chris W. Parker wrote: peter a

[PHP] how to redirect with post method

2004-05-28 Thread Raúl Castro
Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header("location:information.php?cod1=$cod1&cod2=$cod2&...codn=$codn"); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks.

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
No the file is there. I see it in the access logs for apache (even though last night it didn't even show up there.. ), but it refuses to load. Every time I get a PHP error the page freezes up and my browser tries to load it forever or I get "The page cannot be dispalyed". The file is there.. it

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Michael Sims
peter a wrote: > It not just that page.. it is all pages the will generate some sort of > PHP error. Instead of the usual error output I get nothing. Sounds to me like the apache process is segfaulting when PHP's error handler is invoked. You say it used to work for you, what changed recently? D

Re: [PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread jon
Yeah... gotta agree with that -- the PEAR package makes dealing with mime mail incredibly easy. I love that thing. -- jon -- jon roig web developer phone: 888.230.7557 email: [EMAIL PROTECTED] Torsten Roehr wrote: Maybe you could use a ready-made package such as PEAR's Mail_Mime: http://p

Re: [PHP] Update Multiple Records From Form

2004-05-28 Thread Albert Padley
On May 28, 2004, at 3:50 AM, Ford, Mike [LSS] wrote: On 28 May 2004 04:47, Albert Padley wrote: I feel I'm so close. I have a form with multiple database records with a checkbox to indicate which records to update set up like so: $name = "ed[" . $row['id'] . "]"; Each text input is set up like so:

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:17 AM said: > It not just that page.. it is all pages the will generate some sort of > PHP error. Instead of the usual error output I get nothing. hmm... sounds like a php configuration thing. i.e. a server thing. in which case i'm

Re: [PHP] Identifying spam text

2004-05-28 Thread jon
An easy thing to do might be to limit the number of submissions a single IP address can submit in a given period of time. That way, an occasional spam will get through, but its effect will be limited. Also, if this web form has a standard url -- like you got it from a major script site like hot

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
It not just that page.. it is all pages the will generate some sort of PHP error. Instead of the usual error output I get nothing. /peter Chris W. Parker wrote: peter a on Friday, May 28, 2004 9:12 AM said: Nothing complicated at all. It loops out some values fro

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:12 AM said: > Nothing complicated at all. It loops out some values from a MySQL > database with not more than 20 entries. It's not that.. well unless it's a server thing (in which case i'd have no ideas towards a solution) your next

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Nothing complicated at all. It loops out some values from a MySQL database with not more than 20 entries. It's not that.. /peter Chris W. Parker wrote: peter a on Friday, May 28, 2004 9:06 AM said: Thanks, but that didn't take me anywhere. My browser still seems t

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:06 AM said: > Thanks, but that didn't take me anywhere. My browser still seems to > hang itself or load a part of the page. I suppose it could be any of > my http-processes that freezes up.. but I don't seems like it and I > don't kn

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Thanks, but that didn't take me anywhere. My browser still seems to hang itself or load a part of the page. I suppose it could be any of my http-processes that freezes up.. but I don't seems like it and I don't know why it would. Doesn't matter which browser I use either. /peter Chris W. Park

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 8:29 AM said: > I have stumbled on something that is new for me. Usually when I get a > PHP error I print them on the page, but suddenly pages with errors > don't load at all, in IE I get the usual "The page cannot be > displayed" and

[PHP] Unable to load pages with errors

2004-05-28 Thread peter a
I have stumbled on something that is new for me. Usually when I get a PHP error I print them on the page, but suddenly pages with errors don't load at all, in IE I get the usual "The page cannot be displayed" and in Lynx I get "Alert!: Unable to access document." I run PHP 4.3.2 and Apache 2.0

[PHP] fsockopen() throwing errors

2004-05-28 Thread Phil Ewington - 43 Plc
Hi All, How can I stop fsockopen() throwing an error and killing my script when it cannot connect? I have tried the following: $this->_Socket = fsockopen($s_server, $this->_Port, $i_errno, $s_errstr, $this->_Timeout); if (!$this->_Socket) { ... code to handle connection failure } and ..

Re: [PHP] making selection in drop down

2004-05-28 Thread Tristan . Pretty
I use a javascript to help me with bigger dropdowns... function get_links() { document.all["field_name"].value='' "Torsten Roehr" <[EMAIL PROTECTED]> 28/05/2004 16:12 To [EMAIL PROTECTED] cc Subject Re: [PHP] making selection in drop down "Alex Hogan"

Re: [PHP] making selection in drop down

2004-05-28 Thread Torsten Roehr
"Alex Hogan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Use HTML attribute "selected" in the option field you want to > > set as default... > > Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a sear

RE: [PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
> Use HTML attribute "selected" in the option field you want to > set as default... Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm missing your point please excuse me. I'm a little brain dead this

Re: [PHP] making selection in drop down

2004-05-28 Thread "Miguel J. Jiménez"
Use HTML attribute "selected" in the option field you want to set as default... Alex Hogan wrote: Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the r

Re: [PHP] Send HTML/plain text email using PHP

2004-05-28 Thread Curt Zirzow
* Thus wrote Matt MacLeod ([EMAIL PROTECTED]): > ... > > $headers .= "Reply-To: [EMAIL PROTECTED]"; > $nonhtml = strip_tags($emailsend); > // This is the important part! > // This content type identifies the content of the message. > // The boundary delimits the plain text and html sections. > //

[PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the results are displayed and I want to be able to use that same drop down and just force the selecti

Re: [PHP] PHP doesn't work under SSL for Apache

2004-05-28 Thread R'twick Niceorgaw
Quoting Bryan Waters <[EMAIL PROTECTED]>: > I have an Apache 1.3.27 server configured with SSL, PHP and so on... > > My problem is that PHP doesn't work under the SSL virtual host...it works > under other named virtual hosts and the main site, but it simply doesn't > work under the _default_:443

Re: [PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Matt MacLeod
OK, I managed to find a script that appears to work (at least for me and a few other people, anyway). The only thing is that if you look at the raw source of the email it comes out as nonsense. eg: CgoKRU1BSUwKCgoKCgoKCgoKCgpMb25kb24gMjEgTmV3c2xldHRlcgpGT1IgQUNUSU9OIElO IFRI RSBDT01NVU5JVFk

[PHP] PHP doesn't work under SSL for Apache

2004-05-28 Thread Bryan Waters
I have an Apache 1.3.27 server configured with SSL, PHP and so on... My problem is that PHP doesn't work under the SSL virtual host...it works under other named virtual hosts and the main site, but it simply doesn't work under the _default_:443 virtualhost for some reason...on any other non-ssl pa

Re: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Curt Zirzow
* Thus wrote Steve Edberg ([EMAIL PROTECTED]): > At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: > > However, most of what you can do with them can be done more simply > with arrays. In your example above, use > > myPage.php?dataPoint[]=10&dataPoint[]=20&dataPoint[]=30 > I'd also sugg

Re: [PHP] Identifying spam text

2004-05-28 Thread Scot L. Harris
On Fri, 2004-05-28 at 03:31, Merlin wrote: > Hi there, > > I am running a community site in php, where members can be contacted through a > web form. Yesterday a guy contacted about 50 of those members with a spam text. > > Now I am trying to find a way to identify spam text via php. This looks

RE: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Ford, Mike [LSS]
On 28 May 2004 12:30, Torsten Roehr wrote: > "I.A. Gray" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi all, > > > > Easy question (I hope). My brain seems not be working today, so > > could someone help me with this one? [...] > > How can I get the value to change in eac

[PHP] PHP as CGI becomes a zombie when loaded too often

2004-05-28 Thread Florian Effenberger
Sorry for posting this again and again, but I still experience this problem and there seems to be no way for me to solve it. I've got confirmation from others that this problem is not only mine, so please take the time to read this. I've tried Apache 1.3 and 2.0, both on Linux 2.4. I've tried using

RE: [PHP] Re: Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, Yes that was my mistake. But even with the code, it still doesnt display the last one. If i didnt put a " it wouldnt work at all. Thanks, Ian -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 13:56 To: [EMAIL PROTECTED] Subject: [PHP] Re: Mysql Proble

[PHP] Re: Mysql Problem

2004-05-28 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am generating a mysql statement and then printing it to a formatted field. > Here is my code: > > $sql="SELECT * from tablename where name in ('Web','HTML','PHP') group by > name; You are missing the closing quote

[PHP] Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, I am generating a mysql statement and then printing it to a formatted field. Here is my code: $sql="SELECT * from tablename where name in ('Web','HTML','PHP') group by name; $mysql_rslt1 = mysql_query($sql, $mysql_bconn) or die ("Could not get data"); while ($rec1 = mysql_fetch_array ($my

Re: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
"I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, Torsten. That clears things up quite a bit. I do find the PHP > manual a little heavy going sometimes. Does this mean then that I have to > do this: > $tempcomposer = 'composer' . $countything; > $tempsubheading = '

RE: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
Thanks, Torsten. That clears things up quite a bit. I do find the PHP manual a little heavy going sometimes. Does this mean then that I have to do this: $tempcomposer = 'composer' . $countything; $tempsubheading = 'subheading' . $countything; $tempmovementno = 'movementno' . $countything; etc...

[PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Torsten Roehr
Maybe you could use a ready-made package such as PEAR's Mail_Mime: http://pear.php.net/package/Mail_Mime Regards, Torsten Roehr "Matt Macleod" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've been having a little trouble configuring a script to send a > multipart email using PH

[PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
"I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Easy question (I hope). My brain seems not be working today, so could > someone help me with this one? > > I have a while loop outputting part of an html form which inputs track > information for CDs: > > $count

[PHP] Send HTML/plain text email using PHP

2004-05-28 Thread Matt MacLeod
I've been having a little trouble configuring a script to send a multipart email using PHP. The script send the message, but when I recieve the email it doesn't display the HTML version and I have to tell my mail client to displlay the plain text version (Mail on OS X 10.3.3). Here's the scrip

[PHP] zlib compatibility

2004-05-28 Thread Francis Mak
Hi, What I am trying to do: - in VB, compress a string - save it as a file - use php to open it, then gzuncompress it I am using a vb wrapper in: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=42297&ln gWId=1 I am sure that the above program works,

[PHP] Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
Hi all, Easy question (I hope). My brain seems not be working today, so could someone help me with this one? I have a while loop outputting part of an html form which inputs track information for CDs: $countything = 1; while ($countything !=31) { echo " $countything.

[PHP] Communication

2004-05-28 Thread Jakes
I'm looking at distributing PHP applications to desktops, using SQLite as the database. All information that is updated in the application will be local on the machine, until published to the webserver. My question is, what would be the best way to update the webserver sitting at a service provid

RE: [PHP] Update Multiple Records From Form

2004-05-28 Thread Ford, Mike [LSS]
On 28 May 2004 04:47, Albert Padley wrote: > I feel I'm so close. > > I have a form with multiple database records with a checkbox to > indicate which records to update set up like so: > > $name = "ed[" . $row['id'] . "]"; > > > > Each text input is set up like so: > > > > On the processin

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Steve Edberg
At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: Thanks for the reply Denis, Let me elaborate a bit. I have a php page which I want to pass a series of variables via a url string. eg myPage.php?dataPoint1=10&dataPoint2=20&dataPoint3=30 The thing is I won;t know until runtime how many dataPoints t

Re: [PHP] Playing with globals

2004-05-28 Thread Steve Edberg
At 11:52 AM +0300 5/28/04, Ciprian Trofin wrote: Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ test(); echo $test; ?> _

Re: [PHP] Identifying spam text

2004-05-28 Thread Steve Edberg
At 9:31 AM +0200 5/28/04, Merlin wrote: Hi there, I am running a community site in php, where members can be contacted through a web form. Yesterday a guy contacted about 50 of those members with a spam text. Now I am trying to find a way to identify spam text via php. This looks like a common

[PHP] Playing with globals

2004-05-28 Thread Ciprian Trofin
Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ __ the result: 1 (however, I expected to see "2")

[PHP] Re: Identifying spam text

2004-05-28 Thread Merlin
ok.. I came up with something by myself. Here is the code in case someone is interested in a spam filter. Regards, Merlin ### # Check for spam $stmt=" SELECT keyword, weight FROM Table

Re: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread PHP4web
ok let say that you have 2 or more variables with same name but there are difference in numbering And Values like this : $var1 = 1 ; $var2 = 12 ; // etc .. now you must now how much of number of this varibles before you deal with it or you must store it on array to know how to count it in the fl

[PHP] Re: How can I filter options?

2004-05-28 Thread Merlin
Hello Dunj, first query the db for all provinces. Then let the user select his province and make the select field an automated jump field (onselct="document.location.href='xxsite'") Then query the db again with the province and display the cities. However think about it how many cities you might

[PHP] Identifying spam text

2004-05-28 Thread Merlin
Hi there, I am running a community site in php, where members can be contacted through a web form. Yesterday a guy contacted about 50 of those members with a spam text. Now I am trying to find a way to identify spam text via php. This looks like a common task to me, so I hope that I have not to