note 86969 added to function.mysql-query
| From: | AliBoAbbass at osu1 dot php dot net | Date: | Wed, 12 Nov 2008 19:35:24 +0000 |
| Subject: | note 86969 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146457@lists.php.net to get a copy of this message | ||
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>";
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 78.89.51.215
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- https://master.php.net/note/edit/86969
Del: integrated -- https://master.php.net/note/delete/86969/integrated
Del: useless -- https://master.php.net/note/delete/86969/useless
Del: bad code -- https://master.php.net/note/delete/86969/bad+code
Del: spam -- https://master.php.net/note/delete/86969/spam
Del: non-english -- https://master.php.net/note/delete/86969/non-english
Del: in docs -- https://master.php.net/note/delete/86969/in+docs
Del: other reasons-- https://master.php.net/note/delete/86969
Reject -- https://master.php.net/note/reject/86969
Search -- https://master.php.net/manage/user-notes.php