This is my favourite question. Can I clean up my 'if then' statements a tad?
Must be a cleaner way?
Still learning, still having fun :)
Thanks,
John
$news = mysql_query($sql) or die(print "document.write(\"".mysql_error()."\");");
$found = 0;
while ($mydata = mysql_fetch_object($news))
{
if
Yes, but must be a better way to setup my if.then's ?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> )
> >
> > What I want to get is the keys 'AN' and 'AU' as values.
> >
> > while (??){
> > echo "This key is $var[??]";
> > }
> >
> > This key is AN
> > This key is AU
>
> foreach($var as $key => $value
have this code.
snip
filter_strings("TI: ", $textarea)
function filter_strings($tofilter,$line){
if(eregi('^'.$tofilter.' (.*)$',$line,$m)) {
$filtered=$m[1];
rong feeling that POSIX regexs cannot do multiline, try using
> perl-compatible, or make a loop to read the textarea content line by line
>
> John Taylor-Johnston wrote:
>
> >I need to process the contents of
> >
> >SU: something ... blah blah¶
> >TI: Title ... asasa
t to use
>
> eregi("TI([^¶]*)¶",$line,$m)
>
> so it's not greedy.
>
> ---John Holmes...
>
> - Original Message -
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]&g
examples. phpbuilder.com also
> has a good article on them.
>
> ---John Holmes...
>
> - Original Message -
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 17, 2003 2:54 PM
> Subject: Re: [PHP] co
Hi,
I'm writing an academic paper detailing how my bibliographic database works.
$myinput = mysql_query($sql) or die(print "".mysql_error()."");
while ($mydata = mysql_fetch_object($myinput))
{
}
What is the usual, normal, standard nomenclature for $myinput and $mydata? How do
people "usually"
I'm blind or tired or both. Anyone see anything wrong with:
$sql = 'SELECT * FROM '.$table.' WHERE MATCH
(author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages)
AGAINST (\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) ORDER BY id asc;';
I've tried lookin
Thanks jason, john.
http://www.php.net/manual/en/function.mysql-fetch-object.php
$row and $result
Jason Wong wrote:
> On Sunday 23 March 2003 13:13, John Hicks wrote:
> > $result = mysql_query($sql) ;
> > ^
> > while ($rec = mysql_fetch_object($results))
> > ^
>
> I think $row is more c
Yeah, but it works it you pass it into MySQl. Obligatory I think.
I found my problem 10 lines up. A missing ; but singled out that line - just to
confuse me.
Sorry, it wasn't that after all. Thanks,
John
Tom Rogers wrote:
> Hi,
>
> Sunday, March 23, 2003, 4:25:29 PM, you wrote:
> JTJ> I'm blind
Hi,
I'm tired, it's late, I'm trying to remember two URLs, I should have bookmarked.
The first gives me the benchmark performance of Apache on the web. last I looked
Apache was at 60% of all Internet servers used.
There was another URL (probably the same site) that would tell me everything I wa
Who is Tim O'Reilly? In a nutshell?
http://www.oreilly.com/catalog/opensources/book/tim.html
http://oreilly.com/oreilly/about.html
Perl guru?
www.OpenSource.org founder?
software publisher?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks Chris. While I am waiting, can someone help put him in context of the whole
OpenSource culture? 10 words or less. I'm trying to finish a paper (university
humanities academic type and geek-like coder).
Chris Shiflett wrote:
> > Who is Tim O'Reilly?
> Ask him: http://oreilly.com/ask_tim/
What's the difference between www.GNU.org and www.OpenSource.org?
I have been reading:
http://www.oreilly.com/catalog/opensources/book/intro.html but don't get what DiBona,
Ockman & Stone mean. OpenSource permits folks like RedHat to distribute a paid CD, GNU
doesn't? OpenSource permits greating
Where does PHP.net stand? Is it GNU or OpenSource or both?
What's the difference between www.GNU.org and
www.OpenSource.org?
I have been reading:
http://www.oreilly.com/catalog/opensources/book/intro.html but
don't get what DiBona, Ockman & Stone mean. OpenSource permits
folks like RedHat to distr
Hi,
> > This is a list for questions about PHP. Look in the titlebar of your
> > browser when you go to www.php.net
> He was asking *where* PHP stands (regarding licenses), not *what* PHP
> stands for. Maybe PHP FAQ should have something about licenses.
Indeed, I did find somehting ... in the li
Rasmus, I hardly call it a "school" paper. I haven't done one of them in 25
years. But if you are not the one to ask, nor is the "general" list not the
place to ask, who do I email or where do I post to find out more about your
statement at: http://www.php.net/license/
"GPL enforces many restri
gestions where to ask, to give them a nudge :) ?
--
John Taylor-Johnston
-
"If it's not open-source, it's Murphy's Law."
Université de Sherbrooke:
http://compcanlit.ca/
--
PHP General Mailing Li
>John I'm not sure if you've noticed, ...
Larry, Pete et al.,
Point taken. I won't exacerbate the point, but php.net does point out the lists, and
this "general" group in particular, are for "talking about PHP".
"There are a number of mailing lists devoted to talking about PHP and related
pro
Lars,
Thanks. I am getting this error however:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
It does not like addslashes() because of the {}? What is a sensible work around? Or do
I even need addslashes??
if ($found)
{
$sql = "INSERT INTO $dbtable
(RNu
Lars, Much thanks. Life saving :)
Ignatius, I like your idea. Thanks to you too.
John
> if (isset($var[$key]['Option']))
> {
> // Flag that we got one this time round.
> $found = true;
> // Get the translated name from $var.
> $recor
Hi,
I'm looking for some forum script, a bit like this:
http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi
Can anyone post a link to something useful?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Who is the forum's owner?
I want to post questions using [EMAIL PROTECTED] and
[EMAIL PROTECTED] in my from: and reply-to:
I post infrequently to this list using news://news.php.net/php.general NOT
[EMAIL PROTECTED]
This is about the only list I post to. I've been receiving a lot of spam
Justin,
> Best advice is to post strictly to the newsgroup with a dud email address,
Unfortunately, that doesn't work. I had a hotmail address, but not acceptable. Someone
did not put it on the "accepted' list. Someone back there needs to accept that address
to allow that poster to post when u
Like I have a clue :)
I want to convert some fields from TEXT to VARCHAR(255).
(Going from a textarea to an input type=text)
I've checked the length of each $mydata->ST, so I won't be losing data.
What I am worried about is losing data if there are \n in any of the fields.
How do I check to see i
ived
> your anticipated positive reply. This matter should be
> treated as urgent and confidential. This is very
> important.
>
> Best Regards,
>
> Barrister George Emeka.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.
Hi,
Not your usual question. Sort of off-topic, but not really.
I'm doing a masters thesis on the interdisciplinary study of the use of
computer technology (especially MySQL, PHP & PHPMyAdmin)
in the study of and research on Comparative Canadian Literature.
http://compcanlit.ca/ ... Humanities
ere any way other than
>
> header("Location: http://www.php.net/";);
>
> to redirect to another page.
--
John Taylor-Johnston
-
' ' ' Collège de Sherbrooke:
ô¿ô ht
> Yes. I had something similar. Try putting 'Reply-To: [EMAIL PROTECTED]' in
> the fourth argument for mail. For some reason some systems balk without
> a reply address, I'm not certain why?
I questioned my ISP on that. They had something in their sendmail.exe
which prevented outgoing mail (scrip
e file the server doesn't need to
>alocate it in memory each time.
>
> Thanks
>
> Paulo Cesar
--
John Taylor-Johnston
-
' ' ' Collège de Sherbrooke:
ô¿ô http://www.collegesher
of PHP that is
> installed as a module in/for Apache? Basically, I want to have both on the
> same server. Or can this even be done?
>
> Thank You
> Steve
--
John Taylor-Johnston
-
&
Should find enough code for displaying graphics (and sending by smtp) in
this code.
You'll find some session stuff too.
HTH
J
http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/index.html.phps
http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/display_image.phps
http://www.co
a page that handles a form and I need to know whether or not a variable was created
>using the GET or POST method (I don't want the user to be able to to
>'foo.php?var=value' and mess with the results)
> - - Joe
>
> [EMAIL
I want to open a text file which has 12 lines and
(1) insert a new line at line[0]
(2) re-save the text file only with 12 lines (Therefore line[12] gets
chopped out.
I had some code to do this with Perl.
open (NEW, ">$filepath\\$file");
print NEW "$something";
for ($i = 2; $i < 12; $i
Are there alternatives to PHPMyAdmin available?
www.mysql.com/ is supposed to have one, no?
--
John Taylor-Johnston
-
- Université de Sherbrooke:
--
PHP General Mailing List (http://www.php.net/)
To
Sunday, June 09, 2002
But I would use:
Don't know why, but someone told me once it had something to do with versions.
John
Jeremy Bowen wrote:
> I am having nothing but trouble with the date function. I want it to print
> out a date like this: Saturday June 8, 2002 but as soon as I put spa
Absolutely. I've done it. Cookies are cookies.
What I don't like is that the cookie is not saved unitl after a submit.
In Javascript, I have JS code that will assign a value and save it to a cookie and
then recall the cookie value and document.write(myvalue), over and
over if I want, without EV
I added a comment to the FAQ:
http://www.php.net/manual/en/function.date.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This a binary? I was hoping for a web-based (PHP, Perl, ASP, etc.) alternative - like
PHPMyAdmin - to analyse.
"César l . aracena" wrote:
> Look in http://www.mysql.com/downloads/gui-mycc.html and download the
> The problem is that you can't issue multiple SQL queries, but that will
> be solved
Sorry Chris,
It's set at June 20th here? Maybe my NNTP server?
John
Chris Garaffa wrote:
> Hello,
> any chance you could set your clock to the correct date? It says July 6,
> and is really screwing up my sorting order for mail... thanks
>
> On Saturday, July 6, 2002, at 04:49 PM, jtjohnston.
--
John Taylor-Johnston
-
"If it's not open-source, it's Murphy's Law."
' ' ' Collège de Sherbrooke:
ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
-
Sorry, hit sent by accident :)
I have a cookie:
if (!isset($_COOKIE["weather_htm"]))
But I want the name of the cookie to include $StudentId like this:
if (!isset($_COOKIE["weather_htm".$StudentId]))
Of course, the line does not read the cookie.
What is the problem with my syntax please?
Joh
I create this cookie, using Javascript::
testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1
If the browser is reloaded, I want php to read the cookie and do my else statement.
Even after a browser shut-down and restart, I cannot get PHP to read the cookie (first
part of my if
I have a directory jammed-packed with images.
I want to read the directory contents /www/usr/htm/images/
and display randomly any *.gif or *.jpg in said directory.
Do-able? Seriously? Ideas? Places to start?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
As it turned out, all I had to do was get rid of the period "." and things began to
work better.
I also had to remember to close my browser and empty the cookie jar.
Thanks,
J
Jaap Van Ganswijk wrote:
> At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote:
> >I create
));
> echo "$num = $files[$num]";
> [/code]
>
> John Taylor-Johnston wrote:
> >I have a directory jammed-packed with images.
> >I want to read the directory contents /www/usr/htm/images/
> >and display randomly any *.gif or *.jpg in said director
Anyone have a quick fix for a part of an html page that I do not want to display until
after October 1st, and not after October 31st ?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay,
I should have though of that. Thanks.
"Jay Blanchard" <[EMAIL PROTECTED]> wrote:
>$display_start = "2003-10-01";
>$display_end = "2003-10-31";
>if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <=
>$display_end)){
>print($stuff);
>}
>?>
Cesar: Is your server is set up correctly?
This is kind of old-fashioned, but I created a counter that prevents hijacking.
"district" is a partial of the word in the URL. If it does not exist, echoes hijacking
...
snip---
if(stristr($HTTP_REFERER,"district"))
{
#...
#echo "document.write(\"$num_rows visitors since August 23, 2003\");"
use of formmail.pl these days would need
updating to protect it from spamming. Anything available?
--
John Taylor-Johnston
-
"If it's not open-source, it's Murphy's Law."
' '
I don't know if such an animal exists?
I use Windows Wordpad as a text editor. Then I use Microweb from:
http://www.indigostar.com/microweb.htm
You might want to download a newer copy of PHP from http://www.php.net/downloads.php
This is lilkely not what you are looking for, but will do a very nice
I have a form. It has any number of hidden fields, named "exercise 1-100". Their names
all start with "exercise" as in:
... ?
any number fo these possible ...
How can I create one scipt that will recognise all of them? Any number of them. My
idea is a bit like formmail.pl that reads any old
Ok, but the problem is that I will, might have other fields. I need to filter out just
the exerciseN fields. Interesting though thanks,
John
Brad Pauly wrote:
> You could just loop over the _POST array.
>
> foreach ($_POST as $field_name => $field_value) {
> $content .= "$field_name = $f
Brad. Perfect thanks.
> Brad Pauly wrote:
> foreach ($_POST as $field_name => $field_value) {
> if (stristr($field_name, 'exercise')) {
> $content .= "$field_name = $field_value\n";
> }
> }
Tom, Not sure why, but wouldn't work
>Tom Rogers wrote:
>if(isset($_POST['exercise'])){
$MySQLver[0] doesn't seem to echo anything. Code used to work, on another server.
Problem with php version?
PHP Version 4.1.2
Just updated to MySQL version MySQL 4.0.15-standard
Can't find "MySQLver" in phpinfo.
if($MySQLver[0] >= 4){
$sql = 'SELECT * FROM '.$table.' WHERE MATCH (KW,AUS,GEO) AGA
John,
Thanks! Actually, I just did a bit of reading.
http://www.phpbuilder.com/mail/php-general/2001071/1540.php
MySQLver was implemented in PHP 4.0.5. My fault.
Sorry. Thanks for the read.
John
"John W. Holmes" wrote:
> John Taylor-Johnston wrote:
>
> > $MySQLver[0
Are there other ways of embedding or code into an HTML file? On one
project, when I try to upolad files with embedded PHP code, they actually filter for
those tags and won't permit the FTP transfer. Like reeeal paranoid. Any ideas?
John
it before for some vb script.
What do I do now? Anything in the php.ini I could turn off?
John
Spectre013 wrote:
> Try
> //php Code here
>
> Are there other ways of embedding or code into an HTML
> file? On one project, when I try to upolad files with embedded PHP c
John
Apache.
How exactly?
John
"John W. Holmes" wrote:
> John Taylor-Johnston wrote:
> > Brian or anyone,
> >
> > Ok, supposing I don't want someone to be able to use
PHP is Open Source. This is the general forum. Here is my suggestion:
Create $_SERVER['REMOTE_HOST'] as a variable.
$gethost = gethostbyaddr($_SERVER['REMOTE_ADDR']);
is getting old. Anyone agree?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
How do you do that?
> Wouldn't it be a WHOLE lot smarter to just disable/enable PHP for
> specific sites/folders, etc? What web server are you using?
Anyone?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do you do that?
> Wouldn't it be a WHOLE lot smarter to just disable/enable PHP for
> specific sites/folders, etc? What web server are you using?
Anyone?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$sql1 works, but $sql2 doesn't. Am I asking too much? :=)
$sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but this way as php
code, it flunks out when I add:
DELETE FROM '.$db.'.'.$table.' WHERE id='.$id.' LIMIT 1;
Ideas?
John
snip -
$sql1 = 'inser
John,
Oops, that's a little sarcastic :=)
Take it easy on the guy. We don't want them running screaming back to the Perl
newsgroups, do we?
John
> [EMAIL PROTECTED] wrote:
> > Hi, I'm searching for a free web space that supports php/mysql.
> > Someone knows something about?
> > Thanks too much
>
MySQL manual for more information.
>
> Otherwise, you'll need to parse the search box data to break it up into
> individual words, then create a query like...
>
> WHERE column LIKE '%$var1%' AND column LIKE '%var2%%'..
t support ; to separate queries.
> phpmyadmin splits multiple query strings up (PMA_splitSqlFile())
>
> John Taylor-Johnston wrote:
> > $sql1 works, but $sql2 doesn't. Am I asking too much? :=)
> > $sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but this wa
Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically looking for
better functionality and wanting to learn how to clean up my code.
John Taylor-Johnston wrote:
> So I should break it up my two queries?
>
> $sql = 'insert into '.$db2.
What about some javascript to alert() and decide if the form executes like phpmyadmin
does:
http://ccl.flsh.usherbrooke.ca/example.jpg
This would save me time coding PHP.
How can I accomplish this? What does the onsubmit look like?
John
> * Thus wrote John Taylor-Johnston ([EMAIL PROTEC
Curt
> Oh, and IMO, there isn't anything unclean about having two sql
> query() statements. It keeps the code more readable as to
> what you're trying to doing.
I agree. I also think I should just try to emulate what phpmyadmin does. KISS
principle.
Thanks!!!
John
--
PHP General Mailing List
Can someone recommend a good URL on cookies and security issues please?
I can program them, but am told I'm putting others at risk, forcing people to use
cookies on my site.
--
John Taylor-Johnston
-
Universi
Nothing much. Been receiving flack about forcing people into cookies. Much
misunderstood info about cookies. I need an URL to pass on for extra reading, as
rebuttal.
"Chris W. Parker" wrote:
> John Taylor-Johnston <mailto:[EMAIL PROTECTED]>
> on Tuesday, October
How can I verify if my ISP really does have PHP on a server I am using. They say if I
want PHP, I must pay an extra $15 per month. Is there somehting I can put in my
.htaccess to verify and maybe do this?
AddType application/x-httpd-php .php .php4 .php3 .phtml .htm .html
Add
Thanks Adam,
:=) First thing I tried.
Oh well.
John
> > How can I verify if my ISP really does have PHP on a server I am using. They say
> > if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in
> > my .htaccess to verify and maybe do this?
> >
> >
> > A
Moodle.Org, an OpenSource project, needs help.
We need someone to help program a module to import WebCT quiz data into Moodle.
Any takers with a big heart for a worthwhile educational project?
John :=)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Can someone help me get started?
Anyone ever use WebCT? It uses quizzes, field types described here.
https://online.csus.edu/web-ct/help/en/designer/quiz/quiz_transfer.html#formats
Can someone help me parse them out please? I don't want to pay for WebCT. It was a GNU
project gone commercial. It
I have done this (below) already. I suppose. I will have to explode by \n.
One of my problems is that with ":QUESTION:{H|T}", the question is on the next line.
Exploding by \n puts my question text into the next line_field[]. "Note: Multiple
lines of text are permitted."
Getting that variabnle c
Sorry, don't want to be off-topic, but have found something curious about MySQL
4.0.16-standard.
It does not seem to prioritise properly. Searching for 'English Canada'
(as opposed to +English +Canada)
gives me all instances of both words but does not prioritize the display order for
'English Can
Capitalised. There is no date (f) for a lower case?
--
John Taylor-Johnston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Capitalised. There is no date (f) for a lower case?
--
John Taylor-Johnston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld I
express this line please :) ?
--
John Taylor-Johnston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did I miss something at the FAQ? date("F"); gives me this month. Can I get it to give
me next month?
These combinations don't work:
What is the minimum version for this to work? Or is this my problem? It echoes "1" in
the html.
http://www.php.net/manual/en/function.date.php
John
--
PHP Ge
Thanks. Duh :)
> replace the + symbols with . and also date(F) should be date('F').
Sleepy time.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks!! :) Getting tired at this hour.
Is there a way to detect the language of the browser and echo the name of the month in
that language?
>
Thanks,
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps
I'm trying to "session_unset()" - it worked I thought.
session_unset("postcard");
unset($postcard);
unset($MyImage);
Go to:
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.php
and "click me".
I
Source is here:
> http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps
>
--
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, e-mail: [EMAIL PRO
Start at index.html. It goes to postcard.php. When I click on submit in
postcard.php, if I change any of the values in the form, the session
values received in send_mail.php do not change. Anyone have an idea what
I have done wrong now?
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/postcard
It may not work, if you are running Windows PHP on your localhost at home.
I'll bet you are trying to log getenv('REMOTE_HOST').
Been there done that. I use http://www.indigostar.com/microweb.htm to create a
localhost to develop and debug and then upload to the server. (I pay for modem
time.) I re
I'm reading data. Can I open a connection within a connection and write data to
another $db.$table or do I have to write my data to an array. In an array, how do I do
this?
I've looked at array_push, but don't think this is what I want?
$authors = array();
array_push($singleauthor,$mydata-
Can someone help me, show me how to do this please?
1. How do I write $mydata->AUS and $mydata->id into an array?
$authors = array();
while ($mydata = mysql_fetch_object($news))
{
# echo "$mydata->AUS, $mydata->id\n";
??? write to array
}
mysql_close($myconnection);
2. Then I need to create $SQL
ere--
mysql_query($sql)
It's a little more complicated than that, but advice on coding this much would help.
John
P.S. my condoleances to New York today. Can't believe it was 3 years ago already.
John Holmes wrote:
> John Taylor-Johnston wrote:
> > 1. How d
Thanks. As a newbie, something I like to try also is making a second file with phps as
the extension.
Sometimes reading my code in colour helps me see things better. Sometimes I forget a
semi-colon ";" and will see the problem immediately.
Ma Sivakumar wrote:
> =
John,
$sql .= "INSERT INTO newtable VALUES ({$mydata->AUS},{$mydata->id});\r\n";
I thought mysql would not permit that, running more than one query (insert ...) at a
time?
You can get away with it in phpmyadmin, although.
--
John
MySQL question:
DROP TABLE IF EXISTS
Instead of dropping the table, I want to truncate the table if it contains something.
ANyone know of a way? I couldn't find anything under truncate in the manual.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
t;\n";
echo " ";
echo "";
$temp = "";
foreach ($author_list[$author] as $ausid)
{
$temp .= "$ausid, ";
}
$temp = substr("$temp", 0, -2);#delete ", "
echo "$temp";
t;\n";
echo " ";
echo "";
$temp = "";
foreach ($author_list[$author] as $ausid)
{
$temp .= "$ausid, ";
}
$temp = substr("$temp", 0, -2);#delete ", "
echo "$temp";
Jason, I agree. Sorry. I sent it as a "new message". I will try again,
John
Jason Wong wrote:
> You have started a new thread by taking an existing posting and replying to
> it while you changed the subject.
>
> That is bad, because it breaks threading. Whenever you reply to a message,
> your mai
t working. How do I get to let me make comparisons between the post
> data and something else? I figure if I can get it so that this will work,
> it'll be an easy way to password protect my pages...
>
> -Andrew
--
John Taylor-Johnston
---
echo "";
> echo "$author";
> echo "".$count." records found/trouvés)";
> echo"\n";
> echo " ";
> echo "";
> $temp = "";
> foreach ($aut
echo "";
> echo "$author";
> echo "".$count." records found/trouvés)";
> echo"\n";
> echo " ";
> echo "";
> $temp = "";
> foreach ($aut
401 - 500 of 829 matches
Mail list logo