call to undifined function

Fatal error: Call to undefined function get_products_recent() in /xxxxxxxxxx/index.php on line 4

Why can't I call the function get_products_recent()?
index.php
products.php
Zoe ZoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Because it does not exist in the code that you have posted.
1
Ray PaseurCommented:
"Undefined function" is telling you that PHP does not have a function named that, and the current PHP script does not define any function with that name.

If you're new to PHP and want to learn the language, this article may be able to help you get started.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11769-And-by-the-way-I-am-new-to-PHP.html
0
Ryan ChongCommented:
pls include the script (.php) that contains the function get_products_recent() into your index.php
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Zoe ZoeAuthor Commented:
Sorry uploaded the wrong file, it's now in the products.php. it still has the same error message.
0
Zoe ZoeAuthor Commented:
0
Ryan ChongCommented:
can you do a search for "get_products_recent()" within your scripts (in the include file), as well as your in your php editor tool?

just  want to make sure it's "included" now...

and call the function get_products_recent() only after the script is "included".
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ryan ChongCommented:
it seems that latest products.php uploaded in comment: ID: 40901573 didn't show up with function get_products_recent()
0
Zoe ZoeAuthor Commented:
Yes, thanks Ryan. I found the problem. the index.php included a wrong file :(
1
Ryan ChongCommented:
no worries, glad that you resolved your problem cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.