PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 ok, this is the entire output of what you added <br>mysqli_result Object ( ) NULL object <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at FILE:15) in <b>C:\xampp\xampp\htdocs\Battle-Ages\Crons\cron_incs\Cron_Attack.inc</b> on line <b>21</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>FILE</b> on line <b>23</b><br /> anything else? Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220436 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 mysqli_result Object is Empty Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220437 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 Try to do the same thing using mysql not mysqli. e.g. replace all mysqli with mysql. Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220441 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 $Att_Start Doesn't Exists $Att_Start_Query Is a Blank Object Something is wrong Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220442 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 ive tried this with every other mysqli error ive redeived, but it doesnt work, anyway, i know that it works cos its the same with all the other, roughly 50 queries that are working....... but ill do it anyway..... Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220443 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 <br /> <b>Warning</b>: mysql_query(): supplied argument is not a valid MySQL-Link resource in <b>FILE</b> on line <b>7</b><br /> Could not retrive Attack Players. thats the output from replaceing mysqli with mysql Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220444 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 Ok So test This. Downloaded all those files from here http://sourceforge.net/project/showfiles.php?group_id=192566 and extract it. <?php //Where path is whaere you have extracted all those downloaded files. //Keep this file just out of the path folder e.g. paste this file in that folder whaere the path is include_once('path/config.php'); include_once('path/db/browse.php'); include_once('path/done.php'); $Max_Points = $Page_Date['Points'] * 1.3; $Min_Points = $Page_Data['Points'] * 0.7; $conn = mysql_connect("localhost", "root", ""); $test = new browse("db_name", "General_Stats", $conn);//db_name, table_name, $conn $test->set("Points", ">", $Min_Points);//Set The GIVEN Fields, and its Value $test->set("Points", "<", $Max_Points) $test->find('User_ID', 'Points'); $result = $test->adv_output(); print_r($result); ?> Whats the output Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220446 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 um, what is this??? from sourceforge Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220469 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 A Quick Solution to do the same Job. Did you tested that ?? Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220473 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 no i havent done it is there another way, i dont particualarly have tim eto go downloading and installing stuff.......??? if not, are all 4 or 5 files necissary??? whats the deal and what exactly are they, not just "a quick way to do this" like "a 3rd party CMS" or something... thanks PC Nerd Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220475 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 Whats your mysql connection variable name Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220477 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 its $DB_Server its in the file that include this one Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220487 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 Show the Line where $DB_Server = mysql_connect(); Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220489 Share on other sites More sharing options...
PC Nerd Posted April 3, 2007 Author Share Posted April 3, 2007 ok, ive got it working, i cant remember what id did, but i think it was one of the values in the including fiile thanks for all your help.. PC Nerd Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220764 Share on other sites More sharing options...
neel_basu Posted April 4, 2007 Share Posted April 4, 2007 The User Name or password or hostname was wrong in mysql_connect() Link to comment https://forums.phpfreaks.com/topic/45249-solved-foreach-loop-error/page/2/#findComment-220947 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.