, daggummit!
if ($_POST['pw'] != burgers )
^^^
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List
On 09-Dec-2004 Marek Kilimajer wrote:
snipage
not really, but it removes script and /script so javascript is
not
interpreted.
$txt = preg_replace('|script[^]*?.*?/script|si', '', $txt);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest
On 31-May-2004 Travis Low wrote:
I have to say I like everything about the PEAR coding standards
except for the
KR bracing style. I much prefer:
if( foo )
{
blah;
}
Icky.
So ... Vee-Eye or Eighty Megs and Constantly Swapping ?
;-
--
Don Read
)) {
echo 'table';
while ($row = mysql_fetch_array($res)
echo 'trtd' .implode('/tdtd', $row) .'/td/tr';
echo '/table';
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's
';
// I'm sure you can figure out the rest
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net
are
unique).
Both.
get_defined_constants()
array_flip()
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
On 14-May-2004 Chuck Barnett wrote:
Anyone have any code snippits that would allow me to do a Last 3
Items
Viewed like on ebay?
array_unshift($items, $new);
$items = array_slice($items, 0, 3));
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always
On 17-May-2004 John Taylor-Johnston wrote:
How can I check if a table exists in a mysql db.
function tableexists($tbl) {
$res = @mysql_query(SELECT COUNT(*) FROM $tbl);
return ($res ? true : false);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's
; you just might as well use the subscript and skip the
loop entirely:
...
if (count($_POST['chkdelete'])) {
$lst = implode(',',array_keys($_POST['chkdelete']));
$qry = DELETE FROM subscriber WHERE sub_key IN ('$lst');
mysql_query($qry);
}
...
Regards,
--
Don Read
On 21-Apr-2004 Yavuz Maºlak wrote:
full duplex
What's the output of:
mount and sysctl -a | grep '^hw' ?
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do
$a = preg_split('||', $a, -1, PREG_SPLIT_NO_EMPTY);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net
On 15-Apr-2004 Chris W. Parker wrote:
snip
for($i = 0; $i $numofrows; $i++)
{
...
$row_color = ($i % 2 == 0) ? yellow : white ;
$row_color = $row_color == yellow ? white : yellow ;
echo tr bgcolor=\$row_color\\n;
...
Regards,
--
Don Read
for the '/tr/table' to begin figuring
out the display properties.
Use 'View Source' if/when this happens.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time
],8,2);
$d_mins = substr($row[4],10,2);
$d_secs = substr($row[4],12,2);
}
Ugh!
list($y, $m, $d, $h, $i, $s) = split('[-:/. ]', $row[x]);
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's
attributes
dynamically...
I think just about everybody re-invents that wheel ...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General
(for this site/month anyhow).
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
' = 'images/yellow.jpg',
'bad' = 'images/red.jpg'
);
echo 'img src=' .$light[$val] .' height=xxx width=xxx';
}
...
stoplight( $foo 10 ? 'ok' : $foo 25 ? 'bad' : 'iffy' );
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
On 26-Mar-2004 Roger Spears wrote:
I'm going to guess DFW is just south of BFE
It just seems like it.
;-
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time
(LC_ALL, 'pt_BR');
//echo date('l, j de F de Y');
?
date() doesn't format according to locale but strftime() does:
setlocale(LC_ALL, 'pt_BR.ISO8859-1');
echo strftime('%A, %B %e %Y');
// output 'Quinta Feira, Fevereiro 12 2004'
--
Don Read [EMAIL PROTECTED
es_ES.ISO_8859-1
es_ES.ISO_8859-15
So if you're part of the 99.9% that don't mess with locales, you should
be OK.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time
On 07-Feb-2004 Ryan A wrote:
snip
but how do i check if the database/tables have
been setup?
SHOW DATABASES LIKE 'mydb';
SHOW TABLES FROM mydb LIKE 'mytable';
Check if a table exists:
SELECT 1 FROM mydb.mytable LIMIT 1;
Regards,
--
Don Read [EMAIL
($res) ) {
$row=mysql_fetch_array($res);
list($fy, $fm, $fd) = explode('-', $row['first']);
list($ly, $lm, $ld) = explode('-', $row['last']);
} else {
echo 'Not found', 'P';
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
On 02-Feb-2004 EastLothianDirectory wrote:
Was just reading your previous reply and my months are indeed in text
and therein
lies the problem.
snip
Look at the MySQL functions FIELD() and/or FIND_IN_SET().
Regards,
--
Don Read [EMAIL PROTECTED
things. Can someone tell me what it is they're looking
for?
The FS escape is 0x1C or 28 in decimal.
$fs=chr(28);
$files='myfile1.dat' .chr(28);
$files .='myfile2.dat' .chr(28);
$files .='myfile3.dat';
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's
ahead) :
// cleanup
$unsafe=preg_replace('[^\w]', '/', $unsafe);
// get trailing dirname (explode and pop would work also)
$dir = substr(strrchr($unsafe, /), 1);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you
On 19-Nov-2003 Steve Buehler wrote:
Amazing what I learned today. :) I love this list and its people.
How about one more? (ver 4.1.0):
foreach(range('A', 'Z') as $letter) {
echo $letter, \n;
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always
On 02-Nov-2003 Koala Yeung wrote:
Thanks a lot
I'd like to remove newline only.
Is there any simple way?
rtrim($str, \r\n);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's
'; // Alternate: 'de_DE.ISO_8859-1'
setlocale(LC_TIME, $locale);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
string?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
=file_get_contents('dafile.txt');
$msgblks=explode('TO', $data);
foreach($msgblks as $blk) {
list($to, $subj, $msg) =
explode($marker,preg_replace($pat, $marker, $blk));
...
do__your_stuff($to, $subj, $msg);
...
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's
))
{
return $arr;
// Something has to happen here!!!
Nothing will happen here!!!
You've already returned from the function.
}
snipage
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
= preg_replace('!\d+!', '', $goodbadnum);
2nd: $goodbadnum =~ tr/0-9/x/; I think this one replaces and numbers with
an 'x'.
Yep. that replaces every digit with an 'x'.
$goodbadnum= preg_replace('!\d!', 'x', $goodbadnum);
Regards,
--
Don Read [EMAIL PROTECTED
($cmd 21, $output);
-- or --
exec($cmd, $output, $errno);
echo posix_strerror($errno);
-- or --
proc_open(...) and read from pipe[2]
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal
. that is the equivillent of the php exit() function but for
external programs. One that simply returns the integer exit code of an
executed shell program...
exec(), system(), popen()/pclose() will return exit code.
The manual is your friend.
Regards,
--
Don Read [EMAIL
a [optional] seat:
UPDATE seating SET guest='$idguest'
WHERE idforum='$idforum' AND block='$idblock' [AND seat='$idseat']
AND guest=0
General admission:
UPDATE seating SET guest='$idguest'
WHERE idforum='$idforum' AND block='$idblock'
AND guest=0
/programmer doodle
Regards,
--
Don Read
date('F j, Y, g:i a'), 'br';
putenv('TZ=PST8PDT');
echo date('F j, Y, g:i a'), 'br';
putenv('TZ=CHAST');
echo date('F j, Y, g:i a'), 'br';
?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal
, $dbpass);
if (strcmp($dbpass,$epass)) {
...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table
#@@#, between them. Then,
when you read the cookie value in, just explode it by your delimiter.
setcookie (twovar, serialize(array($var1, $var2)), ...);
...
list($var1, $var2) = unserialize($_COOKIE['twovar']);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's
,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
=' .$_POST['id'] .';
echo '!--Debug :', $update, '--';
mysql_query($update);
...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP
On 19-Jun-2003 Awlad Hussain wrote:
How do i generate a unique random number?
http://www.php.net/manual/en/function.uniqid.php
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal
(/!--start_tag--(.*)!--end_tag--/m, ...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
/movies/news/2003/03/26/sens
ational_scenes/
:)
Oh. OK, Good.
Did you and Rasmus do a basketball scene in The Great Santini ?
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper
On 16-Jun-2003 Thomas Hochstetter wrote:
Hi.
[3rd try] ... where can i get mysql_error codes from? The ones that
mysql_errno returns.
You can get all the OS and MySQL error codes with:
$ perror `jot 1500` | grep -v 'Unknown error'
Regards,
--
Don Read
'til the image is properly created ...
snip
//here:
Header('Content-type: image/png');
ImagePng($image);
}
ImageDestroy($image);
?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So
(', ', $chgflds)
.'WHERE id=' .$_POST['id'];
mysql_query($update);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
out:
To: @mainservername:[EMAIL PROTECTED]
-- or --
To: [EMAIL PROTECTED]@mainservername
... and the sysadmin will probably whack your pee-pee for doing that.
So let him/her know beforehand so they don't TOS you.
And the last resort is fsockopen(mainservername, 25)
Regards,
--
Don Read
=' '
REMOTE_ADDR=127.0.0.2 HOME=/ PS1='$ ' OPTIND=1 PS2=' ' PPID=2614
PATH=/sbin:/bin:/usr/sbin:/usr/bin IFS=' '
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's
or queue at lower loads.
Delivery is done later in the background.
try one of the option string:
'-O DeliveryMode=b'
-- or, if you can wait for a queue run --
'-O DeliveryMode=q'
mail($to, $subj, $msg, $hdrs, '-O DeliveryMode=q');
Regards,
--
Don Read [EMAIL
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
On 05-Jun-2003 nabil wrote:
Please help me how to print a timestamp string retrived from the
database,
and print it as -MM-DD
MySQL ?
http://www.mysql.com/doc/en/Date_and_time_functions.html
--
Don Read [EMAIL PROTECTED]
-- It's always darkest
the wwwroot'
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
will mysteriously go tits-up (or worse) and good code will
keep on cranking.
No matter what register_globals= is set to.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper
IMHO, of course.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
.
I'd start with :
$var=preg_replace('!tr bgcolor=.+!m', '[breakhere]', $var);
$listing=explode('[breakhere]', $var);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper
adding one more 'hint':
header('Cache-Control: max-age=3600');
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
;
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On 06-Apr-2003 David McGlone wrote:
Hi all, how can I combine this line to use just 1 echo statement?
echo Name: ; echo $_POST['name']
echo 'Name: ', $_POST['name'];
-or-
echo 'Name: ' .$_POST['name'];
Regards,
--
Don Read [EMAIL PROTECTED
of it.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
use it) then add
putenv('TZ=GMT0BST'); at the start oof each script.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing
On 31-Mar-2003 Tim Haskins wrote:
My bad, I actually meant that the nothing was like, if the pr_ID in the
url is empty then show the following text.
if (empty($HTTP_GET_VARS[pr_ID]))
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
;
}
if (count($blk) )
echo 'td', implode('br', $blk), '/td';
echo '/tr';
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General
bit --well it's a handy spot to increment $i, and the pre-increment
notation gets around the case when $i == 0.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's
On 30-Mar-2003 Antti wrote:
How do I test if a mysql table exists or not? Is there a function for
this? I didn't find a good one.
-antti
function tableexists($tbl) {
$res = @mysql_query(SELECT 1 FROM $tbl LIMIT 1);
return ($res ? true : false);
}
Regards,
--
Don Read
(and can't figure out) is how to have each email address
have a URL (i.e. mailto:[EMAIL PROTECTED]).
I'm fairly new to PHP, I hope this question made some sense.
Suggestions?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
is submitted.
Thank You Very much.
if ( (isset($submit)) ($submit =='Update') ) {
while (list($id, $val) = each($row)) {
// do something with $id and $val
}
}
yourforloop {
// fetch $id, $val
echo INPUT TYPE=TEXT NAME=\row[$id]\ VALUE=\$val\;
}
Regards,
--
Don Read
'];
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)
--
PHP General Mailing List (http
On 28-Mar-2003 Chris Shiflett wrote:
--- Mike [EMAIL PROTECTED] wrote:
Is there anyway to get the HTTP Server Username (something like
$_SERVER['username']) I tried printing all the variables defined in a
page (and looking at a phpinfo.php) and wasn't able to figure it out...
--- Don Read
shutdown.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.Don Read
[EMAIL PROTECTED]
--
PHP General Mailing
Applications Development *
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)
--
PHP
same people an HTML email composed in Outlook comes across
just fine, perhaps it's the anti abuse headers causing the issue?
Has anyone heard or had experience with this?
google 'mime multipart alternative HTML'
Regards,
--
Don Read [EMAIL PROTECTED
wordpad (or whatever they calling it this week) will grok
bare linefeeds.
Thanks!
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do
/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table
Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do
emulation lib.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
operate on the formatted
`UNIX_TIMESTAMP()'
`UNIX_TIMESTAMP(date)'
`UNIX_TIMESTAMP()' is called with a `date' argument, it returns
snip
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's
Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oh, and I hope you're going to consider a multipart/alternative message
body. HTML-only e-mail is evil.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
[].
Whatever's leftover --those are the project_ids to remove.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t
table with all the
desired fields and with the userid as primary key.
Then do 'REPLACE INTO temptbl SELECT ... ORDER BY whatever'.
And finally do a 'SELECT * FROM temptbl'
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So
2-3 micro-seconds?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
-authenticate method
would work better for your application.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http
On 05-Mar-2003 Sebastian wrote:
I have a date field in mysql in this format: Y-m-d H:i:s
I would like to echo Today if the date is today, can someone offer some
help? Thanks.
SELECT IF(TO_DAYS(datefld)=TO_DAYS(current_date),'Today',LEFT(datefld,10)) as
datefld, ...
Regards,
--
Don Read
On 03-Mar-2003 Dan Sabo wrote:
Thanks Larry,
What are some of the more active MySQL lists? Do you have a URL or two?
Thanks,
Dan
post to [EMAIL PROTECTED]
or browse http://www.mysql.com/documentation/lists.html
Regards,
--
Don Read [EMAIL
.
write a shell script (and put in your safe_mode_exec_dir):
---
#!/bin/sh
/usr/bin/du -k $1 | tail -1
exit 0
---
then use popen/fgets to call the script and parse output.
Regards,
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants us to
=submit name=parent value=fooimg
src=icon.gif/button
$parent will equal img src=icon.gif NOT foo
How do I get the value of foo to be returned in $parent and still use a
graphical icon instead of a standard submit button?
input TYPE=IMAGE NAME=parent VALUE=foo SRC=icon.gif
Regards,
--
Don Read
LIMIT 1);
return ($res ? true : false);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants us to be happy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
traffic loads you can get
duplicates.
You might want to consider a table with a auto_increment field. Do a dummy
insert, the get the value with :
mysql_query('SELECT last_insert_id() as id');
Regards,
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God
://www.php.net/unsub.php
__
Do you Yahoo!?
New DSL Internet Access from SBC Yahoo!
http://sbc.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Don Read
);
?
Sorry my mistake, make that :
print_r($GLOBALS);
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants us to be happy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 25-Sep-2002 Daren Cotter wrote:
This just prints out a bunch of info (seems to be
unimportant)...what am I looking for in this?
You're looking for your argument string blah
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants
this problem.
Yes it could.
To get around it : benchmark optimize your indexes and queries.
Check into using persistant connections, it is normally a good idea in
general -but watch out that you don't exhaust kernel resources ...
Regards,
--
Don Read
);
--
Don Read [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants us to be happy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for your submit button, then you can test for
$submit_x and $submit_y.
--
Don Read [EMAIL PROTECTED]
-- It is necessary for me to learn from others' mistakes. I
will not live long enough to make them all by myself.
--
PHP General Mailing List (http
On 23-Mar-2002 David Duong wrote:
I didn't put mailing list I meant Usenet lists.
comp.lang.perl.misc
This is not a newbie froup. Read the FAQ, and post your code, or prepare to
be flamed to a crackly crunch.
Regards,
--
Don Read [EMAIL PROTECTED
as hell to me :/
thanks for the help so far people, the sky is finally clearing up :-)
Where possible, I'll use single quoting to avoid chasing down silly escape
errors:
mysql_query(insert into table values('$string'));
Try it. Makes life easier.
Regards,
--
Don Read
/strip slashes functions. Any comments would be greatly appreciated.
Check your 'magic_quotes_gpc', it might explain it.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It is necessary for me to learn from others' mistakes. I
will not live long enough to make
INPUT TYPE=TEXT NAME=foo VALUE=$row-foo;
echo '/FORM';
Regards,
--
Don Read [EMAIL PROTECTED]
-- It is necessary for me to learn from others' mistakes. I
will not live long enough to make them all by myself.
--
PHP General Mailing List (http
adminland.php
whatever ...
then include() the bits where the $vars indicate:
if ($do_detail)
include('detail.php');
And, of course, underneath is the common thingys:
require(class.html.php);
require(class.forms.php);
require(libsql.php);
Regards,
--
Don Read
1 - 100 of 237 matches
Mail list logo