[PHP] mysql timestamp field

2001-09-06 Thread Mesut Tunga

Hi all,

I need an update on my table. but I have a timestamp field called
t_stamp. When I update a field other than t_stamp field, t_stamp field
also updates to now(). I need it not to update and saves its value.

How should I do this?

Regards
Mesut Tunga...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga

Hi All,

a for statment like below has been worked lowe php versions:

  for ( $idx = 01; $idx = 12; $idx++ )
  {
   echo  option value=\$idx\$idx\n;
  }

like 01, 02, 03, 04, ... 12

but same statment on 4.0.6 version, it writes

01, 2, 3, 4,  ... 12

what is the different between verisons? or how can I solve this?

Regards...
Mesut...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga

Hi All,

a for statment like below has been worked lowe php versions:

  for ( $idx = 01; $idx = 12; $idx++ )
  {
   echo  option value=\$idx\$idx\n;
  }

like 01, 02, 03, 04, ... 12

but same statment on 4.0.6 version, it writes

01, 2, 3, 4,  ... 12

what is the different between verisons? or how can I solve this?

Regards...
Mesut...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session variable problem

2001-04-16 Thread Mesut TUNGA

Merhabalar,

firstly do you use windows or linux?
id you use windows you shoul give the session_save_path to the script. (
session_save_path("c:\\user\\tmp");  )

if you use linux and no changes in your .ini files, your sessions store
in /tmp
directory...

?php
session_start();
$id = 123;
session_register('id');
?
html
head
 title/title
/head
body
?php
 echo $id;
?
/body
/html

Kolay Gele...
Mesut...



SERKAN BALKANLI (EB Bk.-Analist Prog.) wrote:

  i am starting and registering session variable succesfully  that i can see
 the file on the server ,  but when it comes to use or display i can not ,
 the variable has no value ... the "session.save_handler  = files"  is in
 php.ini , i tried to change it to user but that occured a fatal error etc..
 So shortly what is the thing that i am missing
 thanks alot

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Mesut TUNGA

Hi All,

we have 2 mysql server located two dfiferent iss. one of them compiled
latin1 with php-4.0.4pl1  and other one compiled latin5 with
php-4.0.3.pl1. when we tried to connect from latin1 compiled one to
latin5 compiled one, it gives this error:

Warning: MySQL Connection Failed: Can't initialize character set 30
(path: default) in /home/user/public_html/createtable.php on line 2

on createtable.php line 2 there is mysql_connection command.

Is it a bug of php or there would a mistake. if it is a bug is there any
patch to solve it?

Regards,
Mesut Tunga...




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]