Jump to content

jeevan_y21

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jeevan_y21's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, for Instance i have 2 tables in MySql(Users,customers). I store the common data in the users table & some data in Customers table.First i insert data into the Users table. It generates an AutoIncrement value, I catch that value and store it in the customers tables. It works fine in my localhost PhpMyAdmin ver2.9.2 , MySql 5.0.33 and the php version 5.2.1. Remote Server Details MySql Version :- 4.0 Php Version :- 4.0 $i_rSet1= $g_db->Execute("select max(userid) from users "); $maxuserid = $g_db->qstr($i_rSet1,get_magic_quotes_gpc()); $max = substr_replace(trim(substr($maxuserid,12)),"'",0,0); "INSERT INTO customers(userid,user_name, cust_firstname, cust_lastname, cust_midname, cust_dis_val, cust_viewstock) VALUES($max,....................)"; prior to this code, i insert some data into the Users Table and in another file i catch the last inserted record Id and pass it to the above code. This code works fine in my local database. when i upload my files and test at the remote server, its only inserting records into the users table and not performing the above operation. Any reply/suggestion is welcome
  2. Hi, I am working on a project. when i uploaded all of my files on the server, substr_replace(trim(substr($maxuserid,12)),"'",0,0) this function is not working properly at the host server. But its working fine in the localhost. Can anyone please help me . $i_rSet1= $g_db->Execute("select max(userid) from users "); $maxuserid = $g_db->qstr($i_rSet1,get_magic_quotes_gpc()); substr_replace(trim(substr($maxuserid,12)),"'",0,0)
  3. Hi to all, I am new to php, i am developing a multilingual webapplication using php,Mysql. At the login of the site the users need to click on the countries flag. sothat the content can change according to the countries/language. i did the following stuff and i struck up here <input type="image" name="english" value="en" width="15" height="15" src="images/english.gif" onClick="getcookie1()"> <input type="image" name="french" value="fr" width ="15" height="15" src="images/french.gif" onClick="getcookie1()"> <input type="image" name="german" value="de" width="15" height="15" src="images/german.gif" onClick="getcookie1()"> <script type="text/javascript" language="javascript"> function getcookie1() { <?php setcookie("language","en"); ?> } </script> and i am calling the "language" cookie in another file. Its not working ???. can anyone please help me. as its very urgent please help me out
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.