Jump to content
Killersites Forums


New Members
  • Posts

  • Joined

  • Last visited

Teddy's Achievements


Newbie (1/14)



  1. Hi reza01, Actually i have a doubt in ur post, i think u have taken from somewhere else. Anyway i'll try my best. config.php - u have included in very 1st line plz chk it out whether have u followed the db name given in that..... Have a nice day
  2. Database Connection should be....... $con = mysql_connect("localhost","root",""); or $con = mysql_connect('localhost','bcheight_textmon','fadjflka'); if(!$con) { die('Could not connect: '.mysql_error()); } mysql_select_db("bcheight_text",$con); --> plz look at this line u didn't connect to the DB... and u can follow this one...... $sql_query = mysql_query("SELECT promoters.username, promoter_sales.package_sold FROM promoters, promoter_sales WHERE promoters.username = promoter_sales.username"); while($row = mysql_fetch_array($sql_query)) { $sold_date = $row['date_sold']; $sold_package = $row['package_sold']; echo "Sold Date: " . $sold_date . "Package Sold: " . $sold_package . " "; } Have a nice day
  3. Hi, Usually when u get this Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource........ it means ur information is wrong (table, db, etc.,) or the result is empty (there is no data in the table) so check that first.... Hope this helps
  • Create New...