Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Fatal error: Uncaught Error: Call to undefined function my_sql() in C:\xampp\htdocs\testsite\data.php:12 Stack trace:#0 {main} throw in C:\xampp\htdocs\testsite\data.php on line 12

What I have tried:

My_sql("localhost", "root", "") or die ("can't connect")
Posted
Updated 15-Jul-21 3:23am

You need to fix the error - ofcourse. It sounds like you have the function my_sql() declared, but not implemented.
Check the code in data.php whether it is some typo or you missed to implement or include that code. I see that it start with error message with a "m" and later with "M". Fix it. ;-)
 
Share this answer
 
Comments
Davidlence 15-Jul-21 22:05pm    
Can you put me through on this php please
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900