Dear mike,
your thread solved my problem.
I really appreciate your help.
Thank you very much.
On Thu, 13 Sep 2007 14:49:29 -0700
mike <[EMAIL PROTECTED]> wrote:
> warning: this is VERY UGLY CODE. i wrote it 3-4 years ago now i think
> and it just keeps working.
>
> you call it this way:
>
>
Dear Brian,
My problem is solved. thank you very much for your help.
===
On Wed, 12 Sep 2007 14:04:11 -0400
brian <[EMAIL PROTECTED]> wrote:
> Patrik Hasibuan wrote:
> > Dear my friends...
> >
> > I am trying to display the content of a table. Each page must content
> > only 5 records maximum. E
Hi Arvid,
thank you very much for your remark. It is useful for me.
===
On Fri, 14 Sep 2007 12:01:40 +0300
"Arvids Godjuks" <[EMAIL PROTECTED]> wrote:
> Don't use SQL_CALC_FOUND ROWS on simple queries, when you have to run a
> simple query on one or two (with join) tables with a simple WHERE. Esp
2007. 09. 14, péntek keltezéssel 10.50-kor mike ezt írta:
> except i think innodb does not have a full row count stored.
of course not, but SQL_CALC_FOUND_ROWS does not use that. it is working
like it selects the rows and counts them. and in the case of complex
queries (where you use more than one
except i think innodb does not have a full row count stored.
anyway the design was meant for a simple one function call. it's
worked great for small and data loads.
On 9/14/07, Arvids Godjuks <[EMAIL PROTECTED]> wrote:
> Don't use SQL_CALC_FOUND ROWS on simple queries, when you have to run a
> si
Don't use SQL_CALC_FOUND ROWS on simple queries, when you have to run a
simple query on one or two (with join) tables with a simple WHERE. Especialy
if tables are big. I found out that single SELECT COUNT(id) FROM table is
far more faster when query has simple WHERE conditions. I use
SQL_CALC_FOUND
warning: this is VERY UGLY CODE. i wrote it 3-4 years ago now i think
and it just keeps working.
you call it this way:
# pagination.
if(isset($_GET['pg'])) {
$page = intval($_GET['pg']);
} else {
$page = 1;
}
$page = sprintf("%02d",$page);
$query = Array(
'query'
Hi Mike,
I am intrested for the solution you gave me. But I am confused of the way in
implementing "select FOUND_ROWS()".
I wrote another very simple codes as the first step for understanding this
threat:
$idiklan";
}
}
}else{
echo "I can't talk to the server";
e
On 9/12/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote:
> Dear my friends...
>
> I am trying to display the content of a table. Each page must content only 5
> records maximum. Each page has "Previous" and "Next" buttons (made from
> anchor).
>
> I dump the primary of the working table and keep it
Patrik Hasibuan wrote:
Dear my friends...
I am trying to display the content of a table. Each page must content
only 5 records maximum. Each page has "Previous" and "Next" buttons
(made from anchor).
I dump the primary of the working table and keep it in a cookie. So
than the paging task work w
dad";
echo "it: $it";
bukaiklan($idad);
}
".
Please tell me why PHP does not work as I expect.
Thank you very much in advance.
=
0){ echo "Previous"; }
?>
ðÒÉ×ÅÔ!
Saci wrote:
> Who cares about privacy on my own company Intranet ?
Anyone not willing to show where they has been surfing on the net to any
unexperienced bycomer. Youu may read the history, but you just have *no*
warranty that it will not be cleared at runtime.
Since you have control
This works for me, PHP 4.1.1
Upon first loading the page, I get nothing, but when I click on "go", I get
both referrer address' echoed.
refer.php:
---
go
Page refered by
';
echo $_SERVER['HTTP_REFERER'].'';
?>
---
It's already been said but:
1. are you sure php is working (with other f
I agree, I made a mistake on my last reply , and I apologize for that.
Thank you also for you for your coments, but my main question still open
without any related reply.
>
> > To say the minumum yor reply does not help in nothing.
> >
> > Who cares about privacy on my own company Intranet ?
on 15/07/02 12:51 PM, Saci ([EMAIL PROTECTED]) wrote:
> To say the minumum yor reply does not help in nothing.
>
> Who cares about privacy on my own company Intranet ?
1. I don't believe you specified this was a company intranet, but you may
have.
2. Generally it's a good idea to get things ri
> -Original Message-
> From: Saci [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 15 July 2002 12:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Does not work
>
>
> To say the minumum yor reply does not help in nothing.
>
> Who cares about priv
To say the minumum yor reply does not help in nothing.
Who cares about privacy on my own company Intranet ?
"Alberto Serra" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ðÒÉ×ÅÔ!
>
> Saci wrote:
> > // HTTP_REFERER as a feature. In short, it cannot rea
Pffft you can't trust Java, JavaScript or anything on the server side at
all. Since it's set by the browser (client) itself, the best you can do is
test for it, and provide a fall back option.
For the bulk of users, this will be okay, because they're on IE. What you
need to be carefull of is wh
ðÒÉ×ÅÔ!
Saci wrote:
> // HTTP_REFERER as a feature. In short, it cannot really be trusted.
>
> Anybody know how to do that using JAva history with PHP together , or any
> other methode that works and can be trusted.
Thank god no method can be trusted :) History even less the the
referrer. Jus
// HTTP_REFERER as a feature. In short, it cannot really be trusted.
Anybody know how to do that using JAva history with PHP together , or any
other methode that works and can be trusted.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
REFERER as a feature. In
short, it cannot really be trusted.
> -Original Message-
> From: Saci [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 14, 2002 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Does not work
>
>
> I tried this simple code
>
>
&g
I tried this simple code
Page refered by
';
echo $_SERVER['HTTP_REFERER'].'';
?>
and I receive blank reply even if referenced from a link from other site.
What am i doing wrong ? Or perhaps my server does not have referer enabled?
--
PHP General Mailing List (http://www.php.net/)
To u
>I forgot to point out another disadvantage of turning on register_globals
>apart from that of security is that when you are sending a page with a
>form to the same page, e.g:
>
>
>
>there is a tendency to lose info.. E.g.
>If you are sending text separated by spaces you only manage to
>send the
Not a problem! I can make some adjustment to the $user_detail['']
(session_id()) to make it work as $_SESSION[''].
Scott
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Wednesday, June 26, 2002, at 02:37 PM, Scott Fletcher wrote:
>
> > I did
Not a problem, I can make some code modification. Sometime it is better to
do it now and not have so much headache later on when more features are
being added.
Scott
"Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I forgot to point
I forgot to point out another disadvantage of turning on register_globals
apart from that of security is that when you are sending a page with a
form to the same page, e.g:
there is a tendency to lose info.. E.g.
If you are sending text separated by spaces you only manage to
send the first wor
Um, alright, I'll just leave the code in the hyperlink the way it is. It is
not possible to use the "" or post of some sort for the hyperlink.
"" will work with the submit button where we can use post or hidden.
Hyperlink meant words or sentences that have underline underneath it, when
clicked wi
On Wednesday, June 26, 2002, at 02:37 PM, Scott Fletcher wrote:
> I didn't know that. Thanks for the info. I think it would be best
> that I
> not use php.ini.
On the contrary, I think it would be best if you read through it and
read about it at http://www.php.net/manual/en/configuration.p
On Wednesday, June 26, 2002, at 02:56 PM, Scott Fletcher wrote:
> I tried that and it worked. I have
> one question, what about the hyperlink? People will see the option in
> the
> hyperlink. You know. Is there a way around it to hid that in the
> hyperlink?
If by "hyperlink" you mean the
There is no feasable way to "hide" data being submitted to your
website. Anything that a user's browser can send, the user can
telnet to port 80 of your server and "spoof".
You can try POSTing data, which will not appear in the URL,
but dont even waste time trying to "hide" submitted data,
rathe
Hi Erik!
This is my 2nd posting, not sure what happened to my first one. Sorry about
not seeing your previous posting before. Windows crashed on me. My fault.
I didn't know we can use php.ini in UNIX or Linux. Cool! Haven't been
using it on UNIX for a long time. I think I can leave it out f
I didn't know that. Thanks for the info. I think it would be best that I
not use php.ini.
I can write the script to register the variable. What would be a demo
script that would work? I'm having a little trouble understanding that on
the php.net website. Most of the script that use global va
On Wednesday, June 26, 2002, at 02:13 PM, Scott Fletcher wrote:
> I'm using UNIX, not windows, so there is no php.ini in UNIX.
Sorry, don't take offense if I ask if you've been living under a rock --
I only use Linux, and there is definitely a php.ini file that you use.
I put mine in /usr/l
[snip]
I'm using UNIX, not windows, so there is no php.ini in UNIX.
[/snip]
Look here /etc/apache/php.ini-dist or /etc/apache/php.ini. There is an ini
file for PHP, and you may have to rename php.ini-dist to php.ini. Once done,
look for
; You should do your best to write your scripts so that the
I'm using UNIX, not windows, so there is no php.ini in UNIX.
I only use the "./configure" command which is
-- snip --
./configure
--with-apache=../apache_1.3.26
--with-ibm-db2=/usr/lpp/db2_06_01
--with-openssl=../openssl-0.9.6d
--with-mcrypt=../../lib
--without-mysql
--with-config-file-path
[snip]
When I use the hyperlink, "test.php?data=yes" and I go to this page,
test.php but there is no data in this variable, $data. So, the web page I
have, most of them are all thrown off becuase of this. I use PHP version
4.2.1. Is there a bug in this PHP version??? Or some changes in PHP tha
On Wednesday, June 26, 2002, at 01:20 PM, Scott Fletcher wrote:
> When I use the hyperlink, "test.php?data=yes" and I go to this page,
> test.php but there is no data in this variable, $data. So, the web
> page I
> have, most of them are all thrown off becuase of this. I use PHP
> version
>
Hi! I downloaded the newer version of PHP and compiled it. The php is
working great! But there is one problem.
When I use the hyperlink, "test.php?data=yes" and I go to this page,
test.php but there is no data in this variable, $data. So, the web page I
have, most of them are all thrown off b
38 matches
Mail list logo