PHP Tutorial : Building a MySQL query

In a recent tutorial I was showing you how to build a connection to MySQL database via PHP. In this one I will show you how to create a query to interogate a table of the database. Look below :

<?php
$query = mysql_query("select * from table_Name");
?>

* – sign means all, so by using this query, you will select all fields from a table_Name

This entry was posted in Php & MySQL and tagged , , , , , , . Bookmark the permalink.

2 Responses to PHP Tutorial : Building a MySQL query

  1. bogdan says:

    There’s no script in this post, you might want to correct that…

  2. admin says:

    using php exec plugin so that might be the reason

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>