Jump to content

LordStanley

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

LordStanley's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. okay, so basically heres what i need help with. i have a code that uses curl to grab the page that i set it to. now what i need the script to do is find certain information on the page and extract it. what do you think would be the best way to do this?
  2. $result=mysql_query("SELECT breed FROM animals WHERE animals.breed = animals.breed ORDER BY breed")or die( "Error! Could not select the database: " . mysql_error() ); that query doesnt make sense where animals.breed=animals.breed will ALWAYS Be true. and you dont even need the animals. because your only selecting from one database heres a logical way of doing what you need [code]<table class="text1" width="100%" border="0" cellpadding="2" cellspacing="0"> <? $result=mysql_query("SELECT breed, count(breed) as num FROM animals ORDER BY breed")or die( "Error! Could not select the database: " . mysql_error() ); while ($category = mysql_fetch_array($result))  { echo '<tr> <td width="11"><img src="images/down_arrow.jpg" width="10" height="10"></td> <td width="100%"><a href="'.$path.$category['breed'].'.php">'.$category['breed'].'</a> <a href="'.$path.$category['breed'].'.php"> ( '.$category['num'].')'; }[/code] thats not tested, but it should work... try that
  3. require ("/mysql_test/dbConfig/db_config.php") thats your problem. it should be require ("/mysql_test/dbConfig/db_config.php"); you forgot the ending semi-colon
  4. really...i have firefox 1.0 and it works fine for me
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.