General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 14th, 2012, 09:36 AM
oceanisler oceanisler is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 2 oceanisler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 6 sec
Reputation Power: 0
mysql_fetch_array() expects parameter 1 to be resourcem

PHP Code:
<?php     $con mysql_connect("localhost","root","");     if (!$con)     {     die('Could not connect: ' mysql_error());     }     print "Connected to MySQL<br>";           mysql_select_db("allowance"$con);     $result mysql_query("SELECT * FROM allowance ORDER BY ITEMDESCIPTION");     // make box and name the fields in html     echo "<table border='1'>     <tr>     <th>ITEMDESCRIPTION</th>     <th>ALLOWANCE</th>     <th>ESTIMATE</th>     <th>COST</th>     <th>OVERAGE</th>     <th>CREDIT HIDE THIS COLUMN</th>     <th>CREDIT</th>     </tr>";     // fill box with data     while($row = mysql_fetch_array($result))     {     echo "<tr>";     echo "<td>" . $row['ITEM DESCRIPTION'] . "</td>";     echo "<td>" . $row['ALLOWANCE'] . "</td>";     echo "<td>" . $row['ESTIMATE'] . "</td>";     echo "</tr>";     }     echo "</table>";                            mysql_close($con);     ?>

I cannot figure out what i am doing wrong. I am new to this, So any advise or direction would be appreciated, i am trying to show what use to be an excel file in a registered area of joomla.

Last edited by oceanisler : February 14th, 2012 at 09:50 AM. Reason: typed wrong thing

Reply With Quote
  #2  
Old February 14th, 2012, 11:06 AM
oceanisler oceanisler is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 2 oceanisler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 6 sec
Reputation Power: 0
Close Thread I found my Error

Mod please CLose this thread, i didnt put row numbers in, sorry to waste everyones time

Reply With Quote
  #3  
Old February 15th, 2012, 08:10 PM
Elena7856 Elena7856 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 4 Elena7856 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 25 sec
Reputation Power: 0
URLURLURL

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > ORDER BY problem


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap