kathiresan
mysql query
1 Answer(s)      4 years and 4 months ago
Posted in : WebSevices

View Answers

January 22, 2009 at 4:59 AM


Hi...


U May create your query as like..


<?php
$con = mysql_connect("localhost","root","root");
if (!$con){
die('Could not connect: ' . mysql_error());
}

mysql_select_db("test", $con);
$result = mysql_query("SELECT * FROM roseindia WHERE dateofbirth BETWEEN '1990-02-01' AND '1984-01-04'");

while($row = mysql_fetch_array($result)){
echo $row['first_name'] . " " . $row['last_name']."<br>";
echo $row['dateofbirth'];
echo "<br><br>";
}
?>

Thanks...









Related Pages:
mysql query
mysql query  how do transfer into the excel data to my sql  ... with ("jdbc:odbc:excel"). Execute query "select name, address from [Sheet1$]". Here... the mysql connection in your php and store the list values inside the mysql
mysql query
mysql query  I have two tables namely sms and bdpaidbribe. I want to insert a column "Message" of sms table into "caddiinfo" column of bdpaidbribe table. and whenever the Message is inserted into sms table it should automatically
select query in mysql
select query in mysql  Select query in mysql. Can anyone
query
:mysql://localhost:3306/mysql","root", "root"); ResultSet rs = null; Statement...:mysql://localhost:3306/mysql","root", "root"); ResultSet rs = null; Statement st
insert query in mysql
insert query in mysql  insert query in mysql not working   [INSERT INTO Birthdays(firstname, lastname, birthday, group) VALUES('Sam','Smith','June','Junior
mysql query for null value
mysql query for null value   What mysql query for null value i need to write to display message when no data in database? Please help.Thanks!   if(mysql_num_rows($data2) > 0){ //while loop goes here } else
mysql query - WebSevices
mysql query  From your answer for my last post "SELECT * FROM roseindia WHERE age BETWEEN '20' AND '30' " If the age field... we compare with from and to ages?.  Hi... U May create your query
PHP MySQL query
PHP MySQL query  I have 11 tables and have to do the CRUD operations keeping userid as a reference key
range of dates in mysql query
range of dates in mysql query  How to select the range of dates in mysql ..when i have to select from between & and of date function?   SELECT * FROM MAAccounts WHERE updatedOn BETWEEN ? AND ? ORDER
mysql query - WebSevices
mysql query  I have a field in database as DOB. But I want to search recrods as per "fromage" to "toage". I dont know how to compare the ages with DOB field and retrieve records. plese help me. in mysql with PHP  Hi
mysql
mysql  want the code for mysql nested select query with single where condition.want to select data from more than one table
MySQL PHP Query delete
MySQL PHP Query delete       Mysql PHP Query delete is used to execute Mysql function ( ) delete query from a database table. MySQL PHP Query is used to delete the records
Mysql Date Query
Mysql Date Query       Mysql Date Query Date Query is used to return the current date, month and year... 'Mysql Date Query'. To understand this example we use current_date query
MySQL PHP Query delete
MySQL PHP Query delete       Mysql PHP Query delete is used to execute Mysql function ( ) delete query from a database table. MySQL PHP Query is used to delete the records
Mysql Minus Query
Mysql Minus Query       Mysql Minus Query is used to return the calculated value from subtracting... illustrate an example from 'Mysql Minus Query'. To understand and elaborate example we
Mysql Minimum Query
Mysql Minimum Query       Mysql Minimum Query is useful when you want to return the minimum value... an example from 'Mysql Minimum Query'. To elaborate more on it, we simply create
Mysql Minimum Query
Mysql Minimum Query       Mysql Minimum Query is useful when you want to return the minimum value... an example from 'Mysql Minimum Query'.To elaborate more on it, we simply create
Mysql Join Query
Mysql Join Query       Mysql Join Query is used to return the matchable records from  both table... an example from Mysql Join Query. To grasp this we create a table roseindia
MySql Databse query to fetch results from database
MySql Databse query to fetch results from database  Hi. I have a field in database named stages. its datatype is varchar(60). It contains values chennai,trichy,kanchipuram for a single record. I have to retrieve these data from
Mysql Not
for Mysql not : select !0 : The !0 in the select Query is used to return 1.   ... in set (0.00 sec) Another Query for Mysql not : select !1: The !1... Mysql Not       Mysql
session into a query
session into a query  Hi all this am Sreedhar from Hyderabad i am calling one session variable in mysql query but its not working can any one help me please... here is the query.. $query = 'SELECT * FROM post WHERE post_date <
query problem
query problem  how write query in jsp based on mysql table field? i have employee table it contain designation field, how write query in jsp... to write this query in jsp please anybody help me, and send me that code
fetch record from MYsql table query
fetch record from MYsql table query  Hi. I have a field in database named stages. its datatype is varchar(60). It contains values chennai,trichy,kanchipuram for a single record. I have to retrieve these data from the field table
select query
select query  how to retrieve a single image from mysql table using $row[] value
Query to insert values in the empty fields in the last row of a table in Mysql database?
Query to insert values in the empty fields in the last row of a table in Mysql... row of my MYSQL database. Now I want to fill up those empty fields in the last row. So what will be the query
optimize sql query
optimize sql query  How to optimize sql query in mysql? Thanks
single query to insert the data
single query to insert the data  How to insert data for all HTML fields in single MYSQL query
How to execute mysql query based on checkboxes values in java swing application.
How to execute mysql query based on checkboxes values in java swing... have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should
How to execute mysql query based on checkboxes values in java swing application.
How to execute mysql query based on checkboxes values in java swing... have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should
How to execute mysql query based on checkboxes values in java swing application.
How to execute mysql query based on checkboxes values in java swing... have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should
Mysql Last
Mysql Last       Mysql Last is used TO limit Mysql query result that fall in a specified range. The Query is used to show the first X number of results and show a range from X-Y
MySql Databse query to fetch results from database and display it in HTML File
MySql Databse query to fetch results from database and display it in HTML File  Hi. I have a field in database named stages. its datatype is varchar(60). It contains values chennai,trichy,kanchipuram for a single record. I have
GROUP BY IN NESTED QUERY
GROUP BY IN NESTED QUERY  Hello Every One, Query to use GROUP BY CLAUSE IN NESTED QUERY SELECT STATEMENT in mysql database.If u know please help me.thanks
MySQL BIGINT
MySQL BIGINT This example illustrates how to use the bigint data type in the MySQL query. In this example we create a table with column bigint data type.   Query   create table table1
Query On JDBC - JDBC
Query On JDBC  Hello , I am trying to migrate from xls TO mysql in Linux platform.. I'm using JDBC ODBC Bridge Driver..String url = "jdbc:excel:./personal1.xls";System.out.println
Mysql PHP Select
; Mysql PHP is used to execute the select statement using mysql_query ( ) function. The function send a query or command to a MySQL connection... table 'mytable' using select query. Now we make use of mysql_fetch_array
jsp query: - JSP-Servlet
jsp query:  hi, i was writing a program in jsp for accessing mysql database.. i was trying to print the each record in new line each time. even..... tell me how to do it.. code is as below...... using mysql database
MYSql with struts
MYSql with struts  How to write insert and update query in struts by using mysql database?   Please visit the following link: http://www.roseindia.net/struts/struts2/struts-2-mysql.shtml
Mysql Date Add
Mysql Date Add       Mysql Date Add is used to add the days  to the date specified in query. Understand with Example The Tutorial illustrate an example from 'Mysql Date Add
SQL Query - JSP-Servlet
SQL Query   AS mysql backend updation query shows a syntax error. I gave the full query and the generated error here. Please send me the correct query anyone. st.executeUpdate("update stud_detail set name='"+newname
Mysql Date Today
Mysql Date Today       Mysql Date Today show you Query to retrieve the current today date. ... date in Mysql. Query for finding the current date:- mysql>
Mysql As
Mysql As       Mysql... from 'Mysql As'. To understand this example we create a table 'stu'. The create... | +----------+--------------+ Query The Query given below is used to assign alias name
MySQL Create Database
Query Browser and MySQL Administrator, enabling the visual creation and modification of tables. The MySQL Table Editor can be accessed from the MySQL Query... table. Can be disabled. (Version 1.0.6).     MYSQL Query
MYSQL - SQL
MYSQL  how to select last row in table?(MYSQL databse)   How to select last row of the table in mySql Here is the query given below selects tha last row of the table in mySql database. SELECT * FROM stu_info
Mysql Last
Mysql Last       Mysql Last is used TO limit Mysql query result that fall in a specified range.The Query is used to show the first X number of results and show a range from X-Y
MySQL Not In
(0.00 sec) Query to use  Mysql not in : The Query below... MySQL Not In       MySQL Not In is used to updates only those records of the table whose fields 'id
sql query - SQL
sql query  hi sir,i have a month and year numbers,when i am enter a month and year in sql query then i want results for 1st day of month to last day..."); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost
MySQL Boolean Operator
MySQL Boolean Operator This example illustrates how to use the boolean operator 'NOT' in the MySQL query. In this example we create a PROCEDURE 'boolproc...()], and it display the output 'a is not equal to b'.   Query
Mysql Nested Select
Mysql Nested Select       Mysql Nested Select is a SELECT query that is nested within a Select, Update...) Query for Mysql nested select: The Nested Query is used to return those records

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.