•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 403,398 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,672 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 188 | Replies: 2
![]() |
•
•
Join Date: Feb 2008
Posts: 14
Reputation:
Rep Power: 0
Solved Threads: 0
pls help me!! why this code is not executing?also send me the exact code to fetch a table from a database in a table format in a web page!!!!!
php Syntax (Toggle Plain Text)
<?php $con=mysql_connect("localhost","root",""); mysql_select_db("niladri",$con); $sql="SELECT * FROM `category` "; $res==mysql_query($sql); while($row==mysql_fetch_array($res)); { echo $row['cat_id']; echo $row['cat_name']; } ?>
Last edited by peter_budo : Apr 5th, 2008 at 12:34 pm. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 239
•
•
•
•
while($row==mysql_fetch_array($res));
Its $row= and not $row==.
•
•
•
•
also send me the exact code to fetch a table from a database in a table format in a web page!!!!!
http://www.w3schools.com/php/php_mysql_select.asp
Last edited by nav33n : Apr 4th, 2008 at 9:44 am.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: PHP4 regular expressions?
- Next Thread: pls. help me!!!!



Linear Mode