[PHP] Re: copy a string

2002-08-21 Thread Carsten Mohr

Hi,

there is a JavaScript-command to 'simulate' ctrl-v. It's
exec.Command(paste);
so I'm quite sure that there is also a command like
exec.Command(copy);
but this works for MSIE only in newer versions (5.5 and higher) this is 
not possible because this security-bug was fixed

Greetings
Carsten Mohr


Oskar Hermansson wrote:
 Hello!
 
 Is there any function to copy a string into the computers memory (just
 like you do when you press ctrl + c in, for example Internet
 Explorer). Is there any way to do this, just using PHP or JavaScript?
 Maybe by using the function system()? Note that i dont want to copy a
 file, just a string.
 
 Anyone got a solution to this problem?
 
 Im very grateful for any help i can get!
 
  
 
 With Regards,
 
 Oskar Hermansson,
 
 Sweden
 
 


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




[PHP] Re: Help needed about queries with MySQL, thanks.

2002-08-18 Thread Carsten Mohr

Hallo,

I don't know if it helps you, but normally you have to quote the 
variable in the SQL-Statement like:
SELECT * FROM sessions WHERE sessionID = '$sessionID'
Otherwise I always get an SQL-Error

Jean-Marc Godart wrote:
 Hello everyone,
 
 I am a new PHP user, from Belgium. I am trying to manage a MySQL database with PHP, 
and I kindly request your help to solve a little (probably very stupid) problem I 
have been dealing with for a while already ...
 
 I have a MySQL database (called sessions) with a auto-increment INT field called 
sessionID. I try to check if there is already a record in this database with a 
given sessionID, which is called $sessionID in PHP. I use this query, which must be 
wrong (but I cannot find out why !!!) :
 
SELECT * FROM sessions WHERE sessionID = $sessionID
 
 Even though there is already a record with the right sessionID, my program does not 
find it (I always get 0 when using mysql_num_rows() after the query). Though, if I 
replace $sessionID by, for example 4, then that works and it says there is already 
a record with that ID.
 
 I guess the problem comes from comparing two different kinds of variables, but I 
can't fix it ... Could anyone please help ? By advance, thank you !!!
 
 Best regards from Belgium,
 
 
 Jean-marc
 
 
  
 


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




[PHP] Re: Sessions...

2002-08-15 Thread Carsten Mohr

As far as I know, you're right, that the session is destroyed

Kondwani Spike Mkandawire wrote:
 Am I mistaken to assume that a Session is automatically
 destroyed if a Window Browser is closed?
 
 


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