From e49b1d7ae8f1fca3c863771c548307126570c6e0 Mon Sep 17 00:00:00 2001 From: SiskelDev Date: Mon, 22 Sep 2025 02:06:47 +0200 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f882ee6..be8c5e3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # PHP-sqlToJson This is a simplified Function for making SQL Requests and getting them back as JSON Text + +# Example +```PHP +// Import the Class +require_once("sqlToJson.php"); + +// Initialize the Class and enter all Information to your MySQL-Server +$stj = new sqlToJson(hostname: "localhost", username: "username", password: "password", database: "database"); + +// For Example you can print the JSON Text +// This Function only returns a String +echo $stj->request("SELECT * FROM table"); +``` + +# About this Project +This was a Simple idea of a Friend of mine and i wanted to also publish the idea for everyone that might need it.