1 #########################################
2 SIMPLE SCRIPT FOR SELECT QUERY
3 #########################################
4
5 < ? php
6 mysql_connect('localhost');
6 mysql_select_db('foo');
6 $result = mysql_query("select * from users");
6 if(!$result) echo mysql_error();
6 else {
6 while($row = mysql_fetch_row($result)) {
6 echo "$row[0] - $row[1] - $row[2] - $row[3] - $row[4]
\n";
6 }
6 }
6 ? >
Output:
mesakh - u8EOdeOls9ERlew - Web Solusi - web.solusi@gmail.com - 7823198438933424
abetnego - 7dTRdsf4Dler4524 - Web Media - e_webmedia@yahoo.com - 7823198438933424
News World
Jun 5, 2011
Subscribe to:
Post Comments (Atom)
IT Conversations
Error loading feed.
Moneycontrol Latest News
- Reduce Persistent Systems; target of Rs 3700: Emkay Global Financial - 4/23/2024
- Reduce Aditya Birla Fashion and Retail; target of Rs 230: Emkay Global Financial - 4/23/2024
- Reduce Wipro; target of Rs 410: ICICI Securities - 4/23/2024
- Tata Elxsi Q4 net profit, revenue decline QoQ; firm declares dividend of Rs 70 per share - 4/23/2024
- ICICI Pru Life Q4 net profit falls 26% to Rs 174 cr, insurer announces dividend - 4/23/2024
Latest new pages on Computer Hope
- Internet Advertising Terms - 3/16/2025
- How to Identify the Color Code Used in an Image - 3/16/2025
- Deprecated Windows Programs, Tools, and Utilities - 3/16/2025
- What is Mouse Settings? - 3/16/2025
- What is Ads.txt? - 3/16/2025
Latest from Infoworld
Door Lock
Door Lock Import Top Door Lock from China Contact Quality Manufacturers Now
No comments:
Post a Comment