Forum Moderators: open

Message Too Old, No Replies

A Super mysql/php Challenge

A Challenge

         

Jimmyco

5:09 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



I have spent ten hours of company time on this problem, I thought I would let the "big dogs" take a shot at it. It is a script to load products dynamicly onto our front page. I get this error:

Fatal error: Call to undefined function: () in /www/t/thepawncom/htdocs/jtest/body.php on line 460


PLEASE HELP!

[edited by: txbakers at 6:06 pm (utc) on Mar. 17, 2006]
[edit reason] no ned for all the code - second edit [/edit]

ChadSEO

5:40 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Jimmyco,

Just to let you know, posting URLs is against TOS, and there are a few scattered through your code. Also, posting large dumps of code isn't very helpful. The error message states the problem is on line 460, so it would be more helpful to post just line 460, plus 5-10 lines before and after. Having said that, the only line that jump out to me is:

echo $sb_date($rs0["endson"],0);

I didn't see you setting sb_date anywhere, so unless its set in myconnect.php, that could be your problem.

Chad

Jimmyco

1:53 am on Mar 18, 2006 (gmt 0)

10+ Year Member



Chad.

I didnt realize I forgot to take out the URLS. Also, each time I fix something I get another error, I figured it would be better to post the whole code in this case.

txbakers

3:26 am on Mar 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One general bit of advice when using code that you didn't write is to take the time to work through and understand every line in it.

It's very time consuming and can be frustrating, especially if you are new at using databases and this type of code, but well worth it.

Your error message indicated that you called a function that wasn't defined anywhere in your program.

Posting the whole code here only confuses everyone trying to help. As the poster above said, the only line that was needed was the line pointing to the error. And even that wasn't needed because the error is defined as a Call to undefined function

Jimmyco

5:24 am on Mar 18, 2006 (gmt 0)

10+ Year Member



yeah I didnt write the code. I was hired and has to figure out someone else code that my boss bought. I want to start over, I could right a working code from scratch.