If i use courier-mta
Can i create a php script wich create mailboxes?
And users
Hope any understand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
mattias schreef:
If i use courier-mta
Can i create a php script wich create mailboxes?
And users
Hope any understand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
If i run coureir and postfix
I want to have a signup script
How should the code be written?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
First of all
If you have a bad day don't send to the list
-Ursprungligt meddelande-
Från: Stut [mailto:[EMAIL PROTECTED]
Skickat: den 30 december 2007 21:46
Till: mattias
Kopia: php-general@lists.php.net
Ämne: Re: [PHP] Mail system
mattias wrote:
If i run coureir and postfix
I want
Yes but i are newbie in php
I think i should use php exec but i dont know no more
-Ursprungligt meddelande-
Från: Stut [mailto:[EMAIL PROTECTED]
Skickat: den 30 december 2007 22:01
Till: mattias
Kopia: php-general@lists.php.net
Ämne: Re: SV: [PHP] Mail system
mattias wrote:
First
I try to add php-support to my php installation on windows 2000 server
Can someone check my phpinfo.php?
http://mjw.se/phpinfo.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oops sorry
i meen sql
-Ursprungligt meddelande-
Från: Chris [mailto:[EMAIL PROTECTED]
Skickat: den 25 januari 2008 00:06
Till: mattias
Kopia: php-general@lists.php.net
Ämne: Re: [PHP] Sql support
mattias wrote:
I try to add php-support to my php installation on windows 2000 server
Eh
yes but if you check my phpinfo.php
http://mjw.se/phpinfo.php
i can't reed out if sql support are enabled
-Ursprungligt meddelande-
Från: Chris [mailto:[EMAIL PROTECTED]
Skickat: den 25 januari 2008 01:18
Till: mattias
Kopia: php-general@lists.php.net
Ämne: Re: SV: [PHP] Sql support
hereis my php.ini
i think this file are correct
[PHP]
;;;
; About php.ini ;
;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path
ERR_DB_NO_DB_PASS
What will this meen?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
returned success... Running mailq at the command prompt gives me:
(Host or domain name not found. Name service error for name=activeagenda.org
type=MX: Host not found, try again)
Basically, I'd like my PHP script to know of issues like these.
TIA for any suggestions.
Mattias Thorslund
--
PHP
CREATE TABLE table_name;
The second of these will give you a CREATE TABLE sql statement which would
create that table.
Best,
Mattias Thorslund,
http://www.activeagenda.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can use in_array (http://www.php.net/function.in_array) for this.
--
Mattias
--|-Original Message-
--|From: Narciso Miguel Rodrigues
--|[mailto:[EMAIL PROTECTED]]
--|Sent: Wednesday, February 05, 2003 02:03
--|To: [EMAIL PROTECTED]
--|Subject: [PHP] Array find a element
There is gettext support in php for this. Haven't used it myself, but
check it out at http://www.php.net/ref.gettext
--
Mattias
--|-Original Message-
--|From: JJ Harrison [mailto:[EMAIL PROTECTED]]
--|Sent: Wednesday, February 05, 2003 06:56
--|To: [EMAIL PROTECTED]
--|Subject: [PHP
it, then
downloads those pages, extract their links, until all pages on a site has
been downloaded and archived.
Is there any way to do it in several threads so that it handles several
connections simultaneously?
If it would dynamically allocate threads that would be even better.
Regards,
Mattias
-threading though, it might just be me that doesn't know about it.
Is there any way to execute several functions simultaneously?
Mvh,
Mattias Andersson
Mjukvaruutvecklare, humany AB
Direkt: 08-4540701
Mobil: 0704-526685
-Ursprungligt meddelande-
Från: bvr [mailto:[EMAIL PROTECTED]]
Skickat
Does mysql_real_escape_string exist? I've seen it in the manual pages,
and
to my understanding, it is the proper function to call on strings to
escape
them before inserting them into a database...
mysql_real_escape_string() is only available in CVS version.
_
Mattias Eriksson
Here is a example using snmprealwalk() to make a simple dump to a
textfile.
The script filters out some things that atleast I don't need.
To get more verbose output comment out $walk = snmp_nice_array($walk);
and/or change snmp_set_quick_print(1); to snmp_set_quick_print(0);.
Example with most
Why invent the wheel twice, this has been around since the first day
code red was discovered.. See code-red.php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: den 10 september 2001 16:22
To: [EMAIL PROTECTED]
Subject: [PHP] Code Red Catcher
Hi All!
I had
Hey,
Don't bitch about my grammar, I was in a hurry when writing this
script...
Bad2da / efnet #php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: den 10 september 2001 17:50
To: [EMAIL PROTECTED]
Subject: [PHP] Code Red Catcher
Hi again, Everyone:
I
with over 20,000
emails in it, and outlook goes through these in less than a few seconds, so,
could anyone explain to me how this is done.
// Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
with over 20,000
emails in it, and outlook goes through these in less than a few seconds, so,
could anyone explain to me how this is done.
NEW PART:
This is if I've set the outlook client not to delete the email from the pop
server, or I've choosen to leave the message for x number of days..
// Mattias
number, starting from 1, instead of numbers I want, like, 3afffb530001,
etc. etc.
Does anybody know why?
// Mattias
--
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
Hi,
Here I am again, having problems with the c-client and the wrap around it,
this time with the imap_mail_compose()... To start out with, the imap
functions really need more documentation, I've been working with the imap
functions for about two weeks, and for almost each and every function,
For all those that's seeking support for php, there are two options,
zend.com sells SOS, you could also join #php on efnet for help..
// bad2da
-Ursprungligt meddelande-
Fran: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Skickat: den 19 juni 2001 05:31
Till: Miles Thompson
Kopia: [EMAIL
Hello all,
I have a slight problem that someone out there might be able to help me
with. I recently installed Windows 2000 with Internet Information Server 5.0
and php 4.0.7-dev. When configuring the IIS 5.0 default webserver, I did the
following
= Properties
= Directory Security
= Edit
=
Ofcourse not!
I'm accessing the files from the webbserver, not a network share.
Which if I was would display the source.
Mattias
-Ursprungligt meddelande-
Från: Jason Murray [mailto:[EMAIL PROTECTED]]
Skickat: den 26 juni 2001 08:35
Till: 'Mattias Segerdahl'; php general
Ämne: RE: [PHP
There arn't any permission problems, since we're already getting php to run,
could it be that php 4.0.6 under windows dosn't support UNC paths.. Iow,
\\server\share\name paths!?
-Ursprungligt meddelande-
Från: Richard Lynch [mailto:[EMAIL PROTECTED]]
Skickat: den 27 juni 2001 07:12
Till:
Hi,
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what are the
most likely things that can cause session_destroy() to return false?
Thanks for any suggestions.
Mattias
--
PHP General Mailing List (http
Jim Lucas wrote:
Mattias Thorslund wrote:
Hi,
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what are the
most likely things that can cause session_destroy() to return false?
Thanks for any suggestions
Jim Lucas wrote:
Mattias Thorslund wrote:
Jim Lucas wrote:
Mattias Thorslund wrote:
Hi,
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what
are the
most likely things that can cause session_destroy
Richard Lynch wrote:
On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote:
One of my clients just received a PHP warning that session_destroy()
failed. Using the default session handler (with tmp files), what are
the
most likely things that can cause session_destroy() to return false
they are not any longer maintaining the
source ? since the last update was 2 years ago.
Thanks very much for your time,
Mattias Hakansson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
consider first?
Thanks,
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dmitri wrote:
Mattias Thorslund wrote:
Hi,
I'm looking at possibly implementing mnoGoSearch (for indexing and
search of uploaded documents on the server) into my application, but
noticed it has been moved into PECL since PHP 5.1. Does this mean
mnoGoSearch has been deprecated
100){
echo This is line number $count\n;
$count++;
}
?
Execute like so:
$ php test.php | less
First time might work without problem, but subsequent times not.
Thanks for any feedback and observations.
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Stut wrote:
On 2 Jul 2008, at 02:58, Mattias Thorslund wrote:
Hi everyone,
I have a CLI application that produces lots of output to the
terminal, so I like to send the output along to the less command.
This has always worked very nicely. Moving to the top or bottom of
the output used
As far as I recall, having done this, all that is required for a basic
MDB2 is the PEAR base class and the driver classes for the platforms you
want to support.
Murray wrote:
Hi All,
I'm wondering if it's possible or practical to implement MDB2 in my web
application, but without requiring a
I thought this was the PHP list, not the OS vs. OS list?
Is this type of discussion now considered OK here? I recall people
getting flamed for borderline off-topic posts even, just a few years ago.
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
?
And store the blah blah blah somewhere for later use?
I can think of many reasons that someone could use this.
Perhaps you are looking for what the output buffering functions do?
http://us3.php.net/manual/en/book.outcontrol.php
Cheers,
Mattias
--
PHP General Mailing List (http
to be.
Cheers,
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SMTP approach to deliver messages.
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, you could temporarily change your code to:
td align=center
?=(!empty($info['Employee']['dob'])) ?
$datetime-time2str($info['Employee']['dob']) : it's empty!!?
/td
HTH, Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/ref.xml.php] contain an example class that
parses an XML file into an associative array. I'm using something
similar myself, as it seems to be a pretty straightforward way to get an
easy-to-use structure in PHP 4 without dom_xml, which isn't always
available.
Mattias
--
PHP General Mailing List
Hyderabd, India?
Would you stop flaming the list with these requests?
Looking at your website, not a single experienced programmer would even
consider applying to the job mentioned. Not only does the website look like
it's made by someone with the know-how of a thirteen year old kid but the
Is it possible to reverse class __destruct() instead of following the class
initiations? It makes more sence to me to close objects in last start first
close.
?php
class Class1 {
function __construct() {
echo 'Constructing ' . __CLASS__ . \n;
}
Function
Martin,
There is no native support in php for this today. That said, it's not
impossible to do. There are two different approaches you can take. The easy
one, is to use PDoru's patch at http://pdoru.from.ro/
The second one, which I experimented with the other week, is to set the
wrong enctype,
10x? That a CD Player speed or something!?
Quit the kiddie talk, use english!
-Ursprungligt meddelande-
Från: Anton G. Popov [mailto:[EMAIL PROTECTED]]
Skickat: den 26 april 2001 10:45
Till: [EMAIL PROTECTED]
Ämne: [PHP] Filesystem security
Hi
I have to set up a site for free web
look for #$message .= (Content-Disposition:
attachment; filename=) in some way, but I don't know how, or where to go
from there.
Thanks in advance,
// Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Internet Explorer really wants me to click open once
before actually choosing either to open or save it..
Does anyone know how to solve this problem, I don't want the users to have
to figure out this workaround by themselves...
// Mattias
--
PHP General Mailing List (http://www.php.net
Make sure you're not sending any output to the browser, not even the body
tag, before you send the header();
-Ursprungligt meddelande-
Från: elias [mailto:[EMAIL PROTECTED]]
Skickat: den 7 maj 2001 22:43
Till: [EMAIL PROTECTED]
Ämne: Re: [PHP] Cant add new Header
you can always
.
/Mattias
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could it be a quote-escaping problem?
It would be easier to tell if you could show us the query and the code
you're using.
/Mattias
Shaun wrote:
Hi,
I have a problem with a query, I get the following error message:
You have an error in your SQL syntax. Check the manual that corresponds to
your
Chris W. Parker wrote:
Leif Gregory mailto:[EMAIL PROTECTED]
on Wednesday, February 23, 2005 10:31 AM said:
I'm thinking something like:
1. strtolower() the string
2. explode() on the period
3. Loop through the resulting array
a. trim() whitespace on each element
b. ucfirst() on each
Leif Gregory wrote:
Hello Chris,
Wednesday, February 23, 2005, 11:49:32 AM, you wrote:
C And on top of that he'll need to convert all 'i' to 'I' because of
C step 1.
You and Mattias both have valid points.
The only other thing I can think of is a regexp that is searching for
a period and a space
Since you can use fopen, I don't think open_basedir is the problem.
Read about open_basedir here: http://us3.php.net/features.safe-mode
Maybe the path that you use in the include is wrong?
/Mattias
Andre Dubuc wrote:
Hi,
I am trying to 'insulate' my database connection from prying eyes by moving
be too hard to calculate it:
1970 * 365 + 1 day for each leap year. Note the rules for leap year, of
course.
/Mattias
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Check out:
http://pear.php.net/package/Date
According to the description, it lets you compare dates that date pre
1970 and post 2038.
/Mattias
(If I could only get off ezmlm's suspicious user list. I think there
isn't much I can do, it's my ISP rejecting some PHP list postings.)
Kevin wrote
double quotes with single quotes.
/Mattias Thorslund
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Actually I wonder how much alcohol you've had by now... :-)
/Mattias
Jay Blanchard wrote:
Let's say I have a form and the action is thus;
form name=\managebatch\ action=\ . basename($PHP_SELF) .
?bid=edit\ method=\POST\\n;
Note the 'bid' attribute. Now, I have a case statement in which stuff
takes
the
situation then. Thanks!
How about:
form name=\managebatch\ action=\ . basename($PHP_SELF) .
?bid= . $_GET['bid'] . \ method=\POST\
If your Form tag appears after your switch/case statement, that is?
But, first, do yourself and your project a favor and go grab something
to eat. :-)
/Mattias
that's not
supported by other DBMS's.
Something like:
SELECT
name,
CASE value
WHEN 1 THEN name_if_true
WHEN 0 THEN name_if_false
ELSE 'unknown' END AS result
FROM thing;
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($object_array);
$first_key = reset($keys);
/Mattias
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris W. Parker wrote:
Read www.php.net/array_keys and you shall have your answer.
From the php docs:
?php
$array = array(0 = 100, color = red);
print_r(array_keys($array));
?
Will output.
Array
(
[0] = 0
[1] = color
)
Duh! Yes, I replied a little too fast on that one.
/Mattias
. Thanks for your time in advance.
Devraj
Have you looked at the PEAR Date class?
http://pear.php.net/package/Date
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
It would be nice if the above piece of blatant spam were removed from
the archives, since the spammer's objective most likely is to improve
their Google rank...
Possible?
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)) )
(snipped the rest of the code)
Check that the line BEFORE the if statement ends with a semicolon (or
otherwise ends correctly...).
/Mattias
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
template language. I haven't used in a production setting yet,
and haven't compared its performance with other template systems.
/Mattias
P.S. Sorry for hijacking this thread, but it's closely related. OK, I
wrote that before I read all the off-topic jokes in this thread. I don't
feel sorry anymore
rush wrote:
Mattias Thorslund [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
(On the subject of templating engines, again.)
I wonder what you folks think of the following:
http://www.massassi.com/php/articles/template_engines/
hi!
It is nicely written, but actually, I think
/template_engines/
Best regards,
Mattias
--
More views at http://www.thorslund.us
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
Who says PHP itself is a template engine?
I do.
More importantly, Rasmus does.
What? My li'l brother does PHP? Or you mean him Lerdorf?
Sorry...
/Mattias
--
More views at http://www.thorslund.us
Jason Barnett wrote:
Mattias Thorslund wrote:
...
Who says PHP itself is a template engine? I think nobody. What are
the basic template features?
Variables / placeholders
Looping construct(s)
Conditionals
A way to apply styles to text / markup
So I suppose I'm just confused over what
Rasmus Lerdorf wrote:
Mattias Thorslund wrote:
Who says PHP itself is a template engine? I think nobody.
I do.
It comes down to whether you want the delineation between the template
and the business logic enforced by the system or not. PHP is a
general-purpose templating system that does
per second
sometimes, and I think good credit should go to the one that wrote the
extension(Wez?).
--
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You mean Full-text searches? Read about them here:
http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html
Only works with certain table types. Not InnoDB tables (transactional)
for instance.
Best, Mattias
(ps new to this list - messed up on replying first time)
Original Message
I use precisely what you suggest. If you later find out you'd like to
wrap a few lines inside a loop, this avoids a potential bug when a
variable is not reset to the initial value for each iteration.
On Fri, 2004-04-23 at 13:55, Gabe wrote:
When scripting in a language (such as PHP) that
?
In other words, is there anyhing gained by doing:
$short_array = array_slice($filenames, 0, 2);
foreach($short_array as $filename) {
$files[] = path/to/ . $filelname;
}
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I have a problem when im trying to scale an jpeg image with libgd
my function lookes like this:
function image_resize_jpeg( $img, $w)
{
$image = imagecreatefromjpeg($img);
$img_info = getimagesize ($img);
$orig_height = $img_info[1]; //source hieght from $img_info
$orig_width =
to the website. At least the page that gives the MD5
sums could be secure?
Cheers,
Mattias
Fr alla singlar - singelkryssen lttar ankar igen den 23 oktober. Boka nu!
http://www.spray.se/datekryss
--
PHP General Mailing List (http
recent version of PHP (4.3.4). I don't have
the php version of the old server but it was on RedHat 9 - now I'm on
Mandrake 10.
What could be the difference that caused this?
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote:
In order to keep configuration files outside the web root I use:
include_once('../config.php');
This used to work also when running php scripts from the command line.
Now I have a new server and I get no such file
That will work, but the below is really supposed to work. I use it in
my apps.
Blake Schroeder wrote:
Put a hidden field in your form named id.
-Blake
Mattias Thorslund wrote:
Probably with
form method=post action=foo.php?id=123
Blake Schroeder wrote:
The form that is being submitted can only
to be able to do that from anywhere, though - that's why I passed
the full path to the script. So it's got to be some configuration
that's different, or that this behavior has changed.
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if track_vars is off in php.ini? But then, I
suppose$_POST['id'] would be empty, too.
Anyway, I'd suggest using different names for the GET and POST
variables. For instance new_ID for the POST variable.
/Mattias
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
.
In other words, it's possible to make the CGI version work like the CLI
version (using absolute paths only). There seems to be no support for
making CLI work like CGI, however.
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello everybody :).
I having a little problem with PHPs build in function mail().
The mailserver isnt located on the webserver, its on another machine.
I have tryed ini_set(SMTP, ipaddress); with no result.
The system I'm on runs on an Linux box.
Can this be done or must I write an own mail
the data in your PHP script as you
process the form.
Oh, and there are several PHP-based list managers available, for
instance phplist, so you may not need to program it yourself.
/Mattias
Huang, Ou wrote:
I am currently working on a newsletter mailing list project and
developed a form in php. I
... I dont know why .. is this mysql bug ?
It's a known bug in MySQL. Since this is a PHP list, I leave it up to
you to check what version fixed it.
IIRC, it's possible to work around by making sure the first statement
has the longest data type.
--
More views at http://www.thorslund.us
--
PHP
successfully used stored procedures that employ temporary
tables and while statements and the like. That method is not available
in MySQL (yet), so I'll have to do a lot of the manipulation on the web
server instead, using PHP.
Any suggestions?
/Mattias
--
PHP General Mailing List (http
described above, despite the title:
http://www.sitepoint.com/article/hierarchical-data-database/
That method is a bit more complicated but it also allows you to
determine the (total) number of child nodes of a node, without an extra
SQL query.
/Mattias
--
PHP General Mailing List (http
.
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well i havent seen anyone been using BETWEEN.
Anyway...
?php
$SQL = mysql_query(SELECT value FROM table_name WHERE element BETWEEN 48
AND 53);
while($row = mysql_fetch_arrray($SQL)) {
print($row['value']);
}
mysql_free_result($SQL);
?
From: Jason Davidson [EMAIL PROTECTED]
To: Brian Tully
I have a problem with my mysql query
SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics,
pic_comments WHERE pics.category = 1 AND pics.id = pic_comments.pic_id GROUP
BY pic_comments.pic_id;
pics table:
| id | submitter | time | date | category |
pic_comments table:
| pic_id |
(*) AS num_comments
FROM pic_comments
GROUP BY pic_id
You may want to add an ORDER BY clause to both of these. People often
say it's 'good form' to enumerate your fields in the SELECT clause but
benefits of that may vary between database platforms.
Mattias Thorslund
--
PHP General Mailing List (http
(Sorry about all the quoting but I thought it makes sense for clarity -
Mattias)
Curt Zirzow wrote:
* Thus wrote Lenar Lhmus:
Mattias Thorslund wrote:
Though, (regardless of SQL database platform) in a case like this, it
MAY be both more straightforward and efficient to use two separate
)
/documents (put uploaded documents here)
/webroot (web-accessible files here)
/img(static images)
/js (javascript files)
Hope this helps.
Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
['photo_check'])){
switch($entry){
case Copy Change:
case Banner Change:
case Price Change:
break;
default:
//put your code here
}
}
Longer but seems more readable to me.
Disclaimer: I have probably left a silly typo somewhere.
/Mattias
--
http://www.thorslund.us
--
PHP General Mailing List (http
Mattias Thorslund wrote:
Disclaimer: I have probably left a silly typo somewhere.
Sure did:
My old nemesis, end parethesis (either too few or too many).
It should be:
if( != $row['photo_check']){
switch($entry){
case Copy Change:
case Banner Change:
case Price Change
Jay Blanchard wrote:
Oops
Yeah, some of us (including myself) could use a php validator in our
mail clients... Maybe a plugin for T-bird?
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
supposed to be an announcement-only list, BTW.
/Mattias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 137 matches
Mail list logo