๐ Hello! My name is Sunny. I create content on sunnysingh.io and share resources on resrc.dev.
I am currently building TSNew.
A PHP framework for database interaction with MySQL.
Home Page: https://sunnysingh.io/blog/database-framework
๐ Hello! My name is Sunny. I create content on sunnysingh.io and share resources on resrc.dev.
I am currently building TSNew.
Hi sunnysingh,
I'm not so good in php, so it may be an easy to fix issue. That's the problem:
When i try to insert a new user in my database, i get this error message
"Undefined index: query in /opt/lampp/htdocs/public_html/www.gaptricesimo.it/PHP/classes/database.php on line 51".
I used the sintax provided by you in the docs $insert = $db->query("INSERT INTO people (name, age) VALUES('Bob', '123')");
I also tryed the other sintax for sensitive variables but after that the errors became two:
Notice: Undefined index: query in /opt/lampp/htdocs/public_html/www.gaptricesimo.it/PHP/classes/database.php on line 51
Notice: Undefined variable: markers in /opt/lampp/htdocs/public_html/www.gaptricesimo.it/PHP/classes/database.php on line 79
Can you please help me to find out where i'm wrong?
Thank you so much and congratulations for the great Class, i hope to get it working.
P.S. I included the file correctly and the rows are actually stored in the database, just wondering why those errors appear. Working with xampp on linux.
Lorin
Hi Sunny,
There's another little problem with the framework. On local it seems to have no problems, but when i switch to the remote server a problem occurs: Longtext fields won't be fetched by any of the framework functions. And it seems to be a broblem of the framework, cause i tryed another script and it worked fine. To solve i was forced to change the field type to mediumtext. What's the problem in your opinion?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.