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))...
User Profile
Collapse
-
combo box selected value problem
-
I have solved my problem. Thanks for all help and support :)... -
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 ());...Leave a comment:
-
$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....Leave a comment:
-
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'];...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...Leave a comment:
-
Hi,
when i put my IF-ELSE part in WHILE loop then it display nothing....Leave a comment:
-
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;...Leave a comment:
-
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;... -
hey can u tell me why its happening and how to solve this problem?...Leave a comment:
-
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. -
------
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']}"; } ?...Leave a comment:
-
Thanks buddy
It works, but when i attach the query in my php application it displays the single one again....Leave a comment:
-
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...Leave a comment:
-
I don't have too much time to search in toturial. There is no spaces. i have taken varchar datatype for PinCode_Covered column....Leave a comment:
-
hi ajos,
yes!
I want all the rows where PinCode_covered = 110065...Leave a comment:
-
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.
No activity results to display
Show More
Leave a comment: