User Profile

Collapse

Profile Sidebar

Collapse
praveenkrg
praveenkrg
Last Activity: Feb 14 '08, 06:44 AM
Joined: Sep 18 '07
Location: Noida, India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • praveenkrg
    started a topic combo box selected value problem
    in PHP

    combo box selected value problem

    I have a one combo box which display values from a table. But onchange i want the selected value in other text box.

    [PHP]<?
    echo "<select name='selectpg' >\n";
    echo "<option value='Select Group' selected>Select Group</option>";
    $query = "SELECT t.gname FROM group AS t ORDER BY t.gname ASC";
    $res = @mysql_query($q uery);
    while($row = mysql_fetch_arr ay($res))...
    See more | Go to post

  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    I have solved my problem. Thanks for all help and support :)...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    Hi RP,

    could you tell me whts the error in this query:

    $result = mysql_query("up date tez_ems_users SET user_name = '$gp_name', user_password = '$c_pass', first_name = '$f_name', last_name = '$l_name', email = '$email', emp_number = '$emp_number', userg_id = '$selectpg' where user_name = '$gp_name'") or die(mysql_error ());...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    $mgroupname=$_G ET['selectpg'];

    this variable comes from other page and

    if(isset($_POST['submit']))
    {
    $gp_name=$_POST['gp_name'];
    $add_checkbox=$ _POST['add_checkbox'];
    $modify_checkbo x=$_POST['modify_checkbo x'];
    .........
    this one is from same page....
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    Here is my new code:
    $mgroupname=$_G ET['selectpg'];
    //echo $mgroupname;

    $result=mysql_q uery("SELECT * FROM group WHERE userg_name ='$mgroupname'" );
    while($row = @mysql_fetch_ar ray($result, MYSQL_ASSOC))
    {
    $userg_id=$row['userg_id'];
    $userg_name=$ro w['userg_name'];


    if(isset($_POST['submit']))
    {
    $gp_name=$_POST['gp_name'];
    $add_checkbox=$ _POST['add_checkbox'];...
    See more | Go to post

    Leave a comment:


  • Hi,
    You can download php from php official website http://www.php.net/downloads.php

    Checkout this link for Installing and Configuring Apache 2 on a Windows XP Machine
    It contains step-by-step details, that will really help you!
    http://www.devshed.com/c/a/Apache/Installing-and-Configuring-Apache-2-on-a-Windows-XP-Machine/

    Regards,
    Praveen...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    Hi,
    when i put my IF-ELSE part in WHILE loop then it display nothing....
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in code (Update query)
    in PHP
    Actually i am not getting any error but this code is not working properly.

    I have fetched the values using this command

    $result=mysql_q uery("SELECT * FROM tez_ems_group WHERE userg_name ='$mgroupname'" );
    while($row = @mysql_fetch_ar ray($result, MYSQL_ASSOC))
    {
    $userg_id=$row['userg_id'];
    $userg_name=$ro w['userg_name'];

    echo $userg_id;
    echo $userg_name;...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    started a topic Problem in code (Update query)
    in PHP

    Problem in code (Update query)

    my update query is not working properly!
    [code=php]
    $mgroupname=$_G ET['selectpg'];
    //echo $mgroupname;

    ///query for checking userg_id
    $result=mysql_q uery("SELECT * FROM group WHERE userg_name ='$mgroupname'" );
    while($row = @mysql_fetch_ar ray($result, MYSQL_ASSOC))
    {
    $userg_id=$row['userg_id'];
    $userg_name=$ro w['userg_name'];

    //echo $userg_id;
    //echo $userg_name;...
    See more | Go to post
    Last edited by ak1dnar; Jan 7 '08, 01:24 PM. Reason: Fixed code tags

  • praveenkrg
    replied to Problem in Serach query
    hey can u tell me why its happening and how to solve this problem?...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    started a topic Sending HTML Email
    in PHP

    Sending HTML Email

    Hi,

    Can any one tell me about how to send the HTML mail. I have able to send mail in text format but i want it attractive.

    Plz help me.
    See more | Go to post

  • praveenkrg
    replied to Problem in Serach query
    ------
    The code in which i used the query as follows
    -----[code=php]
    <?
    $Pin_Code = '110065';
    $result=mysql_q uery("SELECT * FROM tablename where PinCode_Covered LIKE '$Pin_Code'");
    $num=mysql_num_ rows($result);

    while($row = mysql_fetch_arr ay($resultbb, MYSQL_ASSOC))
    {
    $PinCode_Covere d=$row['PinCode_Covere d'];
    echo "{$row['PinCode_Covere d']}"; } ?...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in Serach query
    Thanks buddy
    It works, but when i attach the query in my php application it displays the single one again....
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in Serach query
    I have not checked by TRIM function but i am describing how i stored values

    ----------------------------
    PinCode_Covered
    --------------------------
    201001
    -------------------------
    110065, 110061, 110066
    -------------------------
    110065
    -------------------------
    110065, 110033, 110001
    -------------------------

    It is showing only 110065 but it has to...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in Serach query
    I don't have too much time to search in toturial. There is no spaces. i have taken varchar datatype for PinCode_Covered column....
    See more | Go to post

    Leave a comment:


  • praveenkrg
    replied to Problem in Serach query
    hi ajos,

    yes!
    I want all the rows where PinCode_covered = 110065...
    See more | Go to post

    Leave a comment:


  • praveenkrg
    started a topic Problem in Serach query

    Problem in Serach query

    Hi,
    my sql query does not work
    [code=mysql]
    SELECT * FROM representative where PinCode_Covered =110065
    [/code]
    In PinCode_Covered column i have more than one values like
    110065, 110061, 110033
    and in other rows i have
    110065


    But it fetch only one record where 110065 exist; why other value not come in search. Any one plz help me out.
    See more | Go to post
    Last edited by pbmods; Sep 18 '07, 12:33 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...