On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote:
> Hello !
>
> I am trying to keep my string after including av file.
>
> file1.php:
> (accessed with file1.php?id=1)
>
> include 'index.php';
>
> function func() {
> echo "buddy";
> }
> ?>
>
> index.php:
> echo "Hello";
> if (function_exists('f
MTB
> http://extreme.nas.net
And, as someone recently pointed out in response to a similar suggestion
I made, there is a mysql DATE_FORMAT function that will do the same thing
without the CONCATS.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
.php
>
> mail("[EMAIL PROTECTED]", "Feedback Form Results",$message, "From:
> $email");
> ("Location:thankyou.html");
> ?>
Line 2 appears to be the mail() function - have you correctly configured
the mail section of your php.ini?
--
David Robley Techno-
ave permissions for the remote
host/user/password, of course.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"Ignore the first three turnings," said Tom forthrightly.
--
PHP G
-+-----+
> 1 row in set (0.00 sec)
>
>
> It therefore appears that MySQL/the table is shorting out and killing
> the query before it's really executed.
>
> I'm not on any mailing lists for MySQL, but I'll try checking their web
> s
individual lines of this text file and store them into a mysql
> database line by line.
>
> Cheers
Yes - have a look at the filesystem functions to get the lines of the
file; you could use fopen()/fgets() to return a line at a time or even
just file() to return all lines as elements of
iting to "/var/spool/mail/dtt"
> > > ------
> > >
> > > This just started, I believe, this week. Is there some kind of an
> > > auto-responder that isn't working correctly?
> > >
> > >
> > > --
> > > Gaylen
;
> Thanks all,
>
> Yours Hans.
include() them?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"This is my favorite chinese soup," Tom said wantonly.
--
PHP General Mailing List (ht
eciated.
> Thanks.
>
> Neil Silvester
> Webmaster / Systems Administrator
> Heat and Control Inc.
There are several possible solutions here, starting with seting a default
selection in your dropdown so you avoid the problem.
Otherwise you could test whether the dropdown value i
ce
> tables, but they appear to be outdated. Where can I find a complete
> and accurate operator precedence table?
>
> CW
The manual?
http://www.php.net/manual/en/language.operators.precedence.php for
operator precedence and http://www.php.net/manual/en/language.oop.php for
classes and o
idn't work stuff here"
> } else {
> // Continue with whatever it was I was doing.
> }
>
> would that work as I expect it to?
>
> thanks!
>
> Jason
>
Here is what I use, called as an include file:
--
David Robley Techno-JoaT, Web Maintai
mple, "c" should not be
> print.
in_array might be one tool - loop through $Foo and print $Foo[n] if it's
not in the array $donotprint
foreach($Foo as $val) {
if(!in_array($val,$DoNotPrint) {
echo $val;
}
}
Any syntax errors you find in that you can keep :-)
And doubtless th
"e"):
>
> What is the best way to print every value in $Foo that does NOT match a
> value in $DoNotPrint? For instance, in this example, "c" should not be
> print.
in_array might be one tool - loop through $Foo and print $Foo[n] if it's
not in the array $donot
dentifier on success or an error
message on failure. That should do what you want.
I wonder what my sigmonster is up to?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"Stupid" is a bound
ions/php-4.0.6.tar.gz on your local functioning mirror will get
the 4.0.6 source
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I was absolutely vitrified," said Tom with a glazed look.
On Wed, 19 Sep 2001 12:28, Scott wrote:
> That works, thank you, but it prints at the top of my page, is there
> a way to store that array into a single variable?
>
Yes - implode()
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
your environment, try running each say ten thousand times in a loop,
and use a timer like microtime to check how long it takes.\
Then you can let us all know the answer.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOU
> another page with the # sign, it's interpreting it as
> a comment. Is their any way to somehow escape the #
> sign.
>
Works OK for me in an INPUT TYPE=TEXT. Perhaps a bit of your code and the
table structure might help?
--
David Robley Techno-JoaT, Web Maintainer
'X' . rtrim('foo bar ', ' ') . 'X';
>
> this gives 'XX' as the result.
>
> i'm using php-4.0.6. Am I misunderstanding something horribly, or is
> this a legitimate bug?
>
> Kevin Way
The docs say that the second paramete
eciated.
> TIA
> Terry
Check that it is actually executable by the user that your webserver runs
as.
Checking the output of exec might give some insight.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
word2 word3" => "word1+word2+word3"
>
> $word1 . $word2 . $word3
>
> Read the manual!
>
> Alexander Skwar
Tsk Alexander, read the question :-) Urlencode is most likely what is
needed.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR IN
visited after any elements with a positive
TABINDEX. Among positive TABINDEX values, the lower number receives focus
first. In the case of a tie, the element appearing first in the HTML
document takes precedence.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR
gt; Thanks in advance for any help or suggestions.
> Rebecca
Output control functions may be what you are looking for.
http://www.php.net/manual/en/ref.outcontrol.php
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUT
ry out queries on the information in the table.
>
> I was wondering is there a command in Mysql that can import tables?
>
> I just need to import one table, not an entire database.
>
>
> Thanks.
>
> Peter
There is mysqlimport from the command line, and there is the LOAD DA
Sorry - pressed send w/out writing anything. Topic followed up direct
with problem owner.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
There are 2 ways to handle women and I know neither
',
> '$ROEX')";
> mysql_query($sql,$db_con);
> }
>
> }
> mysql_close($db_con);
> }
>}
> else
> {
> // No file uploaded, show the form
> echo "";
> echo "Upload this
op the master table and upload the csv there
> will only be a few currency's!
>
> Thanks
> Coenraad Steenkamp
>
>
> - Original Message -
> From: "David Robley" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: "Coenraad Steenkamp&qu
t as well just
drop the table and import the contents of the csv.
Unless there's a good reason not to that you haven't mentioned?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Birds ar
gt;
> TIA
>
> Adrian
This has been a common topic recently. Try the archives
http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=pages+like+google
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders Univer
; Peter
> >
> >Not much traffic there :-) Try sending one from the command line, then
> >one with your script and then check the log again.
>
> That's because its on the web server traffic ... set up to handle just
> requests from our webpages ...
>
> ok now
On Thu, 13 Sep 2001 14:22, David Robley wrote:
> > Here's what's going on.
> >
> >
> > $connection = mysql_connect($server, $user, $pass);
> > mysql_select_db($db);
> >
> > $query = "
=
'" . $cartitem[productid] . "'";
to be sure that the array element is dereferenced properly.
> $productinfo = mysql_fetch_array($productresult); //THIS line produces
> the error $count++;
> }
>
> mysql_close($connection);
>
>
>
> I don't
special about MySQL
> that I am not aware of?
That usually indicates that the query which produced the resource failed
for some reason. Immediately after the mysql_db_query(s), use mysql_error
to fetch the error message from mysql.
This _used_ to be in the FAQ, I swear :-)
--
David Robl
ther sendmail then
> > succeeds is another story :-)
> >
> >> now I can go to the commandline and send emails no problem but from
> >> the web pages I can't .. any suggestions would be apreciated.
> >
> >My first thought would be to check the relevant
ail then succeeds
is another story :-)
> now I can go to the commandline and send emails no problem but from the
> web pages I can't .. any suggestions would be apreciated.
My first thought would be to check the relevant log for sendmail
activity, which might give a clue?
--
ssion issues or
> something?
>
> Thanks in advance,
> __ Michael Krisher
> __ http://www.sectiongroup.com
Immediately after the mysql_db_query line, use mysql_error() to return
the mysql error message. I'll hazard a guess that it is because you
haven't assigned a default v
want to hide those
> two options.
I think you only just posted this an hour ago - and there has been at
least one answer since. How about waiting a little while for a response.
Not everybody is just sitting there ready and waiting to solve your
problem.
--
David Robley Techno-JoaT,
--
> Being a Systems Administrator is like
> hitting yourself in the bead with a brick.
> After a while you don't feel the pain.
>
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Fli
name1
> name2
> name3
> name4
>
>
>
> Anyone know how to fix this?
> Robert
It sounds like your database design could do with a bit of rethinking,
but there is a solution to your immediate problem. You need to explo
unctions (which I can do).
>
> Thanks,
> Don
strtotime to get te Unix datestamp, then date() should do the trick.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"Wow!" bar
t;
> Any ideas???
>
>
> Evan Nemerson
> PS If anyone wants this when im done email me. evan(a)coeus-group*com
There are a couple of functions that might suit your needs - array_keys()
which will return an array of the key names, or a combination of list and
each. Have a brow
the filename.
For example, mine is
sendmail_path = /usr/sbin/sendmail -t -i
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Press all the keys at once to continue...
--
PHP General Mailin
gt;$count = 1;
> while ($line_text = fgets($fd, 2048)) {
> if ($variable = trim($line_text)) {
You are assigning here - use == for comparison.
>echo "Match at line number $count";
> break;
> }
> ++$count;
> }
&g
tables but i don't know
> some information about table host ? Please send me some information
> about this table.
>
>
> Thank you.
>
> roman
This is a mysql problem, not PHP. Try
http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Admini
bout makes sense, or is even doable,
> but if anyone has any ideas or suggestions it'd be appreciated.
>
>
>
> Thanks
>
> Chris
When this particular app that watches the modem is started, could you add
something (like perhaps tee) to the startup command to direct th
all directory here?
>
> Thanks
>
> Jason
You'll probably find other bits in /usr/local/share, /usr/local/include
and /usr/local/etc. So try your luck using just /usr/local
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flin
n', you could use something like
SELECT person.description AS pdesc, place.description AS wdesc FROM
person, place WHERE
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I was the firs
you display the
string.
With a little more effort, you could play around with substring_index to
display the first n words of the article.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Happiness
x27; / 'No" answer maybe if 'Yes' just a
> quick explanation.
>
> Any help would be much much appreciated.
>
> Regards,
>
> Joseph Blythe
> Web Development
Seems like PHP has something to do just about anything; in this case you
may find striptags is jus
];
You would need to specify them in a print function, then.
print $row["Mobile"];
print $row["AdminContact"]; etc etc
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Famous last word
On Fri, 7 Sep 2001 10:04, Martín Marqués wrote:
> On Jue 06 Sep 2001 21:31, David Robley wrote:
> > On Fri, 7 Sep 2001 09:56, Martín Marqués wrote:
> > > I there a way to get the config options with which the php binary
> > > (as a binary or as an apache m
On Fri, 7 Sep 2001 09:56, Martín Marqués wrote:
> I there a way to get the config options with which the php binary (as a
> binary or as an apache module)?
>
> Saludos... :-)
It is one of the things shown by phpinfo()
--
David Robley Techno-JoaT, Web Maintainer, Mail Lis
P address was not found in
> the database, and if it was found then I want to print "Print some text
> here!"
>
> Please help!
> Thanks,
> Nate
I think it would make more sense to check the number of rows found, and
act accordingly. If you don't need to use any of th
> Thanks in advance
>
> Regards
> -Balaji
There will only be a value in HTTP_REFERER if the page was referenced via
a link from elsehwere (generally). If you just call the script by putting
its URL in the LOCATION box, it will be empty.
Read The Fine Manual chapter 7 on variables fo
> Thanks in advance
>
> //Johan
If you are getting a ^M something is a bit wrong as that is xOD the CR
character. What system are you on and what is the relevant part of your
script?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Fli
On Wed, 5 Sep 2001 11:20, Gary wrote:
> Hi,
> Could someone give me an example of using stripslashes with echo and
echo stripslashes($variable_to_strip_slashes_from);
> one with .msg in a mail function.
Not quite sure what you mean by this?
--
David Robley Techno-JoaT, Web M
e. Anybody can pop
> over to http://php.net/list and get an explanation of what the code
> does if they run across it.
>
> -Rasmus
Or you can use extract() to provide variable names which match the names
of the fields in your table.
while($row = mysql_fetch_array($sqh));
extrac
d via the script. These might be INPUT, SELECT or
whatever and will have the sme name as the form element from which they
come.
If this is greek to you, perhaps you should be reading the part of the
manual on Variables, particularly the section on Variables from Outside
PHP.
--
David Robley
processor, this variable is not
available.
So it returns the name of the current script. For the simplest example,
try the following:
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Any
en.Please use your back button and choose
> another";
> else {
>
> more code
>
> TIA
> Gary
Is the password stored as an encrypted string in the DB (one would hope
so!) If so, you'll need to compare an encrypted version of the string you
are testing.
--
David
On Tue, 4 Sep 2001 10:50, Dave Freeman wrote:
> to change their policy or vote with your feed and move elsewhere.
Somehow I think they'd be less than pleased if he were to tip his feed
all over their server :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, et
> 002801c133f3$1e2204e0$0feafea9@reynolds">news:002801c133f3$1e2204e0$0feafea9@reynolds...
> > Should this work, if not, why not
> >
> >
> >
> > the import works fine from the command line
Have you checked that mysqlimport and the directory in which it re
have permissions to execute mysqlimport.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Self-made man: A horrible example of unskilled labor.
--
PHP General Mailing List (http://www.php.net/)
To un
referenced which
doesn't exist on my machine. Somehow I don't think the results are as you
would like them to be :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Closed Hearing for the Cap
hris
Try outputting the result direct to your browser, without anything in the
way to define it as an image - that way you may get to see the error.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Wher
Do I need to reset the array pointer at the begining? Is
> there something else I need to do?
>
> Regards,
> Ben
Reset the array pointer before the second any any subsequent iteration.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
gt; I have 7 seven fields in the form to process.
>
> David Robley wrote:
> > On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote:
> >>Mozilla sucks sometimes with email formatting.
> >>Correction==>
> >>
> >>Here is a snippet example.
> >&g
de("|",$array); return $string;
> }
>
> The variables that form $array are from the form
Hrm - undefined function top()
?? ??
But the rest of it returns what I would expect - a comma followed by two
| - given that I don't have the values referenced in the array. And you
won
D. Alvarez Arribas <[EMAIL PROTECTED]>
You might check that there are no blank lines in the required file
outside the tags.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Creditors have
are in in the query..(?)
>
> Heres my "I'm a newbie" question... exactly how and where do I define
> the variables so that i can use them in a different order than they are
> in the query?
Use extract ,which makes available variables of the same name as the
fields in your t
On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote:
> I was doing it like so ==>
> $string = array(var1, var2...);
> return string;
>
> I also tried to implode the array into a string and return the result,
> but no go.
>
> David Robley wrote:
> > On Thu, 30 Au
uot;>
>
> $cmd will not be passed to php, I have to do this:
>
> enctype="multipart/form-data"> value="null">
>
>
> Now I can use $cmd.
> Is this normal?
If you are trying to upload a file, I think you need to have a hidden
field for MAX_FIL
quot;;
$result = mysql_db_query($database, $query);
$row = mysql_fetch_array($result);
extract($row);
echo $myCount;
might do the trick; unless I've left a syntax error in there :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders Uni
iable from a function, but that variable can
be an array.
This is probably obvious, but you are assigning the result of the
function to a variable? Eg
$result = my_function($my_parameter, $my_parameter);
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY
at goes off the
> screen (ie the horizontal scrollbars show).
>
> Any help would be appreciated.
>
> Will.
nl2br() assuming that you have WRAP set in your TEXTAREA
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinde
fopen("$GrabURL", "r");
> $rf = fread($file, 2);
> $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);
>
> $printing[1] = str_replace("replacedatestamp", "withnewstamp",
> $printing[1]);
Here, reset your start and fini
p version
> here somehow puts up the warning ...
> Any helpful hints and ideas are much appreciated. Thank you!
There will probably be different levels of error reporting in the two
php.ini files.
view is an index of the array $HTTP_GET_VARS, and is apparently not
defined at that part of the
> > > but i still can't seem to get it to work with out it saying that
> > > > it can't find the path to php...any one got any ideas?!?
> > > >
> > > > btw. i know php is on it..
> > > >
> > > > I have tried contacting the
> > jim
As a debugging aid, use mysql_error() to trap any error messages returned
from the database, and mysql_affected_rows to determine the number of
rows affected by your update query. It _might_ be that your query is
valid, but actually no rows meet the criteria for update?
--
Da
your query, if it is a
complex one.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Reality is an obstacle to hallucination.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
second parameter sort_flags may be used to modify the
sorting behavior using theese values:
Sorting type flags:
SORT_REGULAR - compare items normally
SORT_NUMERIC - compare items numerically
SORT_STRING - compare items as strings
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin
I wouldn't want someone wandering around in my machine
and grabbing files at random.
But you can allow the client to select and upload files, which you could
then display in a text box. See the manual section on handling file
uploads.
--
David Robley Techno-JoaT, Web Maintainer, Mail List
nt to reply...
Have you tried which php or locate php? If you don't have shell access
you'll have to fiddle around with backticks or whichever of system() and
friends is appropriate.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
ate the various parts of the string with .
Breaking your code down a bit to make it more easily understood:
echo '';
echo 'http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1=';
echo $amyrow["address"] . '&city1=' . $amyrow["city"]';
On Thu, 23 Aug 2001 10:06, Casteele/ShadowLord wrote:
> Andy <[EMAIL PROTECTED]> wrote in article
> <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>...
>
> > See if is there some kind of echo before header()s, or HTML sent to
> > browser.
>
> No, I've been extremely careful to avoid that. The following a
ot; or can I do it something like this
> "SELECT * FROM table WHERE field LIKE ('%value1%' || '%value2%')"?
>
>
> Niklas Lampén
The first will work. If you are doing exact comparisons, the mysql
comparison operator IN may prove useful.
--
David Robley
On Thu, 23 Aug 2001 16:11, nafiseh saberi wrote:
> hi.
> how do I can wrk with time:
>
> 11:56:23 - 10:00:45 =
>
> thanks.
Have a look at the date and time functions - convert the time to seconds
and do the calculation (mktime) then turn it back to whatever format you
nto the new database; assuming that you are staying with the same DB
package.
Alternatively, you could use PHP (just to keep on topic) to read records
from the tables in the 'old' database and write to the 'new' database.
--
David Robley Techno-JoaT, Web Maintainer, Mail L
Thanks in advance.
Well, $fp is not the contents of the file, but just a pointer. What you
really want is file()
$text = file('./file.txt');
will give you an array $file, where each element is a line in the file,
with the newline attached.
To do the same thing after fopen()i
ist[] = $this;
recurse_dir("$this/");
};
};
};
?>
Call it with recurse_dir(dir-to_start) and get the results in $dirlist[]
Have fun. And yes, there's room for improvement, having looked at it for
the first time in a year or so :-) The first obvious would be to
> >
> > This is not working!! But this would :
> >
> >
> >
> > var temp = '<? echo $temp?>';
> >
> > Can you help me please?
> >
> > thanks Jens
Regular expressions? There is an example for ereg_replace in the manual
that
rray or
> something else? My select has the NAME "read".
>
> TIA,
>
> Raphael
Without checking that URL: the usual way to return the contents of
multiple select box as an array is to name the selct as an array with
name[] - so in your case, etc
--
David Robley
ier returned by ImageColorAllocate().
>
> Note "Im is the image identifier returned by ImageCreate()" - does this
> mean this function only works with images PHP has created?
I wonder if it might not work on the image identifier returned from
ImageCreateFromGIF, which is presumably
cute (1); the third
selects permissions for other users in the file's group,
with the same values; and the fourth for other users not
in the file's group, with the same values.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
for instance, and this causes a parsing
> error. Can I fix this without changing the fact I'm switching on a 3
> letter string?
>
> Cheers
You are sticking those values in quotes? Frinstance
switch($variable) {
case 'IBM':
break;
case 'DEC':
break;
case 'M
to a windy pipe dream or is there a simple solution for
> this ?
>
>
>
> Cheers
>
This, ever so slightly adapted from the example in the docs for readdir,
should do what you want
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY
On Mon, 20 Aug 2001 15:05, Chris Schneck wrote:
> Thanks to CC Zona and David Robley for their help in gettin this code
> out. This code is really nice for satisfying search engines. It offers
> different page content every time you refresh and if you feel like
> spamming, just use pr
are fetching fields named value and label for this
exercise, something like:
echo '';
while ($array = mysql_fetch_array($mysql_result)) {
extract($array);
echo '' . $label . '';
}
echo '';
Of course, you'll need to put some more info in your t
ve. You need to cycle through the results from the DB and add them
all to the array.
But having said that, it seems to me that what you are really trying to
do is to return unique entries from the database? In this case, look at
using the DISTINCT keyword in your SQL query.
--
David Robley
ave access to the variable $mykeywords either from
being passed as a parameter or made available as a global.
Also you misspelled $mykeywords in the function :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
701 - 800 of 1128 matches
Mail list logo