RE: [PHP-DB] Getting last insert id?

2003-10-08 Thread Omelin Morelos
you can use the mysql_insert_id()  function.


-Mensaje original-
De: Jeff Shapiro [mailto:[EMAIL PROTECTED]
Enviado el: Wednesday, October 08, 2003 4:17 PM
Para: Chris Payne
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP-DB] Getting last insert id?



Well, that all depends on which db server you are using.

On Wed, 8 Oct 2003 18:32:55 -0400, Chris Payne spoke thusly about 
[PHP-DB] Getting last insert id?:
 Hi there everyone,
 
 I use the below to insert some data into my database:
 
 
 mysql_query (INSERT INTO forummessages (Postedby, email, subject, 
 message, ForumID, posted, parentid) 
VALUES ('$Postedby', '$email', '$subject', '$message', 
 '$ForumID','$posted','$parentid')
 );
 
 But once it has done this, I need to get the id it has generated in 
 the DB and then update that record with the id it generate, so how 
 can I get the id from the above insert?
 
 Any help would be greatly appreciated :-)
 
 Regards
 
 Chris

---
Listserv only address.
Jeff Shapiro

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Remote DB Connection

2003-12-03 Thread Omelin Morelos
Hi people,

I have 2 servers , i need to connect to 1 remote mysql server ,i am using
the normal :

@mysql_connect ('ipaddres-server2', 'DBName', 'DBPwd') ;

Is their anything else I need to consider to connect ? ,

Thank you

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
Friends

Is there a way to read a cookie's with php , that were generated with
javascript ?

I am now usign :

$xidp=$_COOKIE;
print Xidp $xidp;

Thank you for your help in advanced.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos


-Mensaje original-
De: Omelin Morelos [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 4:56 PM
Para: [EMAIL PROTECTED]
Asunto: Cookies ?


Friends

Is there a way to read a cookie's with php , that were generated with
javascript ?

I am now usign :

$xidp=$_COOKIE;
print Xidp $xidp;

Thank you for your help in advanced.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
I have already tried it , It's not working.

Thanks

-Mensaje original-
De: Chris Wright [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:09 PM
Para: Omelin Morelos; [EMAIL PROTECTED]
Asunto: Re: [PHP-DB] Cookies ?


Try using $_COOKIE['cookie_name']


- Original Message - 
From: Omelin Morelos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 12:55 AM
Subject: [PHP-DB] Cookies ?


 Friends
 
 Is there a way to read a cookie's with php , that were generated with
 javascript ?
 
 I am now usign :
 
 $xidp=$_COOKIE;
 print Xidp $xidp;
 
 Thank you for your help in advanced.
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
yes , i tried accesing the cookie from an other page.

thank you

-Mensaje original-
De: Miles Thompson [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:37 PM
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP-DB] Cookies ?


Did you refresh the page after setting the cookie?
mt
At 05:00 PM 2/9/2004 -0800, Omelin Morelos wrote:
I have already tried it , It's not working.

Thanks

-Mensaje original-
De: Chris Wright [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:09 PM
Para: Omelin Morelos; [EMAIL PROTECTED]
Asunto: Re: [PHP-DB] Cookies ?


Try using $_COOKIE['cookie_name']


- Original Message -
From: Omelin Morelos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 12:55 AM
Subject: [PHP-DB] Cookies ?


  Friends
 
  Is there a way to read a cookie's with php , that were generated with
  javascript ?
 
  I am now usign :
 
  $xidp=$_COOKIE;
  print Xidp $xidp;
 
  Thank you for your help in advanced.
 
  --
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php