Forum Moderators: coopster

Message Too Old, No Replies

Test this php script.

Please verify if this script works for you.

         

BigAl

8:22 am on Oct 6, 2005 (gmt 0)

10+ Year Member



Hi,

I'm trying to find out if this script works or not. Its called ClickBank Search Engine. Its a free download. I downloaded it and installed it to mysql db hosted on a Godaddy Linux shared server. For the life of me, I can't get the parse.php file to qury the ClickBank db. I just get a page full of WARNING messeges.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/c/b/r/cbrebates/html/HTML/php_uploads/codelock.php(21)

ect, ect...

The author of the script doesn't give support and niether does Godaddy. I've been researching how to fix this problem for days now. The script may need a patch from the author or my godaddy db isn't compatible. I don't have another host to test this script out on.

Can anyone PLEASE help a guy out and verify if this script works for them or not. I think its a problem with Godaddy because the demo of the script is working on the phpfreebies.com site. (check it out!)

Thanks!

[edited by: coopster at 1:47 pm (utc) on Oct. 6, 2005]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]

BigAl

1:27 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



nobody?

coopster

1:51 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The first thing to check would be to make sure that you are indeed getting a connection to your database. There are some tips in the PHP Forum Library [webmasterworld.com] in the PHP Troubleshooting [webmasterworld.com] thread describing how to determine SQL error issues. The MySQL error funtions are quite helpful as well.

Like I said, I would make sure you have a connection first, then start dumping the statements to see what is wrong.

surfin2u

2:07 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



I agree. The error sounds like you have not successfully connected to the database.

BigAl

2:51 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



Thanks guys, But I didn't write the script. I can't even look at the code bacause its locked with codelock. How can I tell if my connection to my db is correct ot not?

surfin2u

3:58 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



I'm not familiar with codelock. If you have the php code on your server, it seems like there's no way to keep you from being able to read the code.