[PHP] Re: Concatenate PHP code into a string

2004-06-28 Thread franciccio
$query="INSERT"+" "; for ($i=0;$i ha scritto nel messaggio news:[EMAIL PROTECTED] > Dear List, > How can I include a dynamically generated array: > e.g. for($i=0; $i { $cols[$i]= mysql_field_name($fields,$i); } > > into a MySQL insert query of the type: > $sql= "INSERT cols[0],cols[1],cols[2]

[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

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

2004-06-20 Thread franciccio
$result is a "resource" type 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 ha

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:

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. "

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 s

[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. > &g

[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

[PHP] Re: [PHP5] Super constructor?

2004-06-14 Thread franciccio
vascript. Am i wrong? 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 c