hi.... how can i do that with select query. select query goes like this...
select terms,state,zip code from tablename. here the terms field contains values stored as 1,2,3... i have a value for 1,another value or 2 etc..i want to get values corresponding to these numbers. but in the db field it is stored as 1,2,3. then how can do it with select query.....
Thanks
User Profile
Collapse
-
explode
hello friends.... in my database table i have a filed called "terms" in which i have stored values as 1,2,3,4. i want to retrive this value and display the names coreesponding to each value.
Ie. if 1 represents- ab and 2 represents- bc and 3 represents -cc i want to display it as
ab
bc
cc
i am told it can be done using explode. i am new to php , so... -
smarty
hello friends........ .. i am new to smarty. can anyone please tell me how to get the value from a dynamically generated checkbox using smarty. this is the code i used... here i am generating 10 checkbox. but i am not getting the value when each checkbox is checked. the value is coming from the array $profservices. how can i get the value from each checkbox when they are selected. also i have a "Select all" checkbox generated. how will i... -
-
hello hsriat..... i didnt get u. what do u mean by test page. if it is a char encoding problem, then how can i solve it....Leave a comment:
-
Malayalam font not working
Hello friends.... my problem is that i have 2 dropdown in which the second drop down will get filled based on the value selected in the first drop down. the values in both dropdown are displayed in malayalam font. i am getting malayalam font in the first drop down, but not in the second one. value is coming in the second drop down but in a different format... some what like this.?\?\? . the value in the second drop down is done using ajax. i am submitting... -
radio button using java script
Hello friends..... is it possible to enable radio button in the "onchange" function of an dropdown list using java script in php.
[CODE=javascript]function tlkdisp(Object)
{
var index=Object.ta k.selectedIndex ;
var value=Object.ta k.options[index].value;
document.form1. radiobutton[0].disabled=false ;
document.form1. radiobutton[1].disabled=false ;...Leave a comment:
-
to enable radiobutton in php
Hello friends..... is it possible to enable radio button in the "onchange" function of an dropdown list using java script in php.
function tlkdisp(Object)
{
var index=Object.ta k.selectedIndex ;
var value=Object.ta k.options[index].value;
document.form1. radiobutton[0].disabled=false ;
document.form1. radiobutton[1].disabled=false ;
document.form1. action="Vresurv ey.php?tak="+va lue;...Leave a comment:
-
thanks ronald... but my problem is to invoke the java page from the bat file, not to get the download dialogbox. when i am using this[php]<?php
$file = $_GET['file'];
header("Content-type: xxxxxxx");
header("Content-Disposition: attachment; filename=". $file);
readfile($file) ;
?>[/php] i am getting the download dialogbox. but i want to invoke the java page from the bat file....Leave a comment:
-
how to enable radio button in onchange of a drop down
Hello Friends....... in my project i am having a dropdown and based on the values selected from the dropdown, i have to enable 2 radio button. in the on change function of drop down i have written the code. but radio button is not getting enabled, it just blinks and get disabled. this is the code... radio button is disabled by default.[php]<select name="tak" class="style21" onChange="tlkdi sp(document.for m1)">function... -
how to invoke a bat file from server to client in php
Hello friends........ . i am new to php. In my project i have to download a java page from a bat file, to the client side by passing values from the program. the problem is that i am getting the java page in my system, but when i try to run the program from another system, the page gets downloaded to my system, not on the system from which i called the program.. ie its running in the server,but not coming to the client side.... how can i solve this... -
onfocus()
Hello friends........ .
In my project i use 2 textfields(name and designation). both the text fields should enter only letters and no numbers should be enterd. i wrote the function for it and i called it in the onBlur function of the textfields. but the problem is that if i enter any number or simply press the tab button it shows the alert message" invalid entry" and it keeps on goin in the loop. i have to press ctrl+alt+del... -
drop down pblm in php ?...
Hello friends........ .
i have 3 drop down,district,t aluk and village. based on the district, corresponding taluk will be filled and based on taluk selected corresponding village will be filled. when i submitt the form, i want to enter village id and name to the table. my village dropdown value is village id. so i can enter village id to table but not village name... how can enter both id and name to table. name and id r 2 fields in... -
How to download a java page to client side in php
Hello friends........ . i am new to php. In my project i have to download a java page from a bat file, to the client side by passing values from the program. the problem is that i am getting the java page in my system, but when i try to run the program from another system, the page gets downloaded to my system, not on the system from which i called the program.. ie its running in the server,but not coming to the client side.... how can i solve this... -
drop down pblm in php
Hello friends........ ..
i have 3 dropdown in my project, in which 3 of them are linked with each other. ie.... i select a value from the 1st drop down and based on that value, the corresponding values will be displayed in the 2nd drop down and based on the value selected from the 2nd dropdown the corresponding value will be displayed in the 3rd dropdown. the problem is that in my page ,there are textboxes for entering name,date,phno... -
Thanks dlite.... but how can i down load the executable to the client machines using php....Leave a comment:
-
bat file problem
Hello friends........ ...
In my php project, i am invoking a java page by passing values. the java page is invoked from a bat file. my bat file and the php program are stored in the c: drive of my system. the problem is that when i call the php program from any other system. the java page is coming my system, not in the system from which i run the program.ie... java page is executing in server but it is not coming to client...
... -
email and phone number validation
Hello friends........ ....
i am trying to get a validation for email and phone number. in my php project i am doing the validation using java script. but i am not getting validations for email and phone number correctly...
please give a solution for this.. -
hello greg.... i am having a program made in java,which is now in the bat file format and is in my C: folder and i have another one in php, through which i am passing values to this bat file and invoking a corresponding image from it. this is also in my C: folder. now when i call the php program from another system the sketch is generated on the system where i wrote the code, not from the system i called the program... i want the image to be generated...Leave a comment:
-
how to invoke bat file in client side
hello every one........... i have program written in java.now it is in a bat file format.
i am writting a php pgm and from that pgm i am passing 5 values to this bat file and invoke a sketch based on the values. the sketch is a java page. now my problem is that when i call this program from another system the sketch is generated in my system(where i wrote the code), not from the system which i called it.how i can make the sketch available...
No activity results to display
Show More
Leave a comment: