Well here is the situation.
1. Jack opens record A to change an entry.
2. Jill opens record A to change an entry.
3. Jack finishes his changes and saves the data.
4. Jill finishes her changes and saves the data.
Jill just over wrote whatever Jack did. The only method I could think of to
prevent
> 1. Jack opens record A to change an entry.
> 2. Jill opens record A to change an entry.
> 3. Jack finishes his changes and saves the data.
> 4. Jill finishes her changes and saves the data.
Well, if you only update the fields that changed then who cares? The
fields that Jill changes are going
> Well, if you only update the fields that changed then who cares? The
> fields that Jill changes are going to overwrites Jack's changes anyway.
> Locking the record and having Jack finish before Jill can start isn't
> going to change the end result which would be that Jill's changes are
> going
> OK that example is poor I admit...but do you see the reasoning behind
> locking? If a lock was in place Jill would't be able to edit her post
> because she would get a message stating that Admin Jack was allready editing
> it.
GET_LOCK has no way of conveying that information. You would need
Hmmm...that is true
It would still prevent Jill from editing. I'll probably add a locked_by
field to convey the user info.
For Dead Locks:
A. Browser Closed Before Finishing Edit:
From what I have read Get_Lock locks are automatically released
when connections terminate. I'm
I'm running php 4.0.6.7rc2-3 with freetds 0.52-3 support on a debian linux
server. This is a winning combination to work with MSSQL2000. However
I'm running into some odd behavior when performing multiple queries on the
same connection (link) identifier.
I create a connection to the dbms and se
> A. Browser Closed Before Finishing Edit:
> From what I have read Get_Lock locks are automatically released
> when connections terminate. I'm new to this so am unsure if MySQL will
> terminate the connection when the browser is closed. If not does MySQL
> disconnect users after a
So once a user logs into a MySQL Server via PHP, if they don't logout, they
stay logged in forever???
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > A. Browser Closed Before Finishing Edit:
> > From what I have read Get_Lock
> So once a user logs into a MySQL Server via PHP, if they don't logout, they
> stay logged in forever???
Depends how you write your application. If you are using persistent
connections you log in and out of mysql durig a single request. If you
use persistent connections you log in once and
On 06-Oct-2001 Chip wrote:
>> Well, if you only update the fields that changed then who cares? The
>> fields that Jill changes are going to overwrites Jack's changes anyway.
>> Locking the record and having Jack finish before Jill can start isn't
>> going to change the end result which would be
I don't think get_lock will work here anyway since the only way to
use it is with persistent connections, and there's no guarantee the
person will get the same connection with the second request, he
probably won't. without persistent connections the lock will die when
the script finishes.
On Fri,
Hello everyone,
Knowing how much most of you like using double quotes I though to test
it a bit.
I was writing an article for PHPBeginner.com and made this interesting
proven conclusion:
Concatenating single quotes is faster unless you concatenate them more
than two.
Then game changes into the
When you write a php script to access a database,edit records, etc., is the
entire thing 1 giant PHP page or a bunch of different ones? If it can be
written both ways, which is the better way to do it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
> When you write a php script to access a database,edit
> records, etc., is the entire thing 1 giant PHP page or a
> bunch of different ones?
A giant one
If it can be written both ways,
> which is the better way to do it?
Depends how big is your 'giant'.
It is all about your coding style
> When you write a php script to access a database,edit records,
> etc., is the
> entire thing 1 giant PHP page or a bunch of different ones? If it can be
> written both ways, which is the better way to do it?
Using seperate files eases code maintenance and prevents parsing of
redundant code.
-
On 06-Oct-2001 Chip wrote:
> When you write a php script to access a database,edit records, etc., is the
> entire thing 1 giant PHP page or a bunch of different ones? If it can be
> written both ways, which is the better way to do it?
>
I tend to write based on function:
userland.php
adminlan
http://www.paphe.com/php/tutorials/230101.php
an encryption class
=
*
Know more about me:
http://www.geocities.com/mimodit
*
__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick an
My Database functions are all wrapped up in an easy to use class. The
methods look something like this:
$db = new DB;
$q = "SELECT * FROM ATable";
$db->query($q);
while ($db->next_record()) {
$db->p("SomethingOrOther");
}
For the PHP script itself, the content management system I wrote up
Dear Friend,
Are you looking for your first Internet business...or your last?
If it's your first, I bet you'd like it to be your last! Your last
would be the one that allows you to achieve your full time
income on a part time basis, is stable, will be there for your
heirs, and give you the
So, send a link?
Or, convince Yahoo not to strip out the attachment?
Or convince your friend to use a different way to get this email?
There really isn't anything PHP can do to fix the problem of Yahoo email
filters.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL P
You want to look into MySQL's LIMIT clause. There are quite a few scripts
as examples in the code archives:
http://php.net/links.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vol
You're better off using:
if (isset($xx)) instead, but you can change error_reporting
Read php.ini
Or, http://php.net/error_reporting
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vo
http://php.net/imap/
You may want to read all the other pages that are parallel with that one.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.
> >OK, true. But, this is necessary if you want PHP to automatically
> >connect to different DBs.
> >A plus to portability and a minus to... (to what?)
The first minus is to performance -- You route through more and more layers
of functions as you add databases and functionality.
The next minus
> $cmd="mysqldump .. > somefile.sql";
>
> if( !fopen("somefile.sql","r") ) { print error message };
>
> $cmd is correct... I've copy-pasted it tons of times in the command shell
Were you the "nobody" user when you did that? It really doesn't count for
much if you weren't, cuz PHP runs as "no
You should call mt_srand((double) microtime() * 100) once, and only
once, in any given script.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmus
Try the suggestions for dealing with crashes at http://bugs.php.net
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Orig
> I am running php on apacheon linux. Right now my php scripts
> access the data as the user that is running apache. I would like
> them to access the data as the user who is the owner of the script.
> Can this be done? How? Is this a good idea (IE: are there hiden
> programs to watch out for)
What I want to do is to open a new browser page after some data is entered in a form.
I have a $php_self that enables $high_value and $low_value to become set and the code
snip comes after the end of the form. From reading a help book and looking at the
on-line manual, I think I need to send
For me this really a bug in php compilation with
oracle 8.1.7 within apache 1.3.20 :
The problem occurs with php 4.0.5, php4.0.6 but also
with latest snapshot...
For Php ->
./configure --with-apache=/root/apache_1.3.20 --with-mysql --enable-ftp --en
able-inline-optimization --disable-debug --wit
Use JavaScript within PHP.
If you want to open a new browser window, add the following to the script
window.open('url','winname','window features');" ;
?>
look up the 'open' method in JavaScript.
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL
Hello again
I had a problem:
1. I was able to open one certain web page with
any normal browser and got proper output
2. I was able to open the same page with cURL
and got the same proper output
3. When I used fopen("http://server.com/","r")
or file("http://server.com","r")
I got
Again, is this patch against some kind of libc problem?
Because standard 8.1.7 does not support glibc 2.2.x, only
2.1.(x|3) ?
But there is little from php that can be done I think.
For testing try to build a cgi module and see if that works. If
so IMHO its not a php problem.
I always took dsit
On Fri, 5 Oct 2001 13:54, ReDucTor wrote:
> - Original Message -
> From: "David Robley" <[EMAIL PROTECTED]>
> To: "ReDucTor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, October 05, 2001 2:21 PM
> Subject: Re: [PHP] System(), exec(), Passthru(), etc
>
> > On Fri, 5 Oct 2001 1
"Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> on
05/10/2001 01:43:57
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject: RE: [PHP] PHP is a Bloated Kludge, discuss!
Firstly let me say that you lot have been great. Lots of useful stuff and
no flame, big Respect! Sorry
On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote:
> hi all,
>
> I've been asked to do some work on some servers where php can only run
> as cgi. Unfortunately it seems that php has a bug which means that
>
> #!/usr/local/bin/php
>
> gets printed out at the top of each page if I do this.
>
>
On Fri, 5 Oct 2001, David Robley wrote:
> On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote:
> > hi all,
> >
> > I've been asked to do some work on some servers where php can only run
> > as cgi. Unfortunately it seems that php has a bug which means that
> >
> > #!/usr/local/bin/php
> >
> >
Budweiser
if ( A != 10 or A != 9 )
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send blank email to [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
Hi,
is there a easier way to add zeros to date than the script below? (ie to get
20011005 instead of 2001105). I wrote a long string replace. But it seems
kind of unecessary to me. Is it?
$date_time_array = getdate (time());
$date = $date_time_array[ "mday"];
$month = $date_time_a
Use the date-function. See help for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
if you can't do it with date() use
substr("0".$month, -2, 2)
On Friday 05 October 2001 09:44, Daniel Alsén wrote:
> Hi,
>
> is there a easier way to add zeros to date than the script below? (ie to
> get 20011005 instead of 2001105). I wrote a long string repl
D]...
> Hi,
>
> is there a easier way to add zeros to date than the script below? (ie to
get
> 20011005 instead of 2001105). I wrote a long string replace. But it seems
> kind of unecessary to me. Is it?
>
>
> $date_time_array = getdate (time());
> $date = $date_time_arra
>
Sent: Friday, October 05, 2001 12:44 PM
Subject: [PHP] Adding zeros to date
> Hi,
>
> is there a easier way to add zeros to date than the script below? (ie to
get
> 20011005 instead of 2001105). I wrote a long string replace. But it seems
> kind of unecessary to me. Is it?
>
>
Thanks for your response,
Yes it is a patch for glibc greater 2.1.3 (for me
it's 2.2).
The problem doesn't appear with the cgi compilation...
Does that mean I can't install php module with Redhat 7.1
for example, or is there something to do ? But I think I
heard about people installing oci8+php4
Hi
When I use the followin code snippet whe webbrowser tells me that
the page is empty ...
$exif = @ read_exif_data($pictureroot . $PATH_INFO);
if ($exif) {
while(list($k,$v)=each($exif)) {
if ($k != 'Thumbnail' && !ereg('Raw', $k)) {
echo "$k: $v\n";
}
}
}
This happens not on
On Fri, Oct 05, 2001 at 01:10:17PM +0200, Jerome Ponsin wrote :
> Yes it is a patch for glibc greater 2.1.3 (for me
> it's 2.2).
>
> The problem doesn't appear with the cgi compilation...
> Does that mean I can't install php module with Redhat 7.1
> for example, or is there something to do ?
No
Hi Folks,
I'm after a quick and easy way to edit tables in a mySQL database, much like
you would in ms excel. I'm thinking I'll do it with forms...
Is there a non-commerical solution in existance already?
Cheers,
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
Hi
Take a look at phpMyAdmin at :
http://phpwizard.net/projects/phpMyAdmin/
--
phpMyAdmin is intended to handle the adminstration of MySQL over the web.
Currently it can:
- create and drop databases
- create, copy, drop and alter tables
- delete, edit and add fields
- execute any SQL-statemen
Hi
For some reasons I need to execute a Perl-CGI from within PHP.
I tried it that way:
$command = "C:\\Perl\\bin\\Perl.exe ".$basedir."myperl.pl";
$result = @passthru($command, $status);
now my Problem: the perl prints its output immidiatly to the browser and $result is
empty after the execution
Tim wrote:
> PHP works quite nicely on large, modular projects. :)
That sound good ! :)
> Where I work we've used an environment that's a synergy of pure HTML
> templates + a servlet/bean infrastructure (implemented in PHP though)
> with great success.
> I have a case-study document that I'm in
http://www.phpwizard.net/projects/phpMyAdmin/
-Stewart
-Original Message-
From: -:-Doigy-:- [mailto:[EMAIL PROTECTED]]
Sent: 05 October 2001 12:34
To: [EMAIL PROTECTED]
Subject: [PHP] Database editor
Hi Folks,
I'm after a quick and easy way to edit tables in a mySQL database, much lik
Hi
For some reasons I need to execute a Perl-CGI from within PHP.
I tried it that way:
$command = "C:\\Perl\\bin\\Perl.exe ".$basedir."myperl.pl";
$result = @passthru($command, $status);
now my Problem: the perl prints its output immidiatly to the browser and $result is
empty after the execution
Hi !
I'm having troubles with the random numbers. When I create a number witm mt_rand()
I always get the same number on my local server. I need this stuff to ranomly display
some text, and I'd like to have another value of the random number each time the
page is refreshed.
Thanks
Nikola
--
I have yet another PHP question! =)
How do i open a window in PHP and how do i insert information in it?
I have a tables with a http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROT
[EMAIL PROTECTED] (Nikola Veber) wrote:
> Hi !
> I'm having troubles with the random numbers. When I create a number witm mt_rand()
> I always get the same number on my local server. I need this stuff to ranomly
>display
> some text, and I'd like to have another value of the random number
From: Johan Vikerskog (EMP) <[EMAIL PROTECTED]>
Date: Fri, Oct 05, 2001 at 01:57:13PM +0200
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Window open.
> I have yet another PHP question! =)
>
> How do i open a window in PHP and how do i insert information in it?
> I have a tables with a display
> I have yet another PHP question! =)
>
> How do i open a window in PHP and how do i insert information in it?
Actually you have a javascript question!
check out window.open() in the javascript docs
Regards
jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763
Hi!
I am trying to embed a file into my html email that I
want to send my friend on Yahoo. I have uploaded the
flash file (.swf) on my server. If I try to embed the
file as html and send...as an email...nothin can be
seen...
Is it because... yahoo filtersI am using Php to
send it
Thanx
If you are getting "#!/usr/local/bin/php" output to the screen, then the
cgi scripts do no need the line in them to execute properly. Do you have
access to the scripts? Try removing this line altogether. What happens?
- Devon
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (James Peter Gre
It seems I didn't read the descrition of 'exec()' good enough when I read it
the first time :(
Now it works, thank you
From: "Krzysztof Kocjan" <[EMAIL PROTECTED]>
To: "Stefan Rusterholz" <[EMAIL PROTECTED]>
> See exec() and system functions in PHP
>
> Krzysztof
>
> Stefan Rusterholz wrote:
> >
>
Thank you all very much!
Tim Sawyer wrote:
> I want to open a popup window under php control. So lets say I have an
> if statement which if true opens the window.
>
> if ($something) {
>JavaScript:window.open("test.php",blah...);
> }
>
> Guess I'm saying that I want to call a Javascript f
Maybe:
> First some basic questions:
> (1) Can you create an unitialised array ?
$an_array = array();
> (2) Can an unitinialised array be a class member variable ?
>
> My problem is this:
>
> I have a class called "user" - which represents one row in a mySQL table
> (also called user)
>
class us
all ideas are very welcomed !!
/nicke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
the one and only mysql admin tool for win32 is mysqlfront. it can be
downloaded from: http://www.mysqlfront.de.
/nicke
"-:-Doigy-:-" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Folks,
>
> I'm after a quick and easy way to edit tables in a mySQL database
You might also want to try
http://sourceforge.net/projects/phpmyadmin
That is where you will find the newest version of the program.
Thank You
Brian Paulson
Sr. Web Developer
The Pueblo Chieftain Online
[EMAIL PROTECTED]
http://www.chieftain.com
> -Original Message-
> From: Girish Nat
Hi,
Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I want
to use it with more than just MySQL (e.g. Postgres and SQLServer)
Cheers,
Jaxon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Here's what I got from the mandrake security mailing list so far:
This is strange. I was just going to write a mail to this list about
this. it seems that /etc/shadow accepts both crypt passwords (the short
passwd) and MD5 passwords. (34 characters with $ and slashes does seem
to me like md5).
Hi
I just a PHP "hobbiest" trying to build a points calculating system for
another hobby, please bear with me.
I need to build a multidimensional array from a html form
the array would look like:
$needed_data = array (
array (id = $member_id,
points = $position ),
Does anybody have an easy way to crypt and decrypt a string? I see the Mcrypt
Encryption module but thats a little more gung-ho than I'm looking for. I'm not
trying to encrypt sensitive data rather I'm more trying obfuscate it a variable for a
hidden tag.
Thought I remember seeing something
Hi,
I have a directory with an index.php script so that the url is something
along the lines of http://www.mydomain.com/search/ .. Now following the
same logic I wanted to write another script but not bother creating
another directory so I wrote my script called test.php and then created
a sy
Hi !
I would like to add an option for reading e-mail from the pop3 server to my site. Is
this
possible at all ?
Thanks
Nikola
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list a
Actually, there is a unix-like fork() function in an extension. exec() will
execute another process, but it isn't really a fork().
Look at the pcntl extension and check out pcntl_fork(). I've been working
with it for a few days and it works pretty well. It's still marked
EXPERIMENTAL, so don
"Jaxon" <[EMAIL PROTECTED]> wrote:
> Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I
want
> to use it with more than just MySQL (e.g. Postgres and SQLServer)
Not ODBC, but phpMyAdmin has a PostgreSQL cousin, phpPgAdmin. You used to
be able to find it at www.greatbridge.org
Here are some simple xor encoding functions that I wrote. This will keep
the average joe from peaking at your data.
function decode($data){
$data = base64_decode($data);
/* XOR data */
for($i = 0; $i < strlen($data); $i++){
$data[$i] = ~ $data[$i];
I am running php on apacheon linux. Right now my php scripts
access the data as the user that is running apache. I would like
them to access the data as the user who is the owner of the script.
Can this be done? How? Is this a good idea (IE: are there hiden
programs to watch out for)
On Friday 05 October 2001 18:10, you wrote:
> Use crypt()/decrypt() couple.
>
> Andrey Hristov
> IcyGEN Corporation
> BUILDING SOLUTIONS
> http://www.icygen.com
>
> On Friday 05 October 2001 17:53, you wrote:
> > Here are some simple xor encoding functions that I wrote. This will keep
> > the aver
From: "Nathan" <[EMAIL PROTECTED]>
> Here are some simple xor encoding functions that I wrote. This will keep
> the average joe from peaking at your data.
Exactly what I was looking for.
Thanks
Joel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I know that enclosing form field names in [] makes them available as an
array
if the form were dynamically built like
PERSONS NAME (from database via $member_id )
next PERSONS NAME (from database via $member_id )
next PERSONS NAME (from database via $member_id )
etc
etc
I "think" I w
Hello
I've just joined the list and sending this message as a test :-)
I'm 'very' new to PHP and therefore here to learn ... I hope that's ok?
Mick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
All,
I am putting together a simple upload program where an
HTML form calls a php script passing a file which is
then used to upload. I am running this locally
currently, prior to rolling out to a test server.
My problem is this. The variable $filename I am
passing from the form to the php scrip
Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool
someone mentioned is not the one and only Win32 tool for this :)
FreeMason will let you edit tables and such. Step up to Mascon to get
things like administrative editing.
http://www.scibit.com/Products/Software/Utils/M
> On Friday 05 October 2001 18:10, you wrote:
> > Use crypt()/decrypt() couple.
> >
> > Andrey Hristov
>From the PHP doumentation on crypt:
There is no decrypt function, since crypt() uses a one-way algorithm." so
that wouldn't have worked.
Joel
--
PHP General Mailing List (http://www.
Thank Richard.
So far, I just punted. My site runs on a dedicated box and doesn't
have to service a lot of users so I just wrote a one line C program
to print a single value using a specified format (default is %.4e)
and use exec() to call it.
printe [format] value
Here's how I encapsula
$imagefile contains the name of the file in the temp dir. So the name is some
mess like phpx . If you want the file you do copy() or something other.
After the script is done the file is deleted. I prefer using $HTTP_POST_VARS
do var_dump($HTTP_POST_VARS) to see debug info.
Andrey Hristov
I
I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying
to find an elegant solution to paging x number of records at a time through
a result set returned to a php page from MySQL.
Any ideas?
TIA,
Bill
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
ooops , sorry
On Friday 05 October 2001 18:48, you wrote:
> > On Friday 05 October 2001 18:10, you wrote:
> > > Use crypt()/decrypt() couple.
> > >
> > > Andrey Hristov
>
> From the PHP doumentation on crypt:
>
> There is no decrypt function, since crypt() uses a one-way algorithm." so
> that woul
select * from some_table Limit 10,30;
syntaxis
limit ,
Andrey Hristov
IcyGEN Corporation
Building Solutions
On Friday 05 October 2001 18:52, you wrote:
> I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying
> to find an elegant solution to paging x number of records at a t
select first.*,second.*,third.* from first left join second
using(for_key_first_second) left join third using(for_key_2_3);
On Friday 05 October 2001 18:50, you wrote:
> Hello,
>
> > you can always reset the auto_increment value (I think that is as simlple
>
> as
>
> > "set insert_id=1;" but you
there are tutorials posted all over the inet, and all over this news group.
take a look around.
Ive left out the details and stuck with the basics, modify as needed, you'll
need to :)
if (!isset($HOW_MANY))
$HOW_MANY = 10;
if (!isset($position))
$position = 0;
$prev = $position -
- Original Message -
From: "Andrey Hristov" <[EMAIL PROTECTED]>
> select * from some_table Limit 10,30;
Something to point out, in some of the older versions of MySQL, Offset
starts counting at 0, while in the newer versions, it starts counting at 1.
You'll want to check the documentat
Hello
After several days of reading various articles on the web I've 'finally' got
a basic database working. The database is for a massive collection of my
vinyl records. Therefore I would like to limit the results to about 20 per
page and move forward/backward with 'next' and 'previous' links.
Question: Does the pagination method using mysql_data_seek method pull in
the entire result set, only to be used to display x number of rows?
"Joel Ricker" <[EMAIL PROTECTED]> wrote in message
00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms">news:00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms...
>
Hey Mick,
of course its ok...we've all done it that way (cept a few whose names you'll
learn soon enough ;-) )
a few suggestions:
1. www.php.net has most everything you could ask for...also, if you have a
function you want to learn more about, type it like this:
http://www.php.net/function_name (
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool
> someone mentioned is not the one and only Win32 tool for this :)
>
> FreeMason will let you edit tables and such. Step up to Mascon to get
> things like adm
After getting the PHP source from the CVS and compiling I tested with
phpinfo(). The result was amazing :
===cutted=
http://www.php.net/";>PHP Version 4.0.8-dev
===cutted=
--
Andrey Hristov
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
--
PHP
I've seen documentation on this somewhere, but now I can't remember
where.
I want to move away from
file.php?var1=1&var2=2&var3=3
...and go to
file.php/1/2/3
...and still be able to do what I need to be done (extract the
variables and use them as I need them.)
Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
since Apache fills that in with the script it executes. Or you could
simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
end of $PHP_SELF.
-Rasmus
On Fri, 5 Oct 2001, Ashley M. Kirchner wrote:
>
>
As a couple others posted, if you want it to be PHP, then phpMyAdmin,
http://sourceforge.net/projects/phpmyadmin.
-Original Message-
From: MrBaseball34 [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Database editor
In article <
Rasmus Lerdorf wrote:
> Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though
> since Apache fills that in with the script it executes. Or you could
> simply look at $PATH_INFO and strip the contents of $PATH_INFO from the
> end of $PHP_SELF.
Aha! Good. Now, does anyo
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> As a couple others posted, if you want it to be PHP, then phpMyAdmin,
> http://sourceforge.net/projects/phpmyadmin.
>
I just found that one...thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
1 - 100 of 143 matches
Mail list logo