));
TR> if(empty($key){
TR> $key = $char;//first result set key
TR> else{
TR> if($key != $chat){
TR> echo '';
TR> $key = $char;
TR> }
TR> }
TR> //rest of loop
TR> }
TR> --
TR> regards,
TR> Tom
Stupid keyboard :)
$key =
wise echo is a tiny bit faster.
You can do stuff like this
if(isset($_GET['name'] && print('DEBUG: received name set to
'.$_GET['name']."\n")){
//normal processing here
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
doesn't, and
JH> I have no idea what happened.
JH> Any clues and hints are much appreciated.
JH> /Jesper
You probably have to put the full path to ls
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"item"=>"book","price"=>14.95, "tax"=>.065)
);
function getTax($cost,$taxrate){
return $cost * $taxrate;
}
echo '';
echo 'Item
numberItemCostTaxTotal';
$total = 0;
foreach($items as $key=>$item){
echo '';
echo
Hi,
Saturday, November 22, 2003, 4:55:05 AM, you wrote:
WvV> David T-G wrote:
WvV> Guys, Jay asked a serious question (I think). Anyways, let's take this one
WvV> step further to something that I've really been wondering about.
WvV> (.. long bunch of HTML ..)
WvV>
Hi,
Saturday, November 22, 2003, 1:23:36 AM, you wrote:
JH> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message
JH> news:[EMAIL PROTECTED]
JH> No, I've tried that along with all other obvious path stuff.
JH> /Jesper
Then there must be some kind of restrictio
ng wrong?
M> Thank you for any help on that,
M> Merlin
If on linux you may need to generate the right files with something like:
localedef -ci de_DE -f ISO_8859-1:1987 de_DE
Then restart apache as it caches locale info I think
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n>
son> mail2web - Check your email from the web at
son> http://mail2web.com/ .
son> --
son> PHP General Mailing List (http://www.php.net/)
son> To unsubscribe, visit: http://www.php.net/unsub.php
Give the fu
; $redirect gets sent to the screen and then rest of the page is
r> displayed. I know the code block is getting executed, but I have no
r> idea WHY the header() function is not doing its job.
r> Any thoughts? Please CC me on the post since I am on the digest.
r> Thanks
Try addi
yrow["id"],
B> $myrow["teama"],$myrow["teamb"]);
Just stick a V between as in ..>%s V %s <...
printf will ignore anything without a % before it and just copy it to the output
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
le, it's just binary data.
G> Thanks,
G> Galen
Do the get sizes while it is still as a file after upload then save the size
info with the file in the db or use unpack to get the size from the raw data, it
is usually in the header somewhere.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
**
ijc>
ijc> "
method="post">>
ijc>
ijc> >
ijc>
ijc> Teacher
ijc>
ijc>
ijc> Name:
ijc> >
ijc>
ijc>
ijc> Contact No:
ijc> name="tutor_contact">
ijc>
ijc>
ijc
t means that free type fonts
c> support is installed correctly? or please correct me if im wrong.
Depending on where gd came from you may not be able to create gif files only
read them. Try generating a png or jpeg
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e and
RK> if so how.
RK> I am stumped on this one.
RK> select * from table where field1= '$this' and field2 = '$that' and field3 =
RK> 'a and b'
probably like:
select * from table where field1= '$this' and field2 = '$that' and (fie
Hello everyone,
I looked through the FAQs and documentation and I cannot find this
anywhere:
We have a new Redhat server with this kernal: 2.4.20-20.9smp #1 SMP
We used redhat itself to install apache and php (I used to always do it by
hand)
apache: Server version: Apache/2.0.40
PHP Version 4.2.2
this
$last_id =0;
if(isset($_SESSION['last_id'])) $last_id = $_SESSION['last_id'];
$sql = "SELECT * FROM table WHERE id > '$last_id' order by id";
//do query
$x =0
while(get_reults && $x < 10){
//do whatever
$x++;
}
$_SESSION['last_id'] = id;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Wednesday, December 17, 2003, 12:32:25 PM, you wrote:
ML> Thanks for the info, Tom. That explains it. I can't really run the query
ML> again because of time and the size of the database. There is currently over
ML> 200,000,000 records in some of the tables. The subsets I get ar
tenv('PATH');
$newpath = $newpath.':'.$current_path;
putenv('PATH='.$new_path);
Now any exec shells will get the new path
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can't think of
RV> anything that's your own fault.
RV> -- Quote Of The Day --
from inside a chroot jail you will never get mail to work, try using one of the
many classes that are around to do SMTP mailing.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
c_message=$enc_message
//next page
$enc = new encrypt_class();
$serial = $enc->decode($_GET['enc_message']);
$message = unserialize($serial);
print_r($message);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
u can start with
#!/usr/bin/php
= 0; $s-- ) {
$oldname = ($s > 0)? $filename.$s : $filename;
$newname = $filename.($s+1);
if(file_exists($oldname)){
rename($oldname,$newname);
}
}
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed locally on the client and not passed when you press submit,
there is nothing wrong with using both if id is needed like
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= 'UserID='.$UserID;
$query_string .= '&Password=.stripslashes($Password);
$query_string .= '&Email=.stripslashes($Email);
$query_string .= '&FName='.stripslashes($FName);
$query_string .= '&LName='.stripslashes($LName);
$query_string .= '&ErrorMsg='.$ErrorMsg;
$redirectStr .= urlencode($query_string);
header("Location: $redirectStr");
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e);
RK> $fpData = explode(":", $fpLine);
RK> $fpData[0] = trim($fpData[0]);
RK> echo $fpData[0];
RK> }
RK> And no I am just reading a .htpasswd file to get the user name out of
RK> it
should be while(!eof.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Checked by AVG anti-virus system (http://www.grisoft.com).
DC> Version: 6.0.556 / Virus Database: 348 - Release Date: 26/12/2003
add
ORDER BY number DESC
to your mysql query
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the last character?
RA> Thanks,
RA> -Ryan
I do it like this:
$sep = (PHP_OS == 'Windows')? '\':'/';
$template_path .= (substr($template_path,-1) == $sep)? '':$sep;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1) == $sep)) $template_path .= $sep;
Not in single quotes I thought ..could be wrong though :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it:
TL> ex: count($_POST['test[]']);
TL> That doesn't even look right. Anyone understand what I'm tryin to get
TL> at? Any help would be great.
TL> Best Regards,
TL> --
TL> Tyler Longren
TL> J.D. Web Services, L.C.
try $_POST['test'][]
or
options.
GCN> Command Line Example:
GCN> echo "abcdefghijklmnopqrstuvwxyz" | mcrypt -Fb -m ecb -a tripledes |
GCN> encode-base64
GCN> echo "" | decode-base64 | mcrypt -dFb -m ecb -a tripledes
GCN> I would appreciate any comments or suggestions.
GCN> Respectfully,
GCN> Gary
try setting the iv to all 0's
$iv = 0;
$iv = pack("a".mcrypt_enc_get_iv_size($td),$iv);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Wednesday, January 7, 2004, 8:54:16 AM, you wrote:
GCN> Tom,
GCN> I appreciate the suggestion, but even after setting the iv to zero
GCN> within the php code and including the --noiv option within the command
GCN> line; it still does not produce the same base64 encoded string und
putenv('TZ=America/Chicago');
break;
case 'ukdomain.com':
putenv('TZ=GB');
break;
default:
putenv('TZ=Australia/Brisbane'
to only the specified
directory, end with a slash. For example: "open_basedir = /dir/incl/"
php manual link:
http://www.zend.com/manual/features.safe-mode.php
Tom Dangler
>>> "Matt Grimm" <[EMAIL PROTECTED]> 01/08/04 07:16PM >>>
Can anyone cla
end:
$year = 2004;
$start = strtotime($year.'-1-1');
$tuesday = strtotime('1st tuesday', $start);
while($year == 2004){
echo date('d/m/Y',$tuesday).'';
$tuesday += (7*24)*60*60;
$year = intval(date('Y',$tuesday))
quot;object passed";
}
}
test($ref);
$ref =& new object;
test($ref);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
MH> prob. a stupid question,
MH> thanks a lot,
MH> Matt
if you are using echo do
echo '';
if outside of php just add the quotes
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mailto:[EMAIL PROTECTED]
If you run php as cgi you can try putting the inifile in the same directory as
the php.exe and it will probably use that one first. (I do this with
the cli version haven't tried it with cgi)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
28 156
226 128 157
for the 2 quotes
here is a bit of code to fix them and a few others, I would be
interested if anyone knew the complete set of these weirdos :)
$crap =
array(chr(226).chr(128).chr(147),chr(226).chr(128).chr(156),chr(226).chr(128).chr(157),chr(226).chr(128).chr(153));
$clean = arra
rested if anyone knew the complete set of these weirdos :)
TR> $crap =
TR>
array(chr(226).chr(128).chr(147),chr(226).chr(128).chr(156),chr(226).chr(128).chr(157),chr(226).chr(128).chr(153));
TR> $clean = array('-','"','"',"'");
T
g any value, it returns 'true'.
SH> what's wrong with my code?
try
if(empty($val))
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
similar - any thoughts? I'm sure someone has had to do this
TT> before - am I on the right track or should I be looking elsewhere?
TT> Thanks
TT> -Tim
Probably the simplest way is to install the mysql odbc driver in
windows then just export from access, it should create the table
automatic
t; else
JP> {
JP> echo "EA is NOT EQUAL to NFH see $EA";
JP> }
?>>
JP> Thanks in advance.
JP> Jonathan Pitcher
Try swapping positions
if("NFH" == $EA)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d to my computer / configuration...
VD> current config
VD> PHP 4.3.4
VD> Win 2000
VD> PEAR
VD> php in fo seems correct about mcrypt
It seems they changed the name of the deinit function in windows, use
mcrypt_generic_end($td);
instead of
mcrypt_generic_deinit($td);
--
regards
Hi,
Thursday, January 22, 2004, 2:16:22 AM, you wrote:
scb> Hi Tom, Vincent, list,
scb> Tom, your response caused some confusion here. I have mcrypt running on win32
scb> (Win98, Apache 1.3.29 & 2.0.48, PHP 4.3.4 & PHP 5beta3) and am in fact using
scb> mcrypt_generic_dei
erver, and maybe its php101... but I
CSA> could really use some help.
CSA> Thanks,
CSA> Carolina
You probably need to use
$message_body = "Nombre: ".$_POST['f_nombre']."\n"
for all the values submitted via the form.
I would guess that register_globals is set to
off (the default these days). If they are not posted then use
$_GET['f_nombre'] and if not sure use $_REQUEST['f_nombre']
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the stream without having to save it to a file first if
that is what is worrying you.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Friday, January 23, 2004, 3:18:06 PM, you wrote:
KW> This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote:
>> php can output the stream without having to save it to a file first if
>> that is what is worrying you.
KW> That was sorta my concern, but not
e
W>
W> Will
Get the dll from here and try (just the mycrypt.dll, don't use the
php_mycrypt.dll it is missing a bit)
http://ftp.proventum.net/pub/php/win32/misc/mcrypt/
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
k like this
drwxrwxrwt2 root root 0 Jan 25 23:00 tmp
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he line with the regular expression after preg_match_all
JJM> What's that ?
preg_* functions needs delimiters for the expression like
'//' or if there are likely to be / in the text you can use
others like
'!!'
Its also a good idea to use single quotes so the expression gets
ignored by php
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm sure this is an easy question (I'm just too dumb to figure it out).
When I run a php script from the shell it always outputs
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html
Normally I just ignore this, but I've been using cron to run a php script
and I'm getting my mailbox cluttered with
would also like a pop
up or junior window to open.
Thanks for any assistance,
Tom
>>.>>.>>>.>>>>>.>>>>>>>>>
Tom Beidler
Orbit Tech Services
805.455.7119 (cell)
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
>>.
Just a quick note to all. My old address, [EMAIL PROTECTED], will no
longer be in service.
You can reach me at [EMAIL PROTECTED] or [EMAIL PROTECTED]
Please make the necessary changes to your address books.
Thanks,
Tom
>>.>>.>>>.>>>>>.>>>>&g
Does anyone know a good tutorial on using the ClibPDF functions (I gave up
on pdflib, couldn't get it complied correctly)?
I don't need to know how to do anything complex, just put text into a pdf
that outputs directly to the browser.
Thanks.
--
PHP General Mailing List (http://www.php.net/
On http://www.php.net/manual/en/ref.cpdf.php
the clock example works fine for IE. But the Example 1(even the modified
one in the comments) falls victim to the IE wants Content-length set,
problem.
Can some explain this to me?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsub
When I create a pdf with the cpdf functions my text keeps going off the edge
of the page. How do I make it wrap to the next line?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
isplayed in the form
field prior to upload. IE only displays the file name, no path. Is there a
way that I could force the path along, echo maybe?
>>.>>.>>>.>>>>>.>>>>>>>>> <<<<<<<<<.&
I want to assign a value using the url however the value contains both a ?
and an & so PHP (or the browser) seems to get confused.
Here's an example:
http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph
p?qid=234&forum=4
Everything after url= should be the value of $url
e both assigned earlier in the script by pulling data
from a MySQL database.
Is $name a reserved word or something? Anyone know why just changing the
array's name fixes the problem?
Thanks,
-Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
demo_id'"
. " ORDER BY name";
$contact_result = mysql_query ($contact_query)
or die ("Cannot build contact");
while ($contact_row = mysql_fetch_array ($contact_result))
{
$name = $contact_row["name"];
$option_co
. On the script that
doesn't work, I query the database to find files that were posted by others
which are 24 hours old and then delete them.
Thanks in advance.
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidle
on 3/19/01 7:08 AM, Jason Stechschulte at [EMAIL PROTECTED] wrote:
> On Sun, Mar 18, 2001 at 05:38:36PM -0800, Tom Beidler wrote:
>> I'm trying to create a pulldown menu with distinct names from the found set.
>> For some reason I never get the last name. Here's my co
HI
I have been corrected b4 but I compiled gd with truetype support and it
works fine. I think you have to edit the gd Makefile.
Then delete the php config.cache and re run configure
Tom
At 11:47 PM 17/04/01 +0200, barce wrote:
>Hello,
>
>I am having problems compiling truetype font sup
riables is through a submitted form or the url and I don't want to put the
credit card info in the url.
Any help would be greatly appreciated.
Tom
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidle
Hi
Just run
lynx -dump url > /dev/null
in the cron
Tom
At 10:55 AM 20/04/01 +1000, Chris Aitken wrote:
>I have a PHP script which runs a query, and emails the results to me. I am
>trying to make Cron run this script.
>
>I can get it to launch my PHP script and it emails m
Hi
Here is another way
$x = 1;
while($x < 5):
$index = "name".$x;
$name = $$index;
echo $name."";
endwhile;
had troubles with echo and $$variable, thats why the extra stephabit
Tom
At 10:58 AM 23/04/01 +1000, Chris Aitken wrote:
>Hi
>
7;s hosting one of the two sites that will be using the shopping cart.
Any help would be appreciated,
Tom
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[
fore and works.
if (($color != "") && ($color != "n/a")) {
$colorarry = explode(",", $color);
while (list($key,$value) = each($colorarry)) {
$color_option_block .= "$value\n";
}
I'm not that familiar with explode. Are my $key and $value vari
ot;
Any input or direction greatly appreciated.
Tom
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
http://www.orbittechservices.co
e.net/docs
Thank you for contacting our customer service group."
I found some info about CURL, http://curl.haxx.se/, and it seems like it
might do the trick. I was wondering if anyone has experience with this a can
confirm that this is the best approach or give me some other direction.
Thanks
hat this is the best approach or give me some other direction.
Thanks,
Tom
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
http://w
tered the javascript part of the code, or the html it refers to.
I'ld back track and check carefully if I was you.
Templates won't help directly, except that if you find one which does what
yuo want then obviously you know that will work. Personally, I prefer
writing my own stuff for my o
27;m not very comfortable wit h.htaccess, not something I've used very
much. I am fairly sure that it isn't the last linethe exact same file
worked fine doing, say phpMyAdmin, with the only difference being that
phpMyAdmin has all its files in one directory.
I hope this email makes
Are you trying to post a form back to the same script, which will then
process it? If so then the easiest way is just
On Fri, 4 May 2001, Chris Adams wrote:
> On 4 May 2001 21:48:46 -0700, Richard Kurth <[EMAIL PROTECTED]> wrote:
> > I am having problems with Netscape and post in a form
> > In
that complex in mysql)
Hope this helps,
Tom Carter
Web Architect
roundcorners ltd.
On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
> Anyone know a "Free" database Design program? I'm needing to organize my
> MySQL databases and design new databases.
>
> regards,
&g
I've not heard of such a thing, and I would doubt that there is such a
thing for mysql...generally such tools are for the db2's etc.
let me know if you find anything tho, quite intruged
Tom Carter
Web Architect
roundcorners ltd.
On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
>
A built in function in PHP (avoids running command line stuff) that does a
reverse DNS lookup on an IP address...
$host = gethostbyaddr($REMOTE_ADDR);
(took me quite a while to find this one)
HTH,
Tom
On Sat, 5 May 2001, Kurth Bemis wrote:
> At 04:11 PM 5/4/2001, Matthew Luchak wr
The easiest way is to create a simple page (called say test.php) with the
following
This should display a page with all sorts of information about your PHP,
and serves as a good test as to whether or not PHP is working
Good luck!
Tom Carter
Web Architect
roundcorners ltd.
On Sun, 6 May 2001
can download it to your local machine at your leisure
HTH
Tom
On Mon, 7 May 2001,
[iso-8859-1] Natasha wrote:
> Hi,
>
> you probably didn't understand my problem.
>
> I'm not on a very speedy connection, however having
> access to a server, which has PHP enab
them on the server and use exec() to run zip on
the command line to read the files back into php. Not the best way I know,
but it worked.
HTH,
Tom
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e
The problem is that it matches the first foo with the first /foo and the
second foo witht eh /foo ( andmatches those properly) but it also matches
the first foo with the second /foo (thisnk of the logic of the regex).
What you need to do is rather than specify any character (.*) specify any
charac
I don't have any direct experience using it, but colleagues I know have
given it great reviews.
ASP2PHP script (nice name ;o) )
http://asp2php.naken.cc/
Tom Carter
Web Architect
roundcorners ltd.
On Wed, 9 May 2001, Brandon Orther wrote:
> Hello,
>
> I am looking at a complete
If you know what page(s) are being used to load the end page then on these
pages you could pass the $HTTP_REFERER value from the middle page to the
end one and use that in the redirect
Tom Carter
Web Architect
roundcorners ltd.
On Fri, 11 May 2001, Johan Vikerskog (ECS) wrote:
> Hi Ben.
aincat=weather&subcat=sunny.
Would this in fact even fix the problem? Its a hard thing to test!
Does anyone have any experience using this? And what is the advice from
people on how best to get google&co to spider your site and find your
content effectively?
Thanks in advance
Tom
--
PH
not I might add!
Any advice and past experience would be very welcome.
BTW, my system is apache on linux, php 4.0.4pl1 running on a cobalt raq.
Thanks in advance
Tom Carter
Web Architect
roundcorners ltd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi
try:
select * from score order by scorevalue DESC LIMIT 1
or if your db supports sub selects:
select * from score where scorevalue=(select MAX(scorevalue) from score)
Tom
At 03:38 PM 21/05/01 -0500, Jacky wrote:
>Hi all
>Is this the corerct way of selecting the max value in a
need to do this in MySQL?
Thanks,
Tom
--
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]
I'm trying to calculate elapsed time and I'm having trouble using mktime
with variables. Here's my code;
$reformat_stop = str_replace(":", ",", $x[stop]) . ",1,1,2002";
$stop=mktime($reformat_stop);
I don't know how to format the code for mktime to use a variable. I keep
getting -1 for $stop bu
$service_type_insert = $x[$keyservice_type];
$service_type_insert = $x['\$keyservice_type'];
$service_type_insert = $x["$keyservice_type"];
Is there a way that I can format it correctly?
Thanks,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
So far nothing seems to work which leads me to believe there's something
else wrong.
Here's what I've tried
$service_type_insert = $x['926service_type']; //works fine when I hard code
a value in and returns proper value
$service_type_insert = $x[$$keyservice_type]; //returns empty even though
No more callers. We have a winner!
Thanks to all for your input!
> From: "Geo" <[EMAIL PROTECTED]>
> Date: Fri, 4 Jan 2002 02:27:45 +0200
> To: "Tom Beidler" <[EMAIL PROTECTED]>
> Subject: Re: how can I add a variable to this sample
>
> $x
e 08 or 09 in the
month part...on my system this happens
(linux/apache/php4.1)
";
?>
This prints: date = 21/12/2001
Also prints the same date for a month of 08
Tom
At 11:34 AM 6/01/02, webapprentice wrote:
>I'll have to use and if/elseif construct, because I don
Hi
You could get all your users to add an encrypted signature to their emails
and check that on recieipt.
Tom
At 11:35 AM 9/01/02, Bogdan Stancescu wrote:
>Hi all!
>
>I'm working on a free software package due to be launched on freshmeat
>some time soon (next month most proba
Hi
Encrypt the password from the form using the same salt value as the one
used for the database then compare them...
Tom
At 05:36 22/01/02, Hawk wrote:
>I've asked this several times but it doesn't seem like anyone understands my
>problem, the passwords are encrypted in the
Hi
use single quotes and it is simpler
echo '';
Tom
At 09:40 27/01/02, Frans Englich wrote:
>This works just perfectly:
>
> "); ?>
>
>
> regards,
> Cyth
>
> ---
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: S
move the
pages to an "ultra top secret" server that I won't have access to so I would
like to make it easy for him when he moves them instead of telling him what
to edit.
Unfortunately I only get a simple "connection error" message instead of the
address that is failing
Hi
Some of MS fonts wont work, try downloading some freeware fonts.
Tom
At 01:24 PM 2/12/02, Adrian Murphy wrote:
>tried everything suggested and still get 'could not read font' oh well
>thanx.
>
>- Original Message -
>From: "hugh danaher" <
Hi
It uses cookies and only cookies and it seems that sessions are started on
every access but can be turned off on individual pages if required.
Tom
At 07:44 AM 2/16/02, Peter J. Schoenster wrote:
>On 15 Feb 2002, at 14:43, Bendik Simonsen wrote:
>
>
> > I have however, noti
Hi
Yes you are right ... i had my head tied up with sessions :)
Tom
At 02:12 PM 2/16/02, michael kimsal wrote:
>Tom Rogers wrote:
>>Hi
>>It uses cookies and only cookies and it seems that sessions are started
>>on every access but can be turned off on individual pag
Hi,
I am trying to pull http_referer info on users accessing a certain page, but
am not having any luck. When I run phpinfo(), the referer information is
listed with all the other server variables, but when I pull a list of the
server variables as an array and print them, they all appear except f
Hi
Make sure you include at least one internal apache module as shared (i used
mod_rewrite) otherwise apache doesn't include enough linker information in
apxs. you will probably have to do make distclean and start again with
configure
Tom
At 09:18 PM 2/19/02, Erwin S R U B A R wrote
701 - 800 of 1845 matches
Mail list logo