Jump to content

[SOLVED] foreach loop error


PC Nerd

Recommended Posts

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
Share on other sites

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
Share on other sites

<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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.