. And probable overhead is eliminated too I think - DBserver
will optimize and will join data from pic_comments only once for each
unique pics.id.
Lenar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
FROM pics
LEFT JOIN pic_comments ON (pic_comments.pic_id = pics.id)
WHERE pics.category = 1
GROUP BY pics.pic_id;
Lenar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe:
First some basic questions:
(1) Can you create an unitialised array ?
$an_array = array();
(2) Can an unitinialised array be a class member variable ?
My problem is this:
I have a class called user - which represents one row in a mySQL table
(also called user)
class userBag {
.
Lenar
for ($i = 0; $i count($array); $i++)
{
if ($array[$i] == 1) {
//do something
exit;
}
}
--
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
Put your thank you on another page. Then after processing your post data,
instead outputting thank you do:
header(Location: http://youthost/thankyoupage.php;);
die();
That should do it.
Lenar
Ashley M. Kirchner [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL P
))
echo option$event/option\n;
?
Lenar
?php
$table=shoots;
require (connect.php4);
$result=MYSQL_QUERY( SELECT eventName FROM $table);
$num_rows = mysql_num_rows($result);
for ($i=0;$i$num_rows;$i++)
{
echo option;
echo mysql_result($result,$i,eventName);
echo
do smething like this:
?php
mysql_connect(db, $user, $password);
$result = mysql_query( SELECT * FROM $table);
while($row = mysql_fetch_assoc($result))
while(list($colname, $colval) = each($row))
echo option value=\$colname\$colval/option\n;
?
Lenar
?php
Do you have:
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files
or something similar in your httpd.conf?
lenar.
Gonyou, Austin [EMAIL PROTECTED] wrote in message
85063BBE668FD411944400D0B744267A481AD4@AUSMAIL">news:85063BBE668FD411944400D0B744267A481AD4@AUSMAIL
because $LastMod == 0 .. I assume your timezone is GMT-6 ?
This is because that file doesn't exist or you don't have permissions for it or
something like that.
lenar.
Carmen Gene [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can anyone out there
lenar [EMAIL PROTECTED] wrote in message
9h5itc$hir$[EMAIL PROTECTED]">news:9h5itc$hir$[EMAIL PROTECTED]...
because $LastMod == 0 .. I assume your timezone is GMT-6 ?
correction - it returns false in this case, which gets converted to 0 in date() which
in turn returns seconds from un
if you really have to you can do smth like this:
input type=image name=contatc src=.
input type=hidden name=contatc value=002545645
but i don't see the point of it :)
lenar.
Augusto Cesar Castoldi [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
php.exe
he's using redhat ... so there might be a _very_good_ possibility that he doesn't have
php.exe laying around.
lenar.
Jason Lustig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've added the lines:
AddType application/x-httpd-
DELETE FROM tablename
or
TRUNCATE TABLE tablename
lenar.
Wilbert Enserink [EMAIL PROTECTED] wrote in message
001101c0fb15$5daa49e0$[EMAIL PROTECTED]">news:001101c0fb15$5daa49e0$[EMAIL PROTECTED]...
Hi all,
anybody knows the mysql statement for clearing the contents of
be more useful:
* * * * * php -q /var/www/path/to/script.php
It surpresses those HTML headers that you propably don't want in shell mode.
lenar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
than just IE or Netscape
and their fifferent versions). I remember for example that one browser
needed domain name to work and other didn't want it all to work. Or
something like that.
Hope this helps.
lenar.
ps. I think setcookie() itself doesn't woe, just our great programmers at
netsacpe
You have global variables $argc (count of arguments) and $argv (array
containing arguments given on command line)
lenar.
Joseph Tate [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Have you tried 'php FILENAME'? Now, I don't know how you would pass
pa
in your virtualhost definition use:
php_value include_path new include path
might be that instead of php_value you have to use php_admin_value, not
sure.
this is explained in Chapter 3. Configuration of php manual.
lenar.
Butler, Shaun [EMAIL PROTECTED] wrote in message
0106240506.10472
heh, that basically means that query was ok at least techincally.
When you echo that $result and get nothing - then something went wrong.
The right way to check if query was ok is:
if(is_resource($result))
echo Query OK;
or just:
if($result)
echo Query OK;
lenar.
Kurth Bemis [EMAIL
use get_included_files() and/or get_required_files() functions.
lenar.
DAve Goodrich [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
-Original Message-
From: Tim McGuire [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 2:30 PM
To
This is not PHP related, but use '_top' as TARGET.
lenar.
""kaab kaoutar"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
how cann i redirect from a frame to a page but in the whole page !
i mean like href an
I think there is no very simple way to do this.
But you can try to receive the form yourself and using for example curl extension,
make connection to that another server, then resubmitting your form data along with
necessary authentication headers. That should work.
lenar.
Gerard Onorato
cause since they are boolean values you need to use php_flag instead
of php_value:
php_flag display_errors on
php_flag log_errors on
This doesnt work! The following does work though:
php_value display_errors 1
php_value log_errors 1
As they logically should.
regards
soultion(s) to my problem?
Lenar Lõhmus
it works correctly,
i have to hardcode class names.
and thank you scott pointing me out (and getting me confused :) ).
lenar.
scott [gts] [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
it looks like your solution *is* elegant... i tried
out your code, b
[] array?
I see now purpose of those names being replaced for this array only when
they are populated as global variables.
And still .. are you sure your webbrowser doesn't do that before t even
makes to php?
Lenar
Jaime Torres [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">new
UPDATE syntax for INSERT is allowed in MySQL, so that should not be the
problem as far as you include all fields not having default value, timestamp
type or auto_increment attribute in your statement. What's the error message
if there is any?
lenar
Rich Cavanaugh [EMAIL PROTECTED] wrote
maybe function eval()?
lenar.
Claus Heiko Niesen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello
I'm having a variable that contains HTML with embedded PHP code. When I
echo it then the PHP code does not get executed. Is there a way I can
par
something like this:
?
function recursive_rtrim($ar) {
foreach($ar as $key = $val)
$ar[$key] = is_array($val) ? recursive_rtrim($val) : rtrim($val);
return $ar;
}
?
lenar.
Reuben D Budiardja [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
28 matches
Mail list logo