+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16
Web Development Thread, php and sql ? in Coding and Web Development; If you paste the SQL query... SELECT Forename , Surname , Comment FROM feedback into phpmyadmin's SQL page and run ...
  1. #16

    Join Date
    Jan 2007
    Location
    Lowestoft, Suffolk
    Posts
    84
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    17
    If you paste the SQL query...

    SELECT Forename , Surname , Comment FROM feedback

    into phpmyadmin's SQL page and run it do you get data back?
    If the num_rows call is failing with the error you posted, it looks like the result set has an error or is null.
    After $result = mysql_query($sql); check that $result is valid, before beginning to display the results.

    For debug purposes...

    print mysql_errno()." : ".mysql_error()."<br />";

    Zero is what you're looking for.
    Last edited by PaulBM; 21st October 2008 at 10:50 AM.



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. MS SQL 2005 - Dump SQL
    By tom_newton in forum Windows
    Replies: 7
    Last Post: 23rd January 2008, 06:10 PM
  2. PHP Help!
    By Cravon in forum Coding
    Replies: 2
    Last Post: 20th November 2007, 06:05 PM
  3. Help with PHP
    By Gatt in forum Web Development
    Replies: 1
    Last Post: 14th November 2006, 10:01 PM
  4. php help
    By beeswax in forum Windows
    Replies: 33
    Last Post: 14th October 2005, 05:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •