note 86969 deleted from function.mysql-query by thiago
| From: | thiago@php.net | Date: | Wed, 12 Nov 2008 19:38:25 +0000 |
| Subject: | note 86969 deleted from function.mysql-query by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146458@lists.php.net to get a copy of this message | ||
Note Submitter: Ali Bo Abbass
----
This is a very very simple query :
<?php
include("config.php");
$query = mysql_query("select * from
examble;");
while($examble = mysql_fetch_array($query)){
echo $examble[date];
echo "<BR>";
}
?>
Also This Query but we have some differance :
<?php
include("config.php");
$id = $_GET['id'];
$query = mysql_qiery("select * from examble where id = $id;");
while($examble = mysql_fetch_array($query)){
echo $examble[date];
echo "<BR>";
}
?>
And I have the last one and it is Diffrent that the first and the second ,,
it gona take only 25 result for the DB i mean the limit is :
The second 25 from the DB ,, if it is 50 it gona be the third 25<<25,25>>The Number Of
The Result
<?php
include("config.php");
$id = $_GET['id'];
$query = mysql_query("select * from examble where id = $id limit
25,25;");
while($examble = mysql_fetch_array($query)){
echo $examble[date];
echo "<BR>";
}
?>