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
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
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
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) {
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);
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
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
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
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
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
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 =
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
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
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?
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
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!
--
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
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
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
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
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
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
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
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);
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
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
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,
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
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
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
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
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
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,
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
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
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
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
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
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;
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
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
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
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
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
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
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.
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
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
101 - 148 of 148 matches
Mail list logo