Connect PHP to SQL Server | How to Connect PHP with SQL Server [ PHP SQL SERVER UPDATED ]
Вставка
- Опубліковано 10 вер 2024
- In this video I am going to show you how to connect PHP with SQL Server
Make a connection of PHP with SQL server. In this video, you can learn How to use SQL Server with PHP 8.1.10. Connecting PHP with SQL Server is very easy. This video uses Microsoft PHP Driver for SQL Server It
Download PHP Drivers:
docs.microsoft....
#Php #php8.1 #phpsqlserver #sqlserver2019 #tutorial #beginners
Related Queries:-
php sql server
php connect to server
connect php to sql server
php sql
mssql
microsoft sql server
php
apache/2.4.54 (win64) openssl/1.1.1p php/8.2.0 server at localhost port 80
conectar php con sql server
how to connect sql server
php 8
php 8.2
php and sql
php connecting to database
php login system
php tutorial for beginners
php website
php with mysql
php.ini
sql
sql php
sql project
sql server 2022
visual studio
Follow my Facebook Page : / 105940115222549
Follow me on Instagram : / cviulw2somi
Follow me on tumblr : / programming-guru
Follow me on reddit : www.reddit.com...
Ha Guys please Follow the this tutorial series.
We are going to learn creating Rest Api's in Php
and then we will create A Flutter App to Parse these
API's
excellent php and sql server connection tutorial
Thanks and welcome
brilliant php and sql server connection tutorial love it bro
Glad you liked it
ماشاالله، this is the first time im hearing بسم الله الرحمن الرحیم that is very good brother. may god bless you
God bless you too keep supporting freshta
Sa traiesti cumetre, mancati-as dormeza. Good Work!!! Just translate this, it's in romanian
Thanks
YOU ARE A LIFE SAVER....THANKS A LOT
Thanks
Cc j'espère que vous allez bien ?
Je rencontre une erreur de Sqlsrv _connect vous pouvez m'aider ?🥺🙏😢
Very useful php MSSQL server connection tutorial
Thanks
@@programmingguruThecoderboy slt aider moi svp 🙏😢
awesome php connection to sql sever well explained
Thanks
Awesome php and sql server connection tutorial
Thanks
Great PHP and MSSQL SERVER tutorial
Thanks
great php and sql server connection tutorial
Thanks
Nice php and sql server tutorial
Thanks
awesome php and sql server tutorial man keep it up
Thanks
very useful php tutorial
Thanks
Awesome php Sql server tutorial
Thanks
Thanks a lot. I don't know if you purpose to make the mistake to alart audience (change the $conn position), it makes benefit for me.
Welcome 😁😁
Very usefully. Thanks
Welcome
thank you very much , it works fine now
You're welcome!
Thanks for your tutorial
Welcome keep supporting do subscribe
perfect! Very helful video!
Welcome 🙂🙂🙂
thanks for your help
Welcome
Svp 🙏 comment connecter un formulaire à une base de données créer sur SQL server 😢
Sure I will
Nice and helpful
Thanks
Vrey helpful tutorial
Thanks
Hi, thanks for tutorial. I have trouble at 11:30, when I try to connect to the connection.php, it shows: PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect().... any suggestion would be appreciate
Bro your SQL server driver dll are not set up sql_srv is not PHP built-in function it is supported by these dlls make sure you copy the dll in correct folder and make changes to PHP.ini accordingly
@@programmingguruThecoderboy thanks for the reply. i have edited the .dll in php.ini, and i have put all the .dll into the ext folder, but i still get the message, idk which part i am missing :(
I am getting the same error.. if you have resolved this... please tell me the solution
@@muhammadfarman687 us farman bhai
@@ramizali6403 I have extracted all the drivers into the 'php -> ext' directory and additionally included another extension, 'extension=php_sqlsrv;', in the 'php.ini' configuration file.
excellent
Thanks!
Very impressive
Thanks
Ive done everything correct but im still encountering this issue "Undefined function 'sqlsrv_connect'."
It means the DLLs are not loaded by php
very useful video
Thanks
Thank bro
Welcome 😁😁
Hey great video but I've some problem, can you help me on this error?
Fatal error: Uncaught TypeError: sqlsrv_fetch_array(): Argument #1 ($stmt) must be of type resource, bool given in C:\xampp\htdocs\PHP-API\connection.php:27 Stack trace: #0 C:\xampp\htdocs\PHP-API\connection.php(27): sqlsrv_fetch_array(false, 2) #1 {main}
You have problem with the stmt check the line where you are creating stmt.
Or paste the code here
@@programmingguruThecoderboy while ($obj = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)){
echo $obj['ID'].'';
}
here are my code
Mine connects from sql server but it only shows 1 row how do i fix this?m
You have to loop through it
om kenapa saya ga mau di port 80 ya ? mau nya di 81. apa ini pengaruh ?
You can use any Port but it should be free and u should know how to set it up
Sir give reply how to fixed it
Fatal error: Uncaught TypeError: sqlsrv_fetch_array(): Argument #1 ($stmt) must be of type resource, bool given in C:\xampp\htdocs\webpage\webpage\conn.php:30 Stack trace: #0 C:\xampp\htdocs\webpage\webpage\conn.php(30): sqlsrv_fetch_array(false, 2) #1 {main} thrown in C:\xampp\htdocs\webpage\webpage\conn.php on line 30 mssql server php Microsoft SQL server
In your code it is in line no. 26. .....🙏🏻
Sorry for late reply you haven't create stmt correctly can you paste the code here
Please do I have to add .dll to the second extension?
Yah both DLLs
Thanks for the tutorial!
But, i still have a question... how can i make this connection work on my web server?
In the localhost it worked as you taught, but not on my web server.
Have some other thing to integrate on the project?
Or on the web server?
It should work on server as well can you send me the error or exception it throws on server
Hello, this is a nice video! However, I encountered an error regarding 'sqlsrv_connect' it says, Undefined function 'sqlsrv_connect'.intelephense(1010).
I tried to research about it and others says add SQLSRV32.EXE and add the extension: extension = php_sqlsrv_56_ts.dll. But still doesn't work.
Thank you!
The error is because of dll is not setup properly.
one doubt in case in laravel means ? with out xampp folder
Doesn't depends on xampp folder
@@programmingguruThecoderboy i had made some changes now its working 👍
Is there a way to contact you? I'm having trouble with mine, it's not printing 'connection established' I'd appreciate your help!
Email programmingguru1590@gmail.com
@@programmingguruThecoderboy I emailed you sir!
Are yar apne channel ka naam PROGRAMMING GURU badalkar PROGRAMMING MAULANA kar do
Ok
Assalamu Alaikum
walaikum salam
wsalam ha bro h r u
can i get this file
No bro 😭 it's deleted
Very helpful
Thanks