A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: php - MySQL data dump

  1. #1
    Senior Member -LEVI-'s Avatar
    Join Date
    Nov 2000
    Location
    Ottawa, ON
    Posts
    359
    im trying to view a MySQL database's content, but nothing shows up. There's no error message either. You can check it out here: http://www.hungariansociety.com/test.php

    and here's the code where I think the problem is:

    Code:
    $query = "SELECT * FROM test WHERE name LIKE '%$query%' OR code LIKE
    '%$query%';"; $result = mysql_query($query) or die("Error in query: " .
    mysql_error());
    
    // get record
    while($row = mysql_fetch_object($result))
    {
    	echo "<li>";
    	echo "<a href=go.php?id=$row->id>$row->tag</a>";
    	echo "<br>$row->title";
    	echo "<p>";
    }
    thanks,

    Levi

  2. #2
    Senior Member -LEVI-'s Avatar
    Join Date
    Nov 2000
    Location
    Ottawa, ON
    Posts
    359
    just bumping it up so u look at my question

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center