Jump to content

checkmeat_09

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About checkmeat_09

  • Rank
    Newbie
  • Birthday 03/14/1987

Previous Fields

  • Languages
    English, Tamil

Contact Methods

  • Website URL
    http://www.oorey.com
  • ICQ
    0
  • Yahoo
    s_selvamanikandan

Profile Information

  • Location
    chennai
  • Interests
    All time surfing internet..
  1. Hi community,I want to write a script which performs the following action,1) I want a module which displays a search box where user can enter a zip code2) After hitting search button the code which search the pincode in a csv file which i have in my server and return the fields which that pincode associate to be.3) Display that returned result in that module.In detail, the core project is whether we are able to deliver the package in certain area[pincode]. So the user before purchase anything from us must want to check we are delivering that area. The .csv file looks like, it has 4 fields, pincode, delivery status, approx time of delivery. So the script wants to read the pincode and return the other fields. hope i explained clearly. Sorry for my bad english.Cheers from Selvamani
  2. yes mate..I am getting option's in sql [dynamic]
  3. thanks guys for the replies.So i have to go for javascript to replace the dropdown list.Because i wont able to do shorten the length of options and it may rise some confusionand i wont able to lengthen the width of total select. because i makes my form some damage in view.Thanks and if u figure out any improvements reply me..
  4. u r right.but in firefox the length of options is clearly viewable.But in ie i got exactly the size . it cuts the options length.Do u understand what i am trying to say.Thanks for ur reply.
  5. Hi all,I need ur help to figure out how to solve this.Problem is:In FireFox my code for drop down is working good. But in IE it wont did its job <div class="left"><p><label class="prolabel">Types</label></p></div><div class="right"><select class="ddl" id="packing" name="packing"><option selected="selected">select</option><option>abcdefghijklmnopqrstuvwxyz</option> <option>abcdefghijklmnopqrstuvwxyz</option></select></div> I have css code as .form-details1 select{ width:190px;} Screen Shots are attached.Please i need to solve this now.In Internet Explorer 8 In Firefox
  6. Hi thanks for ur interest.When i enter the usrname and login then submit. Nothing happens. The page refrehed and remain the same login page.My need is it check with the database and if its correct username and password then redirect to another page.I am searching a whole day for this problem... No improvement...
  7. Thanks for the information....And now i post the detailed view in code..Can u help me now?
  8. Hi all,I did something in php. but i am unable to complete the code.I got nothing when i login with username and password.Session makes some probs with this code.. Please check out the code which i am giving here and solve my problem..1) Login Page2) index Page [After Login Succeed it will redirect here]3) Support Files [As far as i know the problem is in user.php]login.php <?php require_once("../../includes/functions.php");require_once("../../includes/database.php");require_once("../../includes/session.php");require_once("../../includes/user.php");if($session->is_logged_in()){redirect_to("index.php"); }if(isset($_POST['login'])){$username = trim($_POST['username']);$password = trim($_POST['password']);$sql = "SELECT * FROM users WHERE username='{$username}' AND password='{$password}' ";$found_user = user::authenticate($username,$password);if($found_user){$session->login($found_user);redirect_to("index.php");}else{ $message = "username and password does not match..."; }}else{$username="";$password="";}?><html><head><title>Photo Gallery</title><link href="../css/style.css" media="all" rel="stylesheet" type="text/css" /></head><body><div id="header"><h1>Photo Gallery</h1></div><div id="main"><h2 style="text-align:center;">Staff Login</h2><form action="login.php" method="post"><fieldset><table align="center" width="40%"><tr><td>User Name:</td><td><input type="text" name="username" value="<?php echo htmlentities($username);?>" /></td></tr><tr><td>Password:</td><td><input type="password" name="password" value="<?php echo htmlentities($password);?>" /></td></tr><tr><td></td><td > <input type="submit" name="login" value="login"/> </td></tr></table></fieldset></form></div><div id="footer">Copyright<?php echo date("y",time()); ?> </div></body></html><?php if(isset($database)) {$database->mysqlclose(); }?> 2) index.php <?phprequire_once("../../includes/functions.php");require_once("../../includes/database.php");require_once("../../includes/session.php");require_once("../../includes/user.php");?><html><head><title>Photo Gallery</title><link href="../css/style.css" media="all" rel="stylesheet" type="text/css" /></head><body><div id="header"><h1>Photo Gallery</h1></div><div id="main"><h2>Menu</h2><a href=""></div><div id="footer">Copyright<?php echo date("y",time()); ?> </div></body></html> 3) config1.php <?phpdefine("DB_SERVER","localhost");define("DB_USER","vairaprakasam");define("DB_PASSWORD","vairam");define("DB_NAME","mvpdb");?> 4) database.php <?phprequire_once("config1.php");class MYSQLdatabase{private $conn;private $magic_quotes_active;private $real_escape_string_exists; private $select_db;function __construct(){$this->open_connection();$this->magic_quotes_active = get_magic_quotes_gpc();$this->real_escape_string_exists = function_exists("mysql_real_escape_string");}public function open_connection(){$this->conn=mysql_connect(DB_SERVER,DB_USER,DB_PASSWORD);if(!$this->conn){die("conn failllled...FOR CONNECTION".mysql_error());}else{$this->select_db=mysql_select_db(DB_NAME,$this->conn);if(!$this->select_db){die("conn to db failllled...".mysql_error());}}}public function mysqlclose(){if(isset($this->conn)){mysql_close($this->conn);unset($this->conn);}}public function query($sql){$result=mysql_query($sql,$this->conn);$this->confirm_query($result);return $result;}public function confirm_query($check){if(!$check){die("conn failllled... FOR QUERY".mysql_error());}}public function escape_value($value){if($this->real_escape_string_exists){if($this->magic_quotes_active){$value = stripslashes($value);}$value = mysql_real_escape_string($value);}else{if(!$this->magic_quotes_active){$value = addslashes($value);}}}public function fetch_array($result){return mysql_fetch_array($result);}public function affected_rows(){return mysql_affected_rows($this->conn);}public function row_count($count){return mysql_num_rows($count);}}$database=new MYSQLdatabase();$db =& $database;?> 5) functions.php <?phpfunction strip_zeros_from_date($marked_string=""){$no_zeros = str_replace('*0','',$marked_string);$cleaned_string = str_replace('*','',$no_zeros);return $cleaned_string;}function redirect_to($location = NULL){if($location != NULL){header("location: {$location}");exit;}}function output_message($message){if(!empty($message)){return "<p class=\"message\">{$message}</p>";}else{return "";}}function __autoload($class_name){$class_name = strtolower($class_name);$path = "../../includes/{$class_name}.php";if(file_exists($path)){require_once($path);}else{die("the file{$class_name}.php could not found..");}}?> 6) session.php <?phpclass session{private $logged_in = false;public $user_id;function __construct(){session_start();$this->check_login();}public function is_logged_in(){return $this->logged_in;}public function login($user){if($user){$_SESSION['user_id'] = $user->id;$this->user_id =$_SESSION['user_id']; $this->logged_in = true;}}public function logout(){unset($_SESSION['user_id']);unset($this->user_id);$this->logged_in = false;}private function check_login(){if(isset($_SESSION['user_id'])){$this->user_id = $_SESSION['id'];$this->logged_in = true;}else{unset($this->user_id);$this->logged_in = false;}}}$session = new session();?> 7) user.php <?php require_once("database.php");?><?phpclass user{public $id;public $username;public $password;public $first_name;public $last_name;public static function find_all(){return self::find_by_sql("SELECT * FROM users");} public static function find_by_id($id=0){global $database;$result_array = self::find_by_sql("SELECT * FROM users WHERE id={$id}");return !empty($result_array)?array_shift($result_array):false;}public static function find_by_sql($sql=""){global $database;$result_set = $database->query($sql);$object_array = array();while($row = $database->fetch_array($result_set)){$object_array[] = self::instantiate($row);}return $object_array;}public function full_name(){if(isset($this->first_name) && isset($this->last_name)){return $this->first_name . " " .$this->last_name;}else{return "";};}public static function authenticate($username="",$password=""){global $database;$username = $database->escape_value($username);$password = $database->escape_value($password );$sql = "SELECT * FROM users WHERE username='{$username}' AND password='{$password}' ";$result_array = self::find_by_sql($sql);return !empty($result_array)?array_shift($result_array):false;}private static function instantiate($record){$object =new user;foreach($record as $attribute=>$value){if($object->has_attribute($attribute)){$object->$attribute = $value;}}return $object;}private function has_attribute($attribute){$object_vars = get_object_vars($this);return array_key_exists($attribute,$object_vars);}}?> Thanks in advance..
  9. Hi..I have the index.html source code is as follows<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <title>Hydro care solutions</title> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <link rel="stylesheet" type="text/css" href="imageScroller.css" /> <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" /> <!-- <script src="prototype.js" type="text/javascript"></script>--> <script src="scriptaculous.js?load=effects" type="text/javascript"></script> <script src="lightbox.js" type="text/javascript"></script> <script src="scroller.js" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="fadeslideshow.js"> then wat can i do???
  10. sorry for asking this..can u explain... because i just design new concepts but i wont know about DID.
  11. Thanks for ur reply...by the help of browsershots website.. here are the imagesIE6 - Screen shotIE7 - Screen shotIE8 - Screen shotActually that content and the girl is to be aligned in right side white space like IE8and by using conditional statements like "if" i am not able to get the required answer..i use<!--[if lte IE 6]> <link href="css/ie6.css" rel="stylesheet" type="text/css" /><![endif]--> Please help me...
  12. Hi all..I did a new website with dreamweaver CS4 and my client was happy with that design until we check that with IE6.The design is fully collapsed in IE6..And i wrote a new css file for IE6now i want to know how can i make that the new css for ie6 is for respective browsers and the other browsers take the old css.Please help me...
  13. not understand clearly...Actually its a blog..so kindly note this also...
  14. Hello friends,Recently i am building a website and i wish to place a search box in there. <div id='search'> <form action='/search/label/' id='searchform' method='get'> <input id='s' name='q' type='text' value=''/> <input id='searchsubmit' type='submit' value=''/> </form></div> I am having a form like this and when i enter any text in that form i am getting the URL like this "http://website.com/search/label/?q=query"But i want to adjust this URL like this "http://atamilgroup.blogspot.com/search/label/query"That means i want to search the entered value with my labels which i have used while creating posts.Where i can edit to archive this.. Please help me...
  15. Hello Friends,Now i have some interesting topic to start.The need of the project is.Have some datas which used to create a new word document using dot net.ie) when some one entered the required datas in front end, it must saved in database(SQL) then it will produce a new document in microsoft word or pdf.for example see the attachments please.* how can i design the result document which needed in microsoft word or pdf format.I think crystal report is needed.Please help me to start..Thanks in advance.S.Selvamanikandan
×
×
  • Create New...