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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.
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
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
pls include the script (.php) that contains the function get_products_recent() into your index.php
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Zoe ZoeAuthor Commented:
Sorry uploaded the wrong file, it's now in the products.php. it still has the same error message.
Zoe ZoeAuthor Commented:
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
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".

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 ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
it seems that latest products.php uploaded in comment: ID: 40901573 didn't show up with function get_products_recent()
Zoe ZoeAuthor Commented:
Yes, thanks Ryan. I found the problem. the index.php included a wrong file :(
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
no worries, glad that you resolved your problem cheers
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.