Portland
Web Development™
PO BOX 3262, Portland, Oregon 97208 - 503-805-6811
Pages
Hello Human.
PCI Compliance
Portfolio
RFP
Web Design
Web Programming
Contact Us
Categories
Code Examples
(14)
ASP
(3)
css
(6)
html
(1)
Javascript
(5)
PHP
(2)
MySQL
(1)
Design Examples
(4)
PNG
(2)
typography
(2)
Products
(3)
Services
(3)
Uncategorized
(3)
Archive for the ‘MySQL’ Category
Reset a result source in PHP with mysql_data_seek
Tuesday, August 28th, 2007
$result
=
mysql_query
(
"SELECT names FROM table;"
)
;
while
(
$row
=
mysql_fetch_array
(
$result
,MYSQL_ASSOC
)
)
{
//procedure
}
mysql_data_seek
(
$result
,
0
)
;
// Reuse your recordset
while
(
$row
=
mysql_fetch_array
(
$result
,MYSQL_ASSOC
)
)
{
//procedure
}
Posted in
ASP
,
Code Examples
,
MySQL
,
PHP
,
typography
|
5 Comments »