SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: not fetching from MySQL
-
Apr 5, 2005, 01:08 #1
- Join Date
- Apr 2005
- Location
- Chandannagar(India)
- Posts
- 459
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
not fetching from MySQL
Hi all,
I want to know the usage of the following function:
<php>mysql_fetch_array</php>
-
Apr 5, 2005, 01:16 #2
You can find that here:
http://be.php.net/manual/en/function...etch-array.php
with examples and all...
-
Apr 5, 2005, 01:17 #3
- Join Date
- Dec 2004
- Location
- London, UK
- Posts
- 1,376
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have you considered looking on the PHP website in the PHP manual for the usage of that function.
http://uk2.php.net/manual/en/functio...etch-array.php
The PHP manual is your friend, and even better, an editor with argument hinting (such as PHPed, ZDE etc.)
-
Apr 5, 2005, 01:26 #4
Originally Posted by achintya
How r your programming is going on in new Company?
Mysql_fetch_array is fetching records from the data base and store in an array.
PHP Code:$ch="select * from rb_template";
$result=mysql_query($ch) or
die(__LINE__.mysql_error());
?>
<form method="post" name="chooseform">
<?
while($qd=mysql_fetch_array($result)) {
?>
<p><input name="template" type="radio" value="<? echo $qd['temp_loca']; ?>"><? echo $qd["temp_name"]; ?></p>
<?
}
?>
<input type="submit" name="submit" value="Choose">
</form>-::Ujjwal::-
Visit My Site
Bookmarks