() functions.
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, e-mail: [EMAIL
.
--
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, e-mail: [EMAIL PROTECTED]
For additional
.
Especially if they close the browser ...
Sharp, heavy objects; get some.
--
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
for checking stuff/things.';
$words=preg_split(/[^\w]+/, $line);
echo $line, 'P';
while (list ($k, $v) = each($words)) {
echo $k - $v, 'BR';
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you
user_id=$foo is likely be faster less
load then an open/read/close.
Trying to avoid hitting the database is a good maxim, but it's not the goal.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal
);
(read as: split on one or more non-word charachers)
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 20-Jul-2001 [EMAIL PROTECTED] wrote:
Hi Don!
On Fri, 20 Jul 2001, Don Read wrote:
snip
Because the database is optimized for this kind of stuff ?
Once you get the db handle (and you have. you've authenticated right ?),
SELECT count(*) from msgposts where user_id=$foo is likely
);
on the Select / display:
echo nl2br(htmlspecialchars(stripslashes($row-foo)));
also checkout 'set_magic_quotes_runtime()'
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
;
Header(Content-type: .$types[$ftype]);
Header(Content-length: .filesize($fname));
@readfile($fname);
$qry =insert into foo (da_time,da_name) values (NOW(), '$img');
@mysql_query($qry);
?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before
to scan through a column like i mentioned, or give me
better ideas on how to do this??
thanks
chris
'Old'-est - order by your_timestamp asc
'New'-est - order by your_timestamp desc
... limit x;
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always
.
~ s/ better / other /
Handling all those bounces manually will be a mess.
No matter which MTA you use.
Alexander Skwar
--
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal
has set quota on the Apache user (and why ?).
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
(spoiler: 'WHERE' comes after the field list).
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
);
ImageJPEG($image);
ImageDestroy($image);
?
This is from chapter 16 of Beginning PHP4 from Wrox press.
Works fine for me. at the top, try something like:
if (! function_exists('ImageCreate')) {
Header(Content-type: text/html);
echo Graphics not supported !;
}
Regards,
--
Don Read
timeout
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, e-mail: [EMAIL
: untested stab:
unset($user[1]);
unset($user['User2']);
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
[($fname[$i])];
thanks,
while (list ($fld, $val) = each($HTTP_POST_VARS)) {
.. do what ever ...
}
Note: It's a insecure practice to build a data query like this.
You might want to do some kind of validation.
Regards,
--
Don Read [EMAIL PROTECTED
Yup. Go figure.
Don Johnson
It works if you execute only the SELECT (without the UPDATE) ?
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
On Friday 23 February 2001 16:57, Don Johnson wrote:
Yup, the data's correct. The new records all have the
DownloadedDateTime
anyone have any user friendly suggestions or can give me some URLs
where I can read up on this?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, 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
Are there any known security issues/concerns with compiling PHP with
imap/pop3 support? Such as hijacking php pages and relaying spam, etc...?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are there any known security issues/concerns with compiling PHP with
imap/pop3 support? Such as hijacking php pages and relaying spam, etc...?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just tried rebuilding my apache php to the latest version and now
whenever I try to start it it core dumps. If I remove the --with-openssl and
build with 4.4.6 of php at least it starts. I can't even get my old version
to build now...
Is there a work-around for this?
The setup is as follows:
Any time I compile PHP 4.4.7 with --with-ssl my apache 1.3.39 server core
dumps on my FreeBSD 6.1 box. Anyone have a work around for this or
suggestions where to look? I was having a similar problem with Curl, but
once I told curl where the OpenSSL home dir was that solved that problem.
The
Trying to create an articles rss feed for my site and I keep getting an
error that says:
=
A semi colon character was expected.
Line: 7 Character: 60
linkhttp://www.chirunning.com/shop/pages.php?pageid=19id=383/link
=
I've tried every way imaginable to figure out why I am getting this
Yup, thanks.
Also execute:
$array = array_values(array)
in order to fix the indexes
- Original Message -
From: mike [EMAIL PROTECTED]
To: Don [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Thursday, August 14, 2008 11:16 PM
Subject: Re: [PHP] Removing an element from
in a browser.
Here is the code that I am working with:
?php
$hamburger = 4.95;
$chocmilk = 1.95;
$cola = .85;
$subtotal = (2 * $hamburger) + $chocmilk + $cola;
$tax = $subtotal * .075;
$tip = $subtotal * .16;
$total = $subtotal + $tip + $tax;
print Welcome to Chez Don.\n;
print Here is your receipt:\n
Paul M Foster wrote:
On Wed, Jan 28, 2009 at 12:05:34PM -0700, Don Collier wrote:
I am just learning PHP from the O'Reilly Learning PHP 5 book and I
have a question regarding the formatting of text. Actually it is a
couple of questions.
First, when I use the \n and run the script from
Paul M Foster wrote:
See? This is what I'm talking about.
*I* understand what you're saying, Don, and I agree. But this guy is
just learning PHP from what is arguably not one of the best books on PHP
(IMO). And you're throwing MVC at him. Let him master the subtleties of
the language first
Paul M Foster wrote:
On Wed, Jan 28, 2009 at 01:45:07PM -0700, Don Collier wrote:
On that note, what would be a better book to learn from? I have always
been a fan of the O'Reilly books, but I am open to differing flavors of
kool-aid. One can never have too many resources
?php
echo this is from the second php block;
?
/body/html
Producing from the browser (http://myhost/test.php):
this is from the first php block
this is from html
this is from the second php block
Don Brown
Co-Founder, Utah Skies
Ski champagne powder by day, surf diamond-studded velvet by night
?php
echo this is from the second php block;
?
/body/html
Producing from the browser (http://myhost/test.shtml):
this is from the first php block
this is from html
this is from the second php block
Don Brown
Co-Founder, Utah Skies
Ski champagne powder by day, surf diamond-studded velvet
.
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, e-mail: [EMAIL PROTECTED
|
| trnd|
+-+
10 rows in set (0.02 sec)
mysql show tables like 'tmp%';
++
| Tables_in_cache (tmp%) |
++
| tmpc |
| tmpd |
++
2 rows in set (0.02 sec)
Regards,
--
want to DELETE the duplicates, just
don't want dups to show up in my SELECT queries.
Thanks.
Jason
select distinct(email_addr) ...
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's
$i 4; $i++) {
$k = (int) ($n / $msk);
$n -= $msk * $k;
$t[$i]= $k;
$msk /=256.0;
};
$a=join('.', $t);
return($a);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
, ideas and or suggestions are all welcome.
I'd think a commit changes on the last page would be more intuitive for the
users, but the programming would get a bit complex ...
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you
it would.
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, e-mail: [EMAIL
= '$portname');
My question is, if the variable $portname has the ' character within in,
will this cause an error in my select statement? If the answer is
Yes, can someone give me a more robust way of writing it using PHP?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net
it.
I've seen it on 2 different windows 2000 machines running the same
versions of php and apache, as well as connecting to 2 different smtp
servers.
Environment
Window 2000
Apache 1.3.27
PHP 4.2.3
Thanks
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On 19-Jan-2003 Don Mc Nair wrote:
Thanks Guys
I just needed a pointer. I decided to use the database and created two
tables, one for invoice number and one for order number then defined a
function to read the current number and the increment it.
That'll work, but it's not atomic. At high
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
=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
=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
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
.
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
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
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
'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 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
(/!--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 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
, $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
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
($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
= 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
))
{
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
.
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
with me?
Thanks,
Don Hicks
Portland, OR
--
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
Regards,
--
Don Read [EMAIL
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
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
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
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
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
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
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
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
(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
;
}
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
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
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
301 - 400 of 509 matches
Mail list logo