Networking, Programming and Graphics Tutorials

How to make SQL SELECT query [1/2]

Type: Code Networking, Programming and Graphics Tutorials
How to make SQL SELECT query
Level: Beginner Networking, Programming and Graphics Tutorials 
How to make SQL SELECT query
Date: 2007-Mar-12
How to make SQL SELECT query
Visited: 2833 times
How to make SQL SELECT query
Rating: How to make SQL SELECT query
How to make SQL SELECT query
Author: Ivory Morhuld

This tutorial will show you how to use MySQL querys to database in your PHP scripts.

mysql_query(query, [link_identifier])


mysql_query() sends a query to the currently active database on the server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is assumed. If no link is open, the function tries to establish a link as if mysql_connect() was called with no arguments, and use it.

In next examples we will teach you how to make more querys.

<?php
$quety
="select * from table";
$result=mysql_query($query);
?> 
Above example will return you:

ID Name Sex Age
1 John Smith Male 33
2 Barbara Roland Female 28
3 Kate Winston Female 22
4 Peter Trump Male 46
5 Andrea Gilbert Female 37
Networking, Programming and Graphics Tutorials - How to make SQL SELECT query [1/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: how to make a select query  how to make a select query sql  how to make select query in mysql  how to make a SELECT Sql query as a Table  given a select query,output tables present in query using php mysql  usings select query inside update query  select query inside the update query  Select query inside update query  mysql SELECT from select query  using select list for select query in PHP