[PHP] Re: Concatenate PHP code into a string

2004-06-28 Thread franciccio
$query=INSERT+ ; for ($i=0;$isizeof($col);$i++) { $query+=cols[$i]+ ; } $query+=comment INTO mytable SET; for ($i=0;$isizeof($col);$i++) { $query+=cols[$i]+=+$cols[$i]+,; } Bye Franciccio Abrea [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Dear List, How can I

[PHP] Re: MySql Close problem

2004-06-21 Thread franciccio
Have you tried to specify the the handler of the connection, when you first made the connection yo had somethig like: $handler=mysql_connect(...); ... ... ... mysql_close($handler); Erik Gjertsen [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] I have problem with mysql_close I

Re: [PHP] how to iterate over fields names with mysql_fetch_assoc

2004-06-20 Thread franciccio
it is wath is called a recordset in asp, it's kind of object you have to manipulate to extract information from. Franciccio [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] thanks...that is what I had used previously :) Another php coder had given me a hint that I could just

Re: [PHP] Active windows

2004-06-16 Thread franciccio
Very hard (impossible) to control user activities by php-scripting. You are talking about client-side actions while php is only server-side. You should check for javascript client-side coding help. Franciccio Curt Zirzow [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] * Thus

[PHP] Re: [PHP5] Super constructor?

2004-06-14 Thread franciccio
? Franciccio Frzzman [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Hi guys, hey don't laugh at the subject, in fact I don't what to call it, so let's call it super constructor :D Let's see following code... class Base { __construct() { // Do something } } class

[PHP] Re: small and big letter in WHERE statement

2004-06-14 Thread franciccio
In case u run under win32 ...WHERE REGXEP BINARY fileldname=whatever.. If you run under unix, linux you don't need to do that. Franciccio Qt [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Dear Sirs, When I use where statement, I see that there is no meaning small and big

[PHP] Re: [PHP5] Super constructor?

2004-06-14 Thread franciccio
ok thanks Justin Patrin [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Franciccio wrote: If i'm not wrong php has only 1 level of depth for child class. That means you can only extends from 1 level up the class. In your example you have the class OneMore that extends

Re: [PHP] session_start() warnings

2004-06-14 Thread franciccio
Always call the function on the first line of your page. Bye Paoage [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Larry E . Ullman wrote: When I use session_start function, I receive the following warning messages: Warning: session_start(): Cannot send session

Re: [PHP] Re: Cookie Security?

2004-06-14 Thread franciccio
I would suggest (haven't tried to write code in details) to associate a random number in a variable each time you send a cookie (for new cookies anyway) and store the key (randomvariable-cookie) ina database. You should be able to verify the user at next connection verifying the matching key.