[PHP] Re: NEXT() and/or PREV()

2002-10-07 Thread Jef
Here is the code to get the information from the database... $pnSelect = SELECT lot FROM properties WHERE status = 'Available'; $pnSql = mysql_query($pnSelect, $db) or DIE(Unable to retrieve LOT data); $pnFields = mysql_fetch_array($pnSql); If I understand the current() function correctly I

Re: [PHP] detecting POST variables

2002-10-07 Thread Justin French
on 08/10/02 9:13 AM, Anup ([EMAIL PROTECTED]) wrote: Hello, I have been dealing with different form proccessing PHP scripts. When I start a new job I usually have a script that just takes the form POST values and prints them to the screen, so I know what I'm working with. Now I have a

[PHP] own session_name gc

2002-10-07 Thread Giancarlo
The manual gives an example: function destroy ($id) { global $sess_save_path, $sess_session_name; $sess_file = $sess_save_path/sess_$id; return(unlink($sess_file)); } /* * WARNING - You will need to implement some * * sort of

Re: [PHP] detecting POST variables

2002-10-07 Thread Anup
Here's the code ?php foreach ($HTTP_POST_VARS as $Index=$Value) { echo DEBUG ::: POST Key: $Index; POST Value: $Valuebr\n; } ? ### Here's the function (this is how what I catually use). function PrintVars () { global $HTTP_POST_VARS; foreach ($HTTP_POST_VARS as $Index=$Value) {

RE: [PHP] Database help

2002-10-07 Thread Davy Obdam
Hi Jef, This is what i would do: $fSelect = SELECT lot,size,price FROM properties WHERE status = 'Available' ORDER BY lot ASC; $fSql = mysql_query($fSelect, $db) or DIE(Unable to retrieve data); for ($i=0;$imysql_num_rows($sql_id);$i++) { $useFields = mysql_fetch_assoc($fSql);

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Are you sure? I think (I might be wrong) using PHP sessions automatically sends the Cache-Control header. I cannot remember what directives it uses. Perhaps the fact that you do not use correct case makes PHP miss the fact that you want to reassign Cache-Control to use a different value? If

[PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I would like to do this without using a form... is there a way I can recode this? I have the following table... the button that originates from a form is out of alighnment, and sits higher then the rest. how do I solve this? TDa href=main.phtml target=_topIMG SRC=images/home-bttn.jpg

RE: [PHP] Getting fully qualified host name

2002-10-07 Thread Lance Lovette
If you happen to be running *nix (which it sounds like you are) and want to compile the Pwee extension into PHP you can have access to constants like SERVER_HOSTNAME. http://pwee.sourceforge.net Lance -Original Message- From: Spongle [mailto:[EMAIL PROTECTED]] Sent: Monday, October

Re: [PHP] detecting POST variables

2002-10-07 Thread christian haines
maybe try... print pre; print_r($HTTP_POST_VARS); print /pre; this will dump the entire post var array to the browser.. similar to functions before but faster. Christian Haines Internet Developer MITOUSA. Branding Strategies for Visual Interactive Design 102 Tynte Street North

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
I had tried it with both cases, actually, just to be sure. It did not make a difference. If the session is sending a no-cache header, would then sending a no-store one cancel the other out, or just add to it? ---John Holmes... -Original Message- From: Chris Shiflett [mailto:[EMAIL

[PHP] Division by zero

2002-10-07 Thread Gary
I am trying t get the percent of votes form the table poll, but keep getting Division by zero for the line commented below. snip if ($res) { echo bla bla bla; $sql = SELECT question, responce1, responce2, responce3, vote1, vote2, vote3, date FROM poll WHERE id =

RE: [PHP] Division by zero

2002-10-07 Thread John W. Holmes
Sounds like $total is zero to me...do you think PHP is making up errors for you? Have you checked the value of $total and the different $voteX variables? ---John Holmes... -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:29 PM To: [EMAIL

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? Chris John W. Holmes wrote: I had tried it with both cases, actually, just to be sure. It did not make a difference. If the session is sending a no-cache header, would then

Re: [PHP] Division by zero

2002-10-07 Thread Gary
Yes, I did that before I posted. I am beginning to wonder if vote1-3 are being retrieved from the database. Gary John W. Holmes wrote: Sounds like $total is zero to me...do you think PHP is making up errors for you? Have you checked the value of $total and the different $voteX variables?

Re: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 6:53:43 AM, you wrote: SV Hiya, SV DOn't think I am getting anywhere!!! SV I have no turned register_globals off and recoding my website, but I cant work out how to do sessions. SV The following code dosen't keep sessions. Its logs on, but I dosent

[PHP] MySQL back up

2002-10-07 Thread Ken
Hi All! Anyone know how to code the MySQL command in PHP to make the database script download to your local hard disk, without writing 100 lines of code? I tried the mysqldump without any luck, but I think there is an easy way to do it, just not sure how to code it. Thanks in advance! --

[PHP] Re: Division by zero

2002-10-07 Thread Owen Prime
Make sure that vote1, vote2, and vote3 are not null. Maybe you need to use the IFNULL(vote1, 0) function. Cheers, Owen. Gary wrote: I am trying t get the percent of votes form the table poll, but keep getting Division by zero for the line commented below. snip if ($res) { echo bla

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? ---John Holmes... -- PHP General Mailing List

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread Peter Houchin
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? can't you view all headers etc in the source

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Justin French
Alignment of elements in a table or form is really a HTML/CSS question. Just to make matters worse, I have problems with aligning in IE, but not NN... so perhaps there is no way to get it all working... try a HTML or CSS group. Instead of a form, you could just have a clickable image, with any

[PHP] Re: is there an alternative to this code?

2002-10-07 Thread Owen Prime
You may have already been here but what about a border=0 and align=absmiddle on the image button. Cheers, Owen Prime http://www.noggin.com.au Jeff Bluemel wrote: I would like to do this without using a form... is there a way I can recode this? I have the following table... the

Re[2]: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:00:59 PM, you wrote: TR After the successful first login you are not saving the $_POST variables TR into the $_SESSION equivalents TR -- TR regards, TR Tom Ok after looking a little harder I found you were setting it :) Your prblem is in the lines

[PHP] PDF to PHP (code)

2002-10-07 Thread Jason Morehouse
Hi all, I've got a pretty detailed PDF that I need to dynamically re-create with PHP / pdflib. Before I sit around for endless hours inputing x, y, fonts and line coordinates, is there *any* tool that can help automate this? Basically, the miracle I'm looking for would take a PDF file, and

[PHP] Re: Division by zero

2002-10-07 Thread Gary
I found a problem in the rows but that didn't fix it. if I test for votes, total, and percentages it work perfect. To do this I have to cut part of the code and rearrange the braces. I beginning to think it is a problem with braces being wrong or id test code ?php include(calls.php);

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:13:59 PM, you wrote: You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? JWH No. Can you recommend a good method on windows? Should I get lynx or JWH does opera have a method to view all

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
ok - I'm looking at the code you posted, and I'm following some of it, but not all of it. let me tell you what I am trying to accomplish. I like the code you posted below, but I don't believe I am understanding it well enough to implement it. I have this 'clickable image'. when I click the

[PHP] Re: is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I will have to try to play with the absmiddle function... border=0 is already in there Jeff Owen Prime [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You may have already been here but what about a border=0 and align=absmiddle on the image button. Cheers,

RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
Tuesday, October 8, 2002, 12:13:59 PM, you wrote: You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? JWH No. Can you recommend a good method on windows? Should I get lynx or JWH does opera have a method to view all

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
ok - I played with this, and found this to work (but I have no idea why). is there a good webpage that give good information on the variable, and html? I have the code working, but I really have no idea how this stuff works together like it does. I would be very interested in some place I can

Re[4]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:59:40 PM, you wrote: JWH Wouldn't everything be encrypted, though, since it's over SSL? Including JWH the headers? JWH Unfortunately, the way they set up the server, it will not process any JWH unsecured requests now. JWH ---John Holmes... Yes it is encrypted

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Yes, you're right. You might want to turn off the forced SSL temporarily to debug this, if that's possible. Nothing other than your browser or the Web server will be able to show you the HTTP communication over SSL, because it's all trash to everything in between. There may be settings in

[PHP] fsockopen timeout not working

2002-10-07 Thread Scott Dowd
I have a PHP application that goes out an checks all our servers via SNMP when requested. Trouble is, if the server is not available, the fsockopen never times out and therefore never moves onto the next server. I am running 4.2.3 on IIS (NT4). I read there was a bug with previous versions, but I

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
Thanks for the help guys. Like I said, the download works fine as long as it's not over SSL. I will try to disable it and see if I can look at the headers sent to see if a no-cache header is being sent, even though I haven't specified it. Regardless, even if it is, I have no way of stopping it,

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree, this is an html/css question... but you can try this. Instead of putting your form tags inside the td tags, why not put them outside the table tags like this: form table tr tdinput type=whatever... //td /tr /table /form I think this won't destroy the alignment. Just an

Re: [PHP] fsockopen timeout not working

2002-10-07 Thread Rasmus Lerdorf
You should read up on socket_select On Tue, 8 Oct 2002, Scott Dowd wrote: I have a PHP application that goes out an checks all our servers via SNMP when requested. Trouble is, if the server is not available, the fsockopen never times out and therefore never moves onto the next server. I am

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Owen Prime
Good answer. I tend to put the following line in my css which gets rid of this problem in pretty much all browsers. FORM { vspace: 0px; hspace: 0px; } Cheers, Owen Prime http://www.noggin.com.au @ Edwin wrote: Yes, I agree, this is an html/css question... but you can try this. Instead of

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Chris Shiflett
I'm not sure if this will be helpful, but I have always found that the only reliable way to make a form tag disappear (meaning, not affect alignment or create any vertical space) is to place it outside of row tags yet inside the table: table form ... tr tdTable Cell/td /tr

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I think my next project is to dig into ccs files, and get this part of my webpage setup... I've got a lot of good structures, but I need to get the styles etc. set. Jeff (here's the project http://obi-wan.domintcom.com username guest password domintcom - go to customer service, and then

RE: [PHP] is there an alternative to this code?

2002-10-07 Thread Thoenen, Peter Mr. EPS
What you want is: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleFoo/title /head body form method=POST action=?php echo $_SERVER['PHP_SELF']? div style=width: 15%; float: left;

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree. Besides, Justin had a similar idea (with yours). But, I was trying to help with the alignment problem--might even be useful somewhere else... ;) - E On Tuesday, October 8, 2002 1:26 PM Thoenen, Peter Mr. EPS wrote: What you want is: [snip] What I dont' understand is why you

[PHP] Change in PHP 4.2.3 for mysql rollback

2002-10-07 Thread Samantha Savvakis
Hi, I noticed one of the fixes/changes to PHP 4.2.3 is the following: - Made MySQL rollback open transactions when the request ends. The reason why I looked into the changes is because I noticed the SQL Command ROLLBACK being submitted to my database server after the database handles were

Re: [PHP] Change in PHP 4.2.3 for mysql rollback

2002-10-07 Thread Rasmus Lerdorf
It doesn't look to see if there are any, that'd be hard. It just does a rollback to be safe. It shouldn't hurt anything if you aren't using transactions. -Rasmus On Tue, 8 Oct 2002, Samantha Savvakis wrote: Hi, I noticed one of the fixes/changes to PHP 4.2.3 is the following: - Made

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 1:32:16 PM, you wrote: JWH Thanks for the help guys. Like I said, the download works fine as long JWH as it's not over SSL. I will try to disable it and see if I can look at JWH the headers sent to see if a no-cache header is being sent, even though JWH I haven't

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Why not just a simple wget -S https://... to see the headers? On Tue, 8 Oct 2002, Tom Rogers wrote: Hi, Tuesday, October 8, 2002, 1:32:16 PM, you wrote: JWH Thanks for the help guys. Like I said, the download works fine as long JWH as it's not over SSL. I will try to disable it and see if

Re: [PHP] NEXT() and/or PREV()

2002-10-07 Thread Jason Wong
On Tuesday 08 October 2002 06:03, Jef wrote: I need some help with the NEXT() and PREV() functions. I want to use them with a webpage to direct which page is viewed by the user. If NEXT is selected then I would like the next information pulled from the database. If the PREV is selected I

[PHP] PHP to Excel (csv)

2002-10-07 Thread Ivo Stoykov
Hi I have following problem. Some data retreived from mysql db I need to send to the user as a *.csv file. Usually I separate fields (usually double quoted) with comma (,) or semicolomn (;) and the records with cr/lf (Windows) It works fin until I do not have cr/lf in any of the fields.

[PHP] Re: PHP to Excel (csv)

2002-10-07 Thread @ Edwin
Perhaps, you can take them off then? I think you can use str_replace() to replace them with "". - E "Ivo Stoykov" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I have following problem. Some data retreived from mysql db I need to send to the user as a

RE: [PHP] Deleting multiple items from database using checkboxes

2002-10-07 Thread John W. Holmes
I think someone already mentioned this, but you can also do this: if(isset($dele) count($dele) 0) { $ids = ' . implode(',',$dele) . '; $sql = delete from gastenboek where entryID IN ($ids); $result = mysql_query($sql); } might want to add in a is_array() somewhere in there... ---John

<    1   2