I need help on this php pdo error:PHP PDO - Uncaught Error: Call to a member function prepare() on null
Bienvenue 0 Newbie Poster
Recommended Answers
Jump to PostI'm not seeing where in your code you declare the variable
$con
that holds the connection. You can't prepare a MySQL statement if the connection doesn't exist.
All 4 Replies
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Bienvenue 0 Newbie Poster
Bienvenue 0 Newbie Poster
Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.