PDA

View Full Version : Need help for a php script



H.U.G.E.
June 21st, 2006, 07:03
Please read :

my problem is that after i installed my script(all went god,whit my database and stuff) on my pages shows a lot of errors like :

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/clic2176/public_html/config_inc.php on line 40
[$query = "select * from ".$t_clear;
$result = MYSQL_QUERY($query);
if((mktime(0,0,0,date("m"),date("d"),date("Y"))!=mysql_result($result,0,"date"))and(date(w)==0)){
unset($body,$subject,$row,$result);
require('admin/error_inc.php');
require('admin/weekstat.php');
unset($body,$subject,$row,$result);
require('error_inc.php');
}
@mysql_free_result($result);]




Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/clic2176/public_html/signup.php on line 181


Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/clic2176/public_html/admin/config_inc.php on line 59

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/clic2176/public_html/admin/index.php on line 92

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/clic2176/public_html/admin/index.php on line 96


Please help me.....

iBrightDev
June 21st, 2006, 08:24
why are you using

$query = "select * from ".$t_clear;
and not using

$query = "select * from $t_clear";
?????????????
send the config, setup, and index files to me, and i will look at them. get my msn info from my profile, and IM me. i will give you me email there.

H.U.G.E.
June 21st, 2006, 09:20
Thank you for you post
All the files whit problems: http://rapidshare.de/files/23684016/script.zip.html

Sorry if there are junk.

H.U.G.E.
June 21st, 2006, 09:24
o...and .... i don't know anything about PHP...

GamePhreak
June 21st, 2006, 13:01
Check to make sure that $t_clear is a valid table. To be sure, use this line after the mysql_query().



echo mysql_errno($link).': '.mysql_error($link);

iBrightDev
June 21st, 2006, 14:29
Check to make sure that $t_clear is a valid table. To be sure, use this line after the mysql_query().



echo mysql_errno($link).': '.mysql_error($link);

already fixed error. i checked the database, and there was no tables in it. lol. so i had him upload the sql file, and it all works fine, but thanks anyways.

can close thread now. :D

H.U.G.E.
June 21st, 2006, 14:47
I resolved the promblem whit the errors, but now ..... i got another thing : The script looks fine but Dosen't work... is not saving anything.. user can't register..

GamePhreak
June 21st, 2006, 15:26
Well we can't help if we can't see the code...

H.U.G.E.
June 21st, 2006, 15:29
what code ??? from what file ???
The script is not give me any errors but is not function

H.U.G.E.
June 21st, 2006, 15:32
tell me what file

GamePhreak
June 21st, 2006, 15:37
I don't know... Are you running this from a script? Did you make this yourself? How about you attach the file that should input the data...

H.U.G.E.
June 21st, 2006, 15:42
the script is downloaded from a site.
http://rapidshare.de/files/23684016/script.zip.html
here are some files, i dond't know if there are the right ones

H.U.G.E.
June 22nd, 2006, 05:06
stiil don't work... :(

webadpro
June 22nd, 2006, 08:09
Alright,

First of all, Make sure you've CHOMD the files that are suppose to be writtin to 777.

H.U.G.E.
June 22nd, 2006, 16:03
in total 8 files to chomod ....done...something else?
it's from my database?....
i'v install anoyher script and yhe same problem ,plese give me a advice....

H.U.G.E.
June 23rd, 2006, 17:08
is from my database?...or from the script?......
i've tryed another script but same problem , what to do?

webadpro
June 25th, 2006, 07:55
Got any live links to your script?

krakjoe
July 3rd, 2006, 04:28
$query = "select * from $t_clear";



should that not be



$query = "select * from '$t_clear'";


I don't think it's selecting the database, underneath that line of code place

echo $query;

temporarily, while we see if the variable is gettin to the script......