-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Close your parenthesis, daggummit!
if ($_POST['pw'] != burgers )
^^^
--
Don Read [EMAIL PROTECTED]
-- It's alway
On 09-Dec-2004 Marek Kilimajer wrote:
>
> not really, but it removes and so javascript is
> not
> interpreted.
$txt = preg_replace('|]*?>.*?|si', '', $txt);
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's alway
On 31-May-2004 Travis Low wrote:
> I have to say I like everything about the PEAR coding standards
> except for the
> K&R bracing style. I much prefer:
>
>if( foo )
>{
> blah;
>}
>
Icky.
So ... Vee-Eye or Eighty Megs and Constantly
is?
>
if ($res = mysql_query($qry)) {
echo '';
while ($row = mysql_fetch_array($res)
echo '' .implode('', $row) .'';
echo '';
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's a
]; unset($cv['__Default__']);
$s = implode("','", array_keys($cv));
$qry = "ALTER TABLE $tbl CHANGE COLUMN
$fld $fld SET('$s') NOT NULL DEFAULT '$dflt'";
// I'm sure you can figure out the rest
Regards,
--
Don
a checkbox and you'll only get "checked" values in the
$_POST header; you just might as well use the subscript and skip the
loop entirely:
...
if (count($_POST['chkdelete'])) {
$lst = implode("','",a
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 [EM
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 [EM
mply way to do this? Or am I
> better
> using an Associative Array (which is what I was thinking)? Then I
> could
> such refer to an element by its key or value (both of which are
> unique).
Both.
get_defined_constants()
array_flip()
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 news
is a nicer way of solving my prob
>
$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&
On 15-Apr-2004 Chris W. Parker wrote:
> for($i = 0; $i < $numofrows; $i++)
> {
> ...
> $row_color = ($i % 2 == 0) ? "yellow" : "white" ;
$row_color = $row_color == "yellow" ? "white" : "yellow&
>> Do you have display_errors turned on?
>
> Sometimes I have this problems too, no matter if that setting is on.
>
If the error occurs within a table element on a web page, Mozilla won't
display because it's waiting for the '' to begin figuring
out the d
;
> $d_hours = substr($row[4],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 dark
lect 69594/ 261511;
+---+
| 69594/ 261511 |
+---+
| 0.27 |
+---+
1 row in set (0.00 sec)
So 27% of my hits are by proxy (for this site/month anyhow).
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always
er to change the element 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 newsp
'ok'=> 'images/green.jpg',
'iffy' => 'images/yellow.jpg',
'bad' => 'images/red.jpg'
);
echo '';
}
...
stoplight( $foo < 10 ? 'ok' : $foo > 25 ? 'bad' : 'iffy
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 neighbo
ld, but doesnt seem to work
> //setlocale(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 'Qu
On 07-Feb-2004 Ryan A wrote:
> 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
es_
es_ES.DIS_8859-15
es_ES.ISO8859-1
es_ES.ISO8859-15
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 t
On 02-Feb-2004 EastLothianDirectory wrote:
> Was just reading your previous reply and my months are indeed in text
> and therein
> lies the problem.
Look at the MySQL functions FIELD() and/or FIND_IN_SET().
Regards,
--
Don Read [EMAIL
limit 0,1";
$qry="SELECT MIN(date) AS first, MAX(date) as last FROM ...";
$res=mysql_query($qry);
if (mysql_numrows($res) ) {
$row=mysql_fetch_array($res);
list($fy, $fm, $fd) = explode('-', $row['first']);
list($ly, $lm, $ld) = explode('-',
' HEX. I have no idea what to really send.
> I've
> tried several 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);
$fi
irectory delimiter and get the last bit
of the path (untested code ahead) :
// cleanup
$unsafe=preg_replace('[^\w]', '/', $unsafe);
// get trailing dirname (explode and pop would work also)
$dir = substr(strrchr($unsafe, "/"), 1);
Regards,
--
Don Read
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
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. S
il but no line breaks. Any suggestions?
>
double-quotes around your 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.
--
ale='de_CH.ISO_8859-1'; // 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
#x27;';
$data=file_get_contents('dafile.txt');
$msgblks=explode('', $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
while ($arr = mysql_fetch_assoc($result))
> {
> return $arr;
> // Something has to happen here!!!
Nothing will happen here!!!
You've already returned from the function.
> }
Regards,
--
Don Re
pe. That removes digits '0-9'
$goodbadnum= 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('
, etc. 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 y
> _Mattia_
>
$cmd='/bin/rm foo';
exec("$cmd 2>&1", $output);
-- or --
exec($cmd, $output, $errno);
echo posix_strerror($errno);
-- or --
proc_open(...) and read from pipe[2]
Regards,
--
Don Read [EMAIL PROTEC
7;;
putenv('TZ=PST8PDT');
echo date('F j, Y, g:i a'), '';
putenv('TZ=CHAST');
echo date('F j, Y, g:i a'), '';
?>
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the
ull,// a dinner table or stadium row
seat int unsigned not null, // d'oh
guest int unsigned not null default 0, // who has this seat ?
primary key (idforum, block, seat),
INDEX idx_g (guest) // handy stuff.
)
Assigned seating:
As each guest reserves
$fld => $val) {
if (isset($_POST[$fld]) && ($_POST[$fld] != $val)) {
$chgflds[] = "$fld='" .$_POST[$fld] ."'";
}
}
// doit.
$update='UPDATE tbl SET ' .implode(', ', $chgflds)
."WHERE id='" .$_POST[
On 20-Jun-2003 Matt Hedges wrote:
>However, the text boxes
> only display the first word of the field from the database.
Quote your values.
>\n
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always
show up in either value, something like "#@@#", 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,
--
op-up the encryped passwd.
Use the whole string for the seed and let crypt() handle it:
$epass=crypt($pass, $dbpass);
if (strcmp($dbpass,$epass)) {
...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before th
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
ed.cnn.com/features/2003/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 ar
odifier:
preg_match("/(.*)/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 G
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
handler:
http://www.php.net/manual/en/function.session-set-save-handler.php
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.
ly appreciated!
It's likely the other boxes are set to queue only 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
x27; PPID=2612
PATH=/sbin:/bin:/usr/sbin:/usr/bin IFS=' '
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 al
o they don't TOS you.
And the last resort is fsockopen(mainservername, 25)
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/unsub.php
$chgflds);
foreach($row as $fld => $val) {
if (isset($_POST[$fld]) && ($_POST[$fld] != $val)) {
$chgflds[] = "$fld='" .$_POST[$fld] ."'";
}
}
$update='UPDATE tbl SET ' .implode(', ', $chgflds)
.'WHERE id=' .$_POST[
27;);
>
A little too early for that. Wait 'til the image is properly created ...
>
//here:
Header('Content-type: image/png');
> ImagePng($image);
> }
>ImageDestroy($image);
>?>
Regards,
--
Don Read
On 08-Jun-2003 Philip Olson wrote:
> [snip]
>>
>>
>> register_globals=off won't make good code any better --it's just
>> a safety net for the sloppy coders.
> [snip]
>
> In some sense, register_globals = off makes both bad and
> good code better, because it means less pollution. So
> many un
eaimsgroup.com/?l=php-general
search on Subject: 'Images out side 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
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]
--
y.
The main thing I don't like is that it seems to coddle the LCD of
bad code.
A craftsman rarely learns good practice if s/he is insulated from the
results of bad practice.
IMHO, of course.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's al
t;FetchRow()) {
if (count($a) >= $modulo) {
echo "\n ", implode('', $a), '';
unset($a);
}
$a[]=$row['blah'] .' ' .$row['foo'];
}
while (count($a) < $modulo) {
;t pick up on anything
> special that I should be doing.
>
> Is there a way to make the file be put into cache, or am I barking up
> the wrong tree.
>
Try adding one more 'hint':
header('Cache-Control: max-age=3600');
Regards,
--
Don Read
ately
> so that I can change the layout, color, size, font, etc, etc, etc.
>
I'd start with :
$var=preg_replace('!!m', '[breakhere]', $var);
$listing=explode('[breakhere]', $var);
Regards,
--
Don Read [EMAIL PROT
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'];
Rega
3E8F0' ? '#C7D0E2' : '#E3E8F0');
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
s (rather than you just "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 newsp
A 'rm -rf /' should take care 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
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 PROT
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
ecuted.
The ++$i 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 th
{
if (count($blk) >= 2) {
echo '', implode('', $blk), '';
unset($blk);
}
$blk[] = $v;
}
if (count($blk) )
echo '', implode('', $blk), '';
echo '';
Regards,
--
Don Read
n", implode('', $line), '';
> }
> print "\n";
> What I want (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 s
mportant clues on why the server 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
php) and wasn't able to figure it out...
>
> --- Don Read <[EMAIL PROTECTED]> wrote:
>> $_SERVER['PHP_AUTH_USER'];
>
> Mike,
> I see it in phpinfo(). Search for "User/Group". I'm on Apache.
>
> Don, read this:
> http://www.php.net/manual
t;[EMAIL PROTECTED]>
>
$_SERVER['PHP_AUTH_USER'];
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.
ay to
> find
> row's id after form is submitted.
>
> Thank You Very much.
>
if ( (isset($submit)) && ($submit =='Update') ) {
while (list($id, $val) = each($row)) {
// do something with $id and $val
}
}
your
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php
bday, $phone,
> $zip,\n";
> //end of loop
>
notepad wants '\r\n' for an end of line.
IIRC wordpad (or whatever they calling it this week) will grok
bare linefeeds.
> Thanks!
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's a
the email.
>
> Sending those 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,
-
-> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the daw
$dst=stat($filename);
printf('Source: %d, Dest: %d %s filesystem\n',
$src[0], $dst, ($src[0] == $dst[0] ? 'same' : 'different'));
>
> Thanks 4 help...
> --
> christian rosentreter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsu
ject_id'] unset then corresponding
$cur_project[].
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 newspa
y-To' => "$adminemail",
'Bcc' => "$theprgmr",
'From' => "$adminemail"
);
$mailhdrs='';
foreach($headers as $k => $v) {
$mailhdrs .=sprintf("%s: %s\n", $k, $v);
}
mail($mailto, $
r example, use `UNIX_TIMESTAMP()' for the
`UNIX_TIMESTAMP()'. Other functions operate on the formatted
`UNIX_TIMESTAMP()'
`UNIX_TIMESTAMP(date)'
`UNIX_TIMESTAMP()' is called with a `date' argument, it returns
--
Don Read
include('libphp4.php3'); // get 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 Gene
cho date('Y-m-d', strtotime('13 years ago'));
Sorry, it doesn't check the birth certificate ;)
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's new
he records without an 'ORDER BY' clause.
If you figure that out, you can use a temporary 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
', getmicrotime() - $time_start , '';
?>
On my machine I get numbers like:
A: 0.000907063484192
B: 0.000651001930237
C: 0.000686049461365
The function call within the loop is slower (contrary to what I
expected), the real question is how much effort do you want to expend to
save 2
set (0.00 sec)
Since you don't want to use sessions, maybe 401 WWW-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 neighbo
y stuff
$id= trim($id);
if (! ($allowpath) )
$id= basename($id);
$ext= substr(strrchr($id, '.'), 1);
$path= $imgdir .'/' .$id;
if ($handle= fopen($path, 'r')) {
Header('Content-type: ' .$mimetype[$ext]);
Header(&q
tefld,10)) as
datefld, ...
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/unsub.php
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
ied and i failed. most of the functions dont work in safe
> mode, some didnt do what i wanted (returned the whole drive size instead of
> one directroy) etc.
> my head hurts already and i think i am on the verge on nervous breakdown
> because i have been trying to sol
> This doesn't work:
>
> src="icon.gif">
> $parent will equal " 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?
>
Regards,
--
Don R
borrow mine:
function tableexists($tbl) {
$res = @mysql_query("SELECT 1 FROM $tbl LIMIT 1");
return ($res ? true : false);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- "Beer is proof that God loves us and wants us to be happy."
--
P
rk, but it's not atomic. At high 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
so, how do you around
> 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 resour
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 i
dump($argv);
> var_dump($GLOBALS);
> ?>
>
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
gt;>>>>
>> >>>>>
>> >>>>>
>> >>>>>>My problem, is that I absolutely NEED to run a
>> >>>>>
>> >>PHP
>> >>
>> >>>>>>script usin
/Stockholm');
mktime(0,0,0,1,1,1970);
echo date("Y-m-j");
--
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 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 [EMAI
t; hit the "submit" button (not as a test to see if the form was being
> viewed for the first time). IIRC he was having problems determining
> whether or not the user had hit "enter" or hit the submit button.
>
If you use an image for your submit button, then you
ions
> appearantly
> adding the backslashes for escaping and PHP automatically type casting of
> variables it has become vague 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 chasi
e database and put in
> HTML I see EXACTLY what I entered. So it doesn't appear to me I'd need these
> add/strip slashes functions. Any comments would be greatly appreciated.
>
Check your 'magic_quotes_gpc', it might explain it.
Regards,
--
Don Read
userland.php
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);
1 - 100 of 249 matches
Mail list logo