Thanks, ya'll! Got it working.
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I have a basic question I can't figure out.
>
> My site lets people enter in their information... I now want to be able
for
> a user
http://www.w3.org/TR/html4/loose.dtd";>
Untitled Document
Take a look at the manual for sessions
session_start() has to be the first thing called
http://www.w3.org/TR/html4/loose.dtd";>
Untitled Document
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
[snip]
This is where the var's $list and $additional_letters are filled. The
file
is called hangman.php. I want to open this file, put the words into a
html
file so that someone can change them and write them back. That's it.
[/snip]
is it out of the question to store the values in ther own separa
$string = substr($stringname,0,50);
echo $string;
http://www.php.net/substr
That will just give the first 50 characters of the string.
You could just try one of the many suggestions on
http://www.php.net/manual/en/function.str-word-count.php
Scroll down to the user comments and there is
Assuming there's a preceding page that has created the session 'name'
and
registered the var 'order' with the 'name' session.
session_name('name');
session_register('order');
Try $_SESSION['order']
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Next, I want to remove excessive CR/LF, [i.e. more than 2]
$text= preg_replace("/\n\n+/", "\n\n", $text);
// remove excess This doesn't seem to do anything.
not 100% sure this is right but give it a try
$text = preg_replace("/\n\n+|\n\r[\n\r]+|\r\r+/", "\n\n", $tex
Hello,
I'm working on a webpage at http://hedges.org/busolemiss/template/index.html
I need for a table cell to fill in the remaining space between some rows
above and a row below, no matter what the window size. I thought this was
possible with a height="*", but it doesn't work.
If you look at
Can I avoid that intermediate step, somehow? When my script logs in
the
user, how to I write the code that dispatches directly to the home
page?
Have you tried a redirect?
http://www.php.net/header
http://www.example.com/";); /* Redirect browser */
/* Make sure that code below does not get
I want to be able to simply FTP a new movie
onto the server, and then have the menu update itself. possible? I
would also be looking to do something similar with JPGS.
take a look at
http://www.php.net/readdir
http://www.php.net/opendir
here is some code to help start you
echo '';
if ($
I'm guessing this is not a sensible approach.
Every place I construct a url, I'd have to remember to add this.
Have you looked into sessions and/or cookies?
I think you want to use $_POST not $POST
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
rint '';
$rowcount = 0;
while(ora_fetch($cursor)) {
print '';
for($i=0; $i$cell_data";
}
print "\n";
}
print '';
?>
Thanks for any advice.
Matt
${where_clauses}";
Matt
Matt Hillebrand <[EMAIL PROTECTED]> wrote:
I have an Oracle 8 problem. Unfortunately, I can't use the OCI functions and must use
the ORA functions. The code below looks fine to me. It will return *almost* all of the
rows, but then the script just dies with no wa
Anyone recommend a book for a regex newbie ?
O'Reilly usually has some good stuff
http://www.oreilly.com/catalog/regex/
There is plenty of tutorials online too, just google and you will get a
bunch of results.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
assume I'm gonna have to
use some sort of recursion here, but I'm not sure how to go about this.
Please help if you can.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No, i'm using a MySQL DB.
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Matt Palermo wrote:
>
> > Hey everyone. I'm looking for assistance/suggestions/answers on how to
> > build a select dropdown box from data that nee
What they've asked for, is that when they reply to the enquiry, they
are
reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the
admin area, but what i'd like to do , is simply mail the admin users,
after say, 3 days.
regardless
Can anyone tell me if this is a common problem? Is this a purely MSIE
bug, or could PHP be a factor?
I would guess it is a MSIE problem. You could check the raw post data
coming into php too see if it is a php bug. I think
$GLOBALS['HTTP_RAW_POST_DATA'] has the post data
--
PHP General Mailin
Was reading through:
http://uk.php.net/manual/en/features.connection-handling.php
And I was wondering how PHP handles script termination when you have
'output_buffering = On' in your php.ini?
If I have a long script that does lots of database stuff for example,
and is riddled with echo() fun
Hello,
I am working on using PHP to build a web store.
http://www.squirrelcart.com/ looks to be pretty good for a shopping cart-
does anyone have any experience with this or others?
Also, what suggestions do ya'll have for a payment gateway?
thanks
matt
--
PHP General Mailing List
I want to know how to control php program connect to MySQL Database
System ( another computer machine ) ?
http://www.php.net/manual/en/function.mysql-connect.php
http://www.php.net/manual/en/function.mysql-pconnect.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
But, I want to know is there any tools similar with "php-mssql" for
php
connect with MS-SQL ?
Any other can help ?
1. look at the manual http://php.net/mssql
2. try google
3. search the list archives
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
hanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I'm trying to password protect an online PDF file. I know how to use PHP to
pw protect a webpage, but what would be the best way to protect access to a
nonwebpage file?
thanks a lot
Matt
--
___
| Matt Hedges
| President, Vino del Sol
| [EMAIL PROT
Thanks, that worked great.
I found this for anyone else like me new to htaccess:
http://www.htmlbasix.com/passwordprotect.shtml
works great.
matt
"Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > I'm trying to password protect
try this
if($userfile) {
if(move_uploaded_file($_FILES ['userfile'],
"$uploadpath/$userfile_name")) {
echo $userfile_name;
echo "Successfully Added!\n";
} else {
echo ("error!");
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
How can I get the field names from a specified MySQL table? I don't need
the data, I just want to get an array of the tables field names.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I already tried that, but had problems with ' ' " ".
Did you try the htmlentities function?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try an absolute url.
>>> "Daniel Perez" <[EMAIL PROTECTED]> 3/3/2004 8:55:06 AM >>>
Hi there,
I´ve got a login form, that calls a script, to check if
the user/pass match. If yes, the script do a header("Location :
index.php"). In Explorer works but not in Mozilla nor Netscape.
Anyone knows somethi
http://www.mydomain.com/private/some_privat_file.doc and downloading
this file! I need a way to make this file only accessible to users who
have a user_id in there session - is this possible? Or is my only
alternative to password protect this directory using the webserver and
force users to re-au
I have tried to use readline to make this happen, but I'm getting
error
messages.
Somebody with a suggestion about this?
have any code samples or example error messages for us?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i am new to php, i am trying to call the date function this way:
and the result i get is: object18/03/04
any help would be appreciated
I recommend the manual and google
http://www.php.net/manual/en/ref.datetime.php
http://www.php.net/date
http://www.php.net/manual/en/function.time.php
http
thoughts?
I would look into sessions
http://www.php.net/session
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm about 90% sure that URL strings are passed in the clear to SSL
servers, so this would defeat the purpose of SSL.
I don't think this is true. You can see the query string in the
address bar, but (with what little http knowledge I have) the http
conversation is encrypted, if you sniff it, the
ience has already tried this...
Thanks,
Matt
-Original Message-
From: Tariq Murtaza [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 18:41
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Guru's advice needed [Security: SQL injection]
*Dear Friends!*
Can someone shed some lig
I am creating a system to allow users to upload images to the site. Would
it be better to store the images in a MySQL table, or having it save the
images to a directory on the server? Anyone have any suggestions on this?
Pros? Cons?
Thanks,
Matt
http://sweetphp.com/
--
PHP General Mailing
go
to secure page
Turn off register globals.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e other statement
go?
header("Location:error.shtml");
TIA for any advice you can offer. I must be really missing the point here.
Cheers --- Phil Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know of a good solid PHP alternative to the very good (but
very expensive!) BrowserHawk? (http://www.cyscape.com/)
Dont know if this has all of the features you are looking for, but it
has a bunch of them
http://phpsniff.sourceforge.net/
--
PHP General Mailing List (http://www.php
I agree with you but when I first looked at this I too thought there
was some way of doing this in php which might look more elegant. Seeing
urls such as
www.mydomain.com/index.php?article_id=2&id=e5t28er647ryh362hy67eh4563yh4635
looks fairly cumbersome and I'm sure I've seen something about probl
function insert($table, $data) {
$sql = "INSERT INTO ".$table." SET ";
foreach ($data as $k=>$v) {
$sql.= $k." = '".$v."', ";
}
$sql.=";";
$result = mysql_query($sql);
}
The only problem with the statement is the appended comma to each
iteration - the statement generates a mysql error wit
--- Matt Matijevich <[EMAIL PROTECTED]> wrote:
> http://www.php.net/rtrim
rtrim() trims whitespace, not commas.
Hope that helps.
Chris
string rtrim ( string str [, string charlist])
there is a second optional paremeter you can add to rtrim
rtrim($var,',');
will take
Has anybody had the PHP logo in phpinfo() appear with a picture of a
dog?
April Fools easter egg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Would each virtual host need to have a directory with the ADOdb scripts?
No
Just put the adodb scripts in the include_path, or just have a
designdated place on your windows bow for adodb, then in you include
statement just use something like
include('c:\adodb\adodb.php'); //not exactly sure wha
tmail addresses with no
luck.
any ideas?
Cheers,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
could you post all of your script?
Is there any white space before your http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change your script to just this:
Don't have any white space before http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for responding to myself but I also need to ad that you should
not echo or print anything out in your php code before your header
function or the text/html header will be sent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you should have script, call it image.php or something like that, the
only thing that should be in that script is this:
no html tags in there, no whitespace.
to see the image you could call the page like this
http://www.yourdomain.whatever/image.php . you could call it in a
iumage tag like this
of a way this can be done?
Thanks,
Matt Palermo
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is to work for any tag, no just . Any
suggestions for this?
Thanks,
Matt
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Matt Palermo wrote:
>
> > I am building a system which allows users to post data. I want to allow
> >
This is what i have so far:
$allowed = '';
$info = strip_tags($info, $allowed);
$info = preg_replace('/<([^>])[^>]*>/', '<\1>', $info);
This works for everything except the closing tags. It turns into .
Anyone know why?
Thanks,
Matt
"J
t gets changed to
this: 2 <>. How can I set it to only replace things when there is a < and
a matching > for it? Anyone have any ideas?
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
function connect_db() {
if (!defined('_CONNECT_DB')) {
$result = @mysql_pconnect("localhost", "Username",
"Password");
@mysql_select_db("database_name");
define('_CONNECT_DB', $result);
}
return _CONNECT_DB;
I call this function this way...
What exactly does this do:
/< (?<=p|br) [^>]+ >/x
It may work, I just want to understand what it's looking for.
Thanks,
Matt
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Matt Palermo ([EMAIL PROTECTED]):
> &
[snip]
foreach ($some_array as $name=>$value)
{
... some code ...
}
[/snip]
http://www.php.net/foreach
will give you a good explanation.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
e.g. $conn->Connect(false, 'scott', 'tiger', $oraname);
[/snip]
http://www.php.net/oop will give you some help.
I am not even sure if I can explain it correctly.
I believe you would say use -> to call object methods and -> to get/set
the class variables. I am sure someone can give a bett
> How can i do a php script with a html extensionsuch as
> http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
>
apache could do this a couple ways
http://httpd.apache.org/docs/mod/mod_mime.html#addhandler
http://httpd.apache.org/docs-2.0/mod/core.html#setinputfilter
http://h
> I have a webform which my users are expecting to act like a Windows program,
> they only need to check the box and it is automatically written to the
> database.
you could try this
http://developer.apple.com/internet/webcontent/iframe.html
or this
http://jibbering.com/2002/4/httprequest.html
> I'm trying to pass XML file from Site A to Site B for Site B to parse.
> Site B is maintained by other company, so I only need to worry about sending
> over the XML file. I've been hinted that fsockopen() can do the job.
if you have to do this I would suggest giving pear a try, no need to
reinv
> Hi all im new to PHP and im trying to let a process (*.exe file) to run in
> background(localhost) and let php continue processing the script. But PHP
> always stops and wait for the (*.exe) stops/close!
>
> Anyone here can help me by giving me an simply example to let PHP run the
> exe file and
> I've got some text that contains carriage returns, which are not .
> what tag do I need to use to display the text with the carriage returns?
> Can't even remember whether it's html or php.
html,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
> Can PHP work with Excel files as database ?
> If not, how can I conver it to MySQL format and
> reconvert it to Excel 'coz I need it to report it
> in Excel format,
if you are on windows you could use a com object.
if you have access to perl, you could use
http://search.cpan.org/~kwitknr/Sprea
day = date("Y-m-d");
and then trying to add "x" to it, but it only adds "x" to the year, not the day
value. So how can I get PHP to add "x" to the day value? Any help would be
awesome! Thanks,
Matt
Matt Cassarino
206 484 4626
[EMAIL PROTECTED]
www.mattcass.com
> I have a button which I want to add a function to, so that when it is
> clicked, the data from one will be copied to another
>
> Which event handler of the button should I use and hoe should I construct
> the function?
onclick. This is not really a php question. do some googleing for javasc
> array (
> 20040310, Title, Author
> 20041115, Title, Author
> 20040513, Title, Author
> )
>
> where each array element is 1 line from the csv. When I go to print it
> out, Im going to explode each by , and then print it out the way I like.
>
> BUT, I want to sor
HTML
string and add closing tags and comments to it if needed?
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
news:[EMAIL PROTECTED]
> Matt Palermo wrote:
>> I am allowing users to imput HTML code into a textarea. After they input
>> this, I wany to output their HTML to the browser. In order for the
>> document
>> to be safe, I need to close all open HTML tags that have been l
want to allow them to use HTML, but I want to close tags that were left open
by them. This way it allows them to use HTML and it won't screw up the rest
of the page.
Thanks,
Matt
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Matt Pa
How about:
if($Game_Rating == "")
$errors[] = "You didn't enter the Online Status for the Game.";
This should work for you.
-Matt
"Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Group Members
> i have a probl
> reason it seems to always be true, ... something i'm doing wrong? btw, i
> cannot add the in_array to the statement because if the $buddylist is empty
> it will generate errors because of the empty implode.
you could add the is_array() check.
> $buddylist = preg_split('/( )+/', trim($userinfo['
> You would expect the while loop to go on forever just looking
> at the above code. However, what's happening is that when the
> empty string is getting returned due to $i being > 10, the while
> loop is resolving FALSE when $bob is set to the value of the
> empty string.
> Is there any way that
> Hi all,
> I have created a download manger to handle files, when a user clicks a link
> the file is sent though fopen() and fpassthru()
you could try http://us3.php.net/readfile
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I have uploaded some pictures and thumbnails using a PHP form into a
> particular directory. I would like to be able to select the name of the
> picture and then chose to delete that picture and its thumbnail from the
> server using another form.
try the manual my man
http://us2.php.net/unlink
> How to read and get data from Excel Files and Access Files.
> Can you post me articles and tutorials on the web-sites that explain
> the basic concept to create an interface for PHP and this files-type.
> Thanks so much to all.
I am pretty sure that you an set up odbc connections to access acces
> Anyone got any suggestions on the best way to convert the snippet of code
> below (which I'm dynamically collecting from another website) to a get url
> (i.e.
> http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27 )
>
> http://www.somewebsite.co.uk/Availability.cgi"; method=
> Sorry for not been clear. The snippet of html is code I am getting
> dynamically using curl from another website. I want to then convert that
> html code into a url like
> http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27.
you need something to parse the html, I found th
> $name = "John";
>
> how can i echo the first letter only so the result on the browser will be "J"
echo $name{0};
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I know that "register_globals = on" is not secure. But one program
> requires to use register_globals=on. So in php.ini register_globals is
> set to on.
>
> I have PHP 5.1, is it possible in the code set register_globals=off
> for specific scripts.
>
> So I want to keep PHP register_globals=on
> I have multiple pages on a website that uses sessions ($_SESSION) to
> store the data. However, I noticed that in the C:\Windows\Temp
> directory, all the session variables/data files are stored there from
> previous (and current) sessions.
what version of php are you using?
this might be comin
is
what comes out in the html or is it ?
can you upload any files at all?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nfiguration File (php.ini) Path => /usr/local/lib/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, https, ftps
If anyone has had a similar problem or has
> This is in response to the following line:
>
> foreach ($_GET as $key => $value)
is $_GET an array?
when in doubt, print it out
try:
print_r($_GET)
or even check
is_array($_GET)
might be an earlier version of php
http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.get
> Does anyone knows of a free library to compile PHP against and have PDF
> functions support ?
you could try this class
http://www.fpdf.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
refresh. I have thought about the Iframe solution - does this work in
Mozilla? Are there non-iFrame solutions?
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
;-)
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, January 21, 2005 12:41 PM
To: Matt Babineau
Subject: Re: [PHP] Multiple select boxes - select in one box
Ahh so the regex gods are pissed at me. This is simple (I think), but I need
to figure out how to strip out everything in a string that is not a number.
Any takers?
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
s and
you're print problem will go away.
-Matt
Todd Cary wrote:
Jochem -
Here is the function:
/* Make page path */
function make_page_path($page_string, $script_name) {
$parts = explode('|', $page_string);
for ($i = 0; $i < count($parts); $i++) {
if ($i
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I
remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is
very strange behavior!
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message
a JPG? I'm on
a linux box and have php 4.3.10.
Thanks for the help!
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
run on the
server to do the convert work.
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Jack Jackson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 3:21 PM
To: php-general@lists.php.net
Subject
y more input on this?
Everything I have read so far has been very helpful and I thank you for
that.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Marcus Bointon [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 5:0
m to be
able to print a copy. I've looked into PDFing the invoice but its just a bit
easier to hit the print button and be done since Adobe PDF usually crashes
your browser :(
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Messa
ally up a creek
right now - unless I convert the bg images to foreground image which would
really suck...but could be done.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Leif Gregory [mailto:[EMAIL PROTECTED]
Sent:
that good.
Thx-
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Kristen G. Thorson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 2:05 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Beautiful HT
Yikeshas anyone got a url for a good "Make PDF From HTML Class" that
uses my newly installed PDFlib library?
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Leif Gregory [mailto:[EMAIL PROTECTED]
Sent
Well after the first query you could do this:
$art_id = mysql_insert_id();
There is your new unique art_id you just created.
Do this for the next table, the do the insert on your 3rd table.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED
I bet if you connect using the IP directly it will solve your problem.
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
-Original Message-
From: Jonathan Duncan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 6:27 PM
To: php
ment. I don't
have to even think about the server. I spend about 1 hr a month messing
around with the server (daemon restarts or php config changes). That's where
LAMP's value really shines through I think you will find.
Thanks,
Matt Babineau
Criticalcode
858.733
ething slightly different than
mine does, then try adjusting which field cut takes.
HTH,
Matt
Philip Hallstrom wrote:
Suppose I have a directory with a HUGE number of filenames, all of which
happen to look like integers:
~/nntp/1
~/nntp/2
~/nntp/3
.
.
.
~/nntp/59874
~/nntp/59875
~/nntp/59876
Now
uple tutorials but none explain this very wellanyone have
any thoughts?
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1401 - 1500 of 1662 matches
Mail list logo