Hi,
I am trying to send html pages via email, that is instead of sending plain text format
to the client I am trying to send Rich Text using mail function of PHP. At first I was
sending
--
Hello Bob,
Thanks for downloading this from my site
--
php-general Digest 12 May 2002 10:20:39 - Issue 1340
Topics (messages 97166 through 97211):
an sql_layer
97166 by: http://www.promoozz.org [*]
97171 by: Austin Marshall
PHP Hosting ...
97167 by: Tim Thorburn
PHP 5??
97168 by: Tim Thorburn
97169 by:
If you read up about 10 messages you'll get the answer.
Also, RTFM. (Don't ask what that means, because if you read up 10 messages
you'll find out)
http://www.php.net/manual/en/function.mail.php
- Original Message -
From: "Salman Ahmed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
Hello jtjohnston,
Saturday, May 11, 2002, 11:42:52 PM, you wrote:
j> This is a bug "Feature/Change Request" I made to:
j> http://bugs.php.net/bug.php?id=17158
j> setcookie() states "cookies must be sent before any other headers
j> are sent (this is a restriction of cookies, not PHP).
j> I argu
Hi guys,
Got a little prob that's got me stumped.
This simple image generator script:
http://scripts.operationenigma.net/image_generator.php
Source: http://scripts.operationenigma.net/image_generator.phps
works, I know because it was working on my system before I recompiled PHP.
Feel free to have
$SCRIPT_URI works sweet.
-J
On Fri, 10 May 2002 02:47:39 +1200, Peterv wrote:
> Hi,
> I'm using apache rewrite and I need to get the URL that I see in the
> browser. When using $REQUEST_URI I get the page where the rewrite is
> being redirected to. How can I get my hands on the actual URL that
On Sun, 12 May 2002 00:07:57 -0500 (CDT)
[EMAIL PROTECTED] (Miguel Cruz) wrote:
> On Sat, 11 May 2002, Alex Shi wrote:
> > Thanks for all of you who answered my question. But another of
> > my stupid question is: what is RTFM?
>
> RTFM == Read The Flurking Manual
Or Read the fine manual
(or r
$file needs to be an array:
$file = file("myfile.txt");
On Sun, 12 May 2002 12:56:08 +1200, Brian C. Doyle wrote:
> Hello all,
>
> I have a file that has ip address in it.. I need to pull those ip
> addresses out.
> Currently I am trying:
>
> $ips=preg_grep("/^([0-9]+)\.([0-9]+)\.([0-
Hiya,
I want to be able to raise an error in some code I'm creating for reuse,
most parts of this code deals with errors and just uses defaults as
appropriate,
but I need to be able to raise an error that will stop the PHP script
interpreter and throw an error back to the developer.
I've tried se
Hello all,
I did foget to mention that I had $file as
$file=file("Status.htm");
and it reads the file as 1 line it seams.
At 11:31 PM 5/12/02 +1200, Jason Morehouse wrote:
>$file needs to be an array:
>
> $file = file("myfile.txt");
>
>On Sun, 12 May 2002 12:56:08 +1200, Brian C. Doyle
How about looking through the table of contents... ??
XXVII: Error Handling and Logging Functions
http://www.php.net/manual/en/ref.errorfunc.php
---John Holmes...
> -Original Message-
> From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 5:55 PM
Todd,
/usr/bin/mysqladmin
HTH
Chris
Todd Cary wrote:
>I tried "locate" and "find" and both come up empty for mysqladmin.
>
>Am I missing something stupid here?
>
>Todd
>
>--
>Todd Cary
>Ariste Software
>2200 D Street Extension
>Petaluma, CA 94952
>707-773-4523
>[EMAIL PROTECTED]
>
>
>
--
P
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I hope someone might help me with a little puzzle...
I have bunch of db results and one of the fields is 'name',
I want to see if there are 2 parts to it like FirstName LastName and if
so order by the last name.
I can see explode() being t
Hello
I have recently been trying to parse an XML document that has different
content in the same tags. Here is an example:
1
2
3
...
I am trying to get the content from into an array. I want the
content of the first to go into $p->ART_ID[0] and the next to go
into $p->ART_ID[1] and so on. He
Hey guys and gals,
I have a problem:
I have a mysql databse with 4 rows, and each row (row1, row2, row3, and row4)
contains a sentence. now i want these sentences to appear in random order:
instance: 1 2etc.
row2 row4
row4 row2
row1 row1
row3 row3
Hello,
I'm David Duong of the CGI open source Foundry. We are looking for a script
to produce. If you have a good script an would like some programmers to
help develop it I invite you to visit http://cosf.sourceforge.net.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
On Monday 13 May 2002 00:23, Nick Wilson wrote:
> Hi all,
> I hope someone might help me with a little puzzle...
>
> I have bunch of db results and one of the fields is 'name',
> I want to see if there are 2 parts to it like FirstName LastName and if
> so order by the last name.
>
> I can see expl
Also, try locate again now that it's been a day. The locate database
usually gets updated overnight, so it doesn't immediately reflect new
additions.
miguel
On Sun, 12 May 2002, Chris Hewitt wrote:
> Todd,
>
> /usr/bin/mysqladmin
>
> HTH
> Chris
>
> Todd Cary wrote:
>
> >I tried "locate" a
On Sunday 12 May 2002 08:45, Michael Geier wrote:
> While I understand the necessity in not answering every question that a
> newbie may post, a more pleasant approach would have been:
>
> "the following is documented at
> http://www.php.net/manual/en/function.mail.php"; or
> "see the Content-Type
Hi there,
I did upgrade to 4.2 and now I am "recoding" :-( my whole application.
So I did get behind the basic idea, but there is one case, where I just dont
know how to solve it:
Im a doing something similar like on php.net when you type in
php.net/functionname. In my .htaccess file I do redi
Nothing to do with PHP...
SELECT * FROM table ORDER BY RAND();
---John Holmes...
> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] random order
>
> Hey guys and gals,
> I have a problem:
> I have a
basicly this problem seems to result of the new way I do get the string from
the url
I used to get it with $PATH_INFO
Now I do a $PATH_INFO = $_SERVER[REQUEST_URI];
which is not the same result.
Does anybody know a equal command for $PHP_INFO ?
ANdy
"Andy" <[EMAIL PROTECTED]> schrieb im New
Hey there guys,
I have a slight problem which i could not solve via Java servlets and now
that I am migrating to PHP I was wondering if its possible...
I am hosting with a company that has given me a database (MySql) I am using
the database for all my apps which are only being accessed via my
ser
You really want to handle this in your database. If you need data to be
in two fields, first name and last name, then put it in your database
that way. Save yourself some time. How easy is it to just add another
text field in your form, and insert one more variable into the
database???
Whatever
> In php4.1.1 it worked fine. Now I changed the first function to:
> $PATH_INFO = $_SERVER[REQUEST_URI]; (was $PATH_INFO in 4.1.1)
$PATH_INFO worked fine because register_globals was on
which essentially created $PHP_INFO from $_SERVER['PHP_INFO']
so how about you do this:
if (!ini_get('r
On Monday 13 May 2002 15:05, r wrote:
> Hey there guys,
> I have a slight problem which i could not solve via Java servlets and now
> that I am migrating to PHP I was wondering if its possible...
>
> I am hosting with a company that has given me a database (MySql) I am using
> the database for all
Yes, it's certainly possible. You will have to talk your host into
giving you remote access though, which could be hard.
How permissions work in MySQL is that your username is given permission
to connect from a specific host. Generally, the host is listed as
'localhost' meaning the script has to
thanx, this worked
Andy
"Philip Olson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
Pine.BSF.4.10.10205121820290.61243-10@localhost">news:Pine.BSF.4.10.10205121820290.61243-10@localhost...
>
> > In php4.1.1 it worked fine. Now I changed the first function to:
> > $PATH_INFO = $_SERVER[REQU
Jose Leon wrote:
>
> It would be nice that php itself incoporates a system to debug php
> programs, like in PHP 3, in that way a development tool for php would
> be enabled to debug modifying the php.ini with debug.enabled=true and
> listening to a port. The system will work on any php distri
R wrote:
> Hey Guys,
> I thank each and everyone one of you who replied, yeah, i got flamed a
> couple of times from some of you for the "sleep" bit but need i remind you
> that i am a newbie?
You didn't get flamed because you're a newbie, you got flamed
because it appeared you didn't do ANY res
I actually asked this same type of question not too long ago. Just separate
the name field into first_name and last_name - it'll be better in the long
run. It's not as hard as it sounds - dump your table, use some program that
will read comma delimited stuff and export as tab-delimited (I used Exc
hmm it got a little more complicated now,
i have a table with: id title question answer1 answer2 answer3 answer4.
how can i use all of those in a php page but only randomize the answers?
so i get
title title
questionquestion
answer3 answer4
answer2 answer1
ans
I've looked about for an 'Email Confirmation' script that many sites use for
verifcation of wannabee new members. That is, the person subscribes, is sent
a 'confirmation' number to which they must have in the 'Subject' area of
their reply.
I would like to implement this on my site, but I have
I was wondering if anyone knew of any good Boolean interpreters (NOT,
AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I
wouldn't put them into production. Frankly, I don't have the time,
patience, or ability to write a good one from scratch. Here are the
three I've found in cas
I would suggest just sending them an email with a
link like this and telling them to click on it to
confirm their membership.
http://www.mysite.com/confirm.php?uniqueid=2i3k238
s9sd0s99d
The confirm.php page would look up the uniqueid
and try to find it in your database. If it's
there then that
Thanks,
Now why didn't that ever occur to me? It's simple and very effective.
Thanks for the idea!
Regards,
Andre
On Sunday 12 May 2002 04:51 pm, you wrote:
> I would suggest just sending them an email with a
> link like this and telling them to click on it to
> confirm their membership.
>
>
Hey,
Why dont you just add a link to a script and validate it like that?
eg:
Click below to confirm you email id
**
http://yoursite.tld/confirm.php?[EMAIL PROTECTED]&confirmno=5675678
**
Once you get the confi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then John Holmes declared
> Whatever kind of "hack" you come up with in PHP is going to be a waste
> of time and memory.
Depends on your view point, the client was happy with one field for the
name and now wants the records returned sorte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jason Wong declared
> If that is what you want then:
> while (names) {
> explode the name
> if there is more than one element swap it, then join
> add this processed name onto a new array
> }
>
> use one of the array sort functi
Just make sure the url fits on one line in the
email which mine doesn't.
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: May 12, 2002 5:06 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] E-mail Confirmation script?
Thanks,
Now why didn't that ever occur to me?
That's just not the case. The debugger in PHP 3 would not work at all in
PHP 4 and would need a complete rewrite. So, being cynical you might say
that someone should have written a debugger for PHP 4 and the fact that
nobody did was the conspiracy, but it makes no sense to say it was removed
for
Sunday, May 12, 2002, 6:39:31 PM, Sebastian A. wrote:
> Hello
> I have recently been trying to parse an XML document that has different
> content in the same tags. Here is an example:
> 1
> 2
> 3
> ...
> I am trying to get the content from into an array. I want the
> content of the first to g
http://www.iawiki.net/ReferrerLinking
I'm looking for existing PHP scripts that generate a list of pages linking
to your page. Anything already written out there?
Thanks,
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rasmus Lerdorf wrote:
> That's just not the case. The debugger in PHP 3 would not work at all in
> PHP 4 and would need a complete rewrite. So, being cynical you might say
> that someone should have written a debugger for PHP 4 and the fact that
> nobody did was the conspiracy, but it makes no s
tnx for the response,
it was the query which caused the errors ("wrong result-link").
grtzz,
me.
[ProMoozz signature script initiated]
[Sharon equalzz Hitler]
[msg written - msg read]
[ProMoozz signature script terminated]
http://www.kotbelas
Instead of switching hosting companies, why don't you just install
phpMyAdmin on your webspace, that way you can control your mySQL databases
in a far more user-friendly way than SSH will let you do
"Tim Thorburn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
Check to see that you have the mysql client package installed:
`rpm -q MySQL-client`
If not, grab it!
-J
On Sun, 12 May 2002, Chris Hewitt wrote:
> Todd,
>
> /usr/bin/mysqladmin
>
> HTH
> Chris
>
> Todd Cary wrote:
>
> >I tried "locate" and "find" and both come up empty for mysqladmin.
> >
I'm having a problem with using cookies and flash, I'm new to php so it's
more then likely my coding, I have a forum made from flash/php/mysql, and
I'm trying to use cookies for the username and password so they dont have to
log in, I have manage to create the cookies no problem, its the rest that
> hmm it got a little more complicated now,
> i have a table with: id title question answer1 answer2
> answer3 answer4. how can i use all of those in a php page
> but only randomize the answers?
You have multiple questions with the same answers? Then split your
table into two tables and p
> I have a mysql databse with 4 rows, and each row (row1,
> row2, row3, and row4)
> contains a sentence. now i want these sentences to appear in
> random order:
I've always found mysql's RAND() function to be of use. Specifically:
SELECT * FROM MyTable WHERE Some='Condition' ORDER BY RA
This is a bit of a tricky one, as a search engine isn't just some 10 line
code you can quickly type and expect to work. It'd be quite complex, because
you have to run several queries for each of the boolean types, and you also
have to account somehow for case-sensitivity.
I'm currently working on
I am running mod PHP 4.0.6 with Apache
1.3x.
I am using session variables to pass various access
information. Everything works like a charm until I popup a new window
using Javascript. The session variable is set but to the wrong
value.
Has anyone else run into this issue or have an
php-general Digest 12 May 2002 22:31:35 - Issue 1341
Topics (messages 97212 through 97262):
Re: Sending Html Pages
97212 by: Liam MacKenzie
Re: setcookie()
97213 by: Olexandr Vynnychenko
GD (Image generator) {?!}
97214 by: Liam MacKenzie
Re: Apache rewrite engine
Well, a search engine is not a trivial proposition. If you just have a few
hundred records without huge amounts of text, you can build SQL queries
and it's no big deal.
But if you expect it to scale, you need to turn the problem upside down
and index the words. This means you build a table of wo
is it possible to set a cookie that never expires?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Larry Linthicum wrote:
> is it possible to set a cookie that never expires?
>
>
Not really, but be realistic. If you want a cookie that lasts longer
than what seems reasonable give it a lifetime of a year or longer.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
If the file is relatively small, then the easiest would be to use file() which reads a
file into an array
$file_array=file($filename);
$text=$file_array[$line];
cheers,
thalis
On Sat, 11 May 2002, Andrew Conner wrote:
> I have a script where I need to get the text from line number "$line" in
It can be tricky to write download wrappers that work with all browsers.
Some versions of Internet Explorer seem especially troublesome.
I've found wrappers like these seem to work fairly well:
initialization();
authorization($user,$pw);
$info=get_file_info($filepointer);
### SEND HEADERS ###
he
Hi:
How do I generate gif inline images using PHP's image functions using GD
libs. Everything I have seen so far requires a header before generating
the image. But I want the image embedded into a table with other
texts. Thank you for the help.
Frank
--
PHP General Mailing List (http://www
At 4:50 PM -0400 12/5/02, SpamSucks86 wrote:
>I was wondering if anyone knew of any good Boolean interpreters (NOT,
>AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I
>wouldn't put them into production. Frankly, I don't have the time,
>patience, or ability to write a good one
I am a little confused on how to keep a variable registered on more than one
page. For example you log into a page which queries the database. Form
code is as follows...
User Name:
Password:
The auth_done.php then checks to see if the user entered anything for the
username and pas
Hi all,
Can anyone tell me if there is any reason why this would not be working?
mysql_connect($DBhost,$DBuser,$DBpass) or die(header("Location:
error.php"));
What im trying to do is connect to the database and if that fails send the
browser to the error page. But the browser just sits there on
> Can anyone tell me if there is any reason why this would not
> be working?
>
> mysql_connect($DBhost,$DBuser,$DBpass) or die(header("Location:
> error.php"));
Why bother calling die() at all there?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Your tag calls a script (imagemaker.php) which generates the image for
you the parent script (eg home.php) doesn't generate the image inline,
to the best of my knowledge.
Justin French
on 13/05/02 10:01 AM, Engineering Software Center
([EMAIL PROTECTED]) wrote:
>
> Hi:
> How do I generat
HTML docs only contain text. If you want images "inline" then you use the
tag.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] Generate inline image
Your tag calls a script (imagemaker.
Hi!
I want to know how can a script obtain the page name where
it was linked. e.g., there's a link on page.html, and the link
points to script.php, how can script.php know the name of
page.html? Thanks in advance for all answer!
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsub
if you have the globals setting in your ini file set to "on" then you can
use: $HTTP_REFERER
otherwise, I think, it's found in $_SERVER["HTTP_REFERER"] - just check for
something like that in phpinfo();
-Original Message-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 200
I am referring to whole PHP/Perl files. It is necessary to load them as
much as 20+ times within the same hour what would be better MySql or
Flatfile?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just would like to know how you restrict php to certain extentions before
you compile.
/=\
/ Andrew DeFever \
/ Terraworld Inc. \
/ 888 332 1616\
/=\
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If the content is going to be the same each time, then loading from a
flat-file would probably be better, because accessing a database would
require the connection to be established, the database to parse and execute
your query, then send that data back. Where as reading from the file, it's
just o
At 10:49 AM +1000 13/5/02, Martin Towell wrote:
>if you have the globals setting in your ini file set to "on" then you can
>use: $HTTP_REFERER
Watch out though... the HTTP_REFERER data is provided by the user
and cannot be trusted. It can't even be guaranteed to exist.
If all the pages are on th
Ok,
Let's see if I learned anything
- Original Message -
From: "Jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 2:30 AM
Subject: [PHP] sessions
> $msg = "You have been authorized to make changes to
the
> web site.";
> session_is_registered('u_name');
>
> if you have the globals setting in your ini file set to "on"
> then you can use: $HTTP_REFERER otherwise, I think, it's found
> in $_SERVER["HTTP_REFERER"] - just check for something like
> that in phpinfo();
Just to be picky, predefined reserved server variables will
always exist in both
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I am using the latest phpMyAdmin and MySQL 2.23.37. I have installed and
> compiled it on a Sun Cobalt RAQ4r. I need to have it set up so that
> customers with different websites cannot see or work on other cutomers DB's,
> but each v
> How do I generate gif inline images using PHP's image
> functions using GD libs. Everything I have seen so far
> requires a header before generating the image. But I want
> the image embedded into a table with other texts. Thank you
> for the help.
Write the php to generate the ima
Hi guys,
Got a little prob that's got me stumped.
This simple image generator script:
http://scripts.operationenigma.net/image_generator.php
Source: http://scripts.operationenigma.net/image_generator.phps
works, I know because it was working on my system before I recompiled PHP.
Feel free to have
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Kris Vose) wrote:
> Can you practice function over-loading in php?
>
> Kris
No you cannot overload in PHP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > Can you practice function over-loading in php?
>
> No you cannot overload in PHP.
You can achieve the same effect (having the same function do
something else in a different circumstance) by making
parameters optional:
$param1 is required, $param2 is optional - if its not
supplied when the
Well, not in the procedural sense, but you can do method and property
overloading on objects. See http://php.net/overload
-Rasmus
On Sun, 12 May 2002, Smileyq wrote:
> In article
> <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Kris Vose) wrote:
>
> > Can you practice function over-loading in php?
Hi to all,
Sorry for bringing back this type of topic, But this type of header call
really doesnt work for me here. I've tested many time's the example below
that was given by Dan but it really doesnt work. Im already using php4.2 in
apache 1.3.24 . Based on the example below i've just removed/un
I want to do the following:
Big chunk of text is stored in variable $a. Paragraph breaks are
signalled by two line breaks.
I want to just extract the first paragraph (i.e., all the text up to the
first set of two line breaks) from $a.
How would I do this?
I tried exploding $a into an array,
On Sun, 12 May 2002, Steven Jarvis wrote:
> I want to do the following:
>
> Big chunk of text is stored in variable $a. Paragraph breaks are
> signalled by two line breaks.
How big is big? 100 lines? 10,000 lines? 1,000,000 lines?
> I want to just extract the first paragraph (i.e., all the tex
I am having a form, I want to write the form values into csv file.
I just want to know whether it is necessary (compulsory) to have file lock
before writing to file?
There is only my program which is writing in the file - no other program.
But many users can connect to web at a time - So is it
On Sun, 12 May 2002, Smileyq wrote:
> [EMAIL PROTECTED] (Kris Vose) wrote:
>> Can you practice function over-loading in php?
>
> No you cannot overload in PHP.
In a particularly masochistic project, we achieved function overloading by
creating a global array $F that linked public to hidden names
On Mon, 13 May 2002, Manisha wrote:
> I am having a form, I want to write the form values into csv file.
>
> I just want to know whether it is necessary (compulsory) to have file lock
> before writing to file?
>
> There is only my program which is writing in the file - no other program.
> But
At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote:
>
> > I just want to know whether it is necessary (compulsory) to have file lock
> > before writing to file?
> >
>
>It is definitely a good idea if you don't want corruption. You may find a
>database is easier in the long run.
Do you mean to say that
I don't know if this will work or not, but try
SELECT * FROM table ORDER BY id, RAND();
That should keep all of the questions and answers together, but give a
random order for the answers.. ?? Like I said, not exactly sure on it
though.
Best option, like someone else said, is to split this up i
Hi,
I have a table that's full of references to indexs in other tables if I want
to insert a new record do I have to make a script to insert into all the
tables ie:
insert script for table 1
insert script for table 2
insert script for table 3
insert script for table 4
or can I have it all in on
On Mon, 13 May 2002, Manisha wrote:
> At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote:
>>> I just want to know whether it is necessary (compulsory) to have file lock
>>> before writing to file?
>>
>> It is definitely a good idea if you don't want corruption. You may find
>> a database is easier in th
Isn't this more of a database question than a PHP question?
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 1:38 PM
To: Php
Subject: [PHP] inserting data to mutliple mysql tables
Hi,
I have a table that's full of references to indexs in other tables
This is a MySQL question, not a PHP question.
Anyway, with MySQL you can't do this as a single operation. Do your
inserts one after the other. You can use mysql_insert_id() after each one
to get the value of an auto_increment field that was created, and feed
that into your next SQL statement.
m
Thanks Miguel,
Manisha
At 10:38 PM 5/12/02 -0500, Miguel Cruz wrote:
>On Mon, 13 May 2002, Manisha wrote:
> > At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote:
> >>> I just want to know whether it is necessary (compulsory) to have file
> lock
> >>> before writing to file?
> >>
> >> It is definit
You have to do separate inserts...you can't JOIN inserts like that...
---John Holmes...
> -Original Message-
> From: Peter [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 8:38 PM
> To: Php
> Subject: [PHP] inserting data to mutliple mysql tables
>
> Hi,
>
> I have a table that'
Alex Shi wrote:
> Hi!
>
> I want to know how can a script obtain the page name where
> it was linked. e.g., there's a link on page.html, and the link
> points to script.php, how can script.php know the name of
> page.html? Thanks in advance for all answer!
>
> Alex
$_SERVER["HTTP_REFERER"]
On Monday 13 May 2002 08:54, Andrew DeFever wrote:
> Just would like to know how you restrict php to certain extentions before
> you compile.
You mean whether or not to interpret file as php depending on .php, .php3 etc
? If so that is determined at run-time by your webserver.
--
Jason Wong ->
I have an SQL Server database running on a server on the internet. I
need to have php connecting to the db and returning values. Simple
stuff. No problem making the connection and getting data using the mssql
functions. The weird thing is that 4 of the fields in the table are
vchar fields of l
Thanks for the reply. But how do I do that exactly?
?
is this correct?
> HTML docs only contain text. If you want images "inline" then you use the
> tag.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yep, then in the file generateimage.php you'd have
obviously, the above "code" is for png, but you can use any that your gd
library/broswer supports.
-Original Message-
From: Engineering Software Center [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 2:42 PM
To: Martin Towell
Cc:
Thanks every one who replied
Sorry for posting that question here.
Miguel thanks for putting me on the right track with this .. i couldn't get
it to work with mysql_insert_id() but looking that up it basically said that
this one works better LAST_INSERT_ID() but I wouldn't have found that if
yo
I am searching for good XML related mailing lists / sites etc. Please give
me some info about this.
manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 102 matches
Mail list logo