当前位置:网站首页>PHP database connection succeeded, but data cannot be inserted
PHP database connection succeeded, but data cannot be inserted
2022-07-04 02:54:00 【CSDN Q & A】
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ' ha-ha '@'localhost' (using password: NO) in E:\member\postReg.php:17 Stack trace: #0 E:\member\postReg.php(17): PDO->__construct('mysql:host=;dbn...', '\xE5\x93\x88\xE5\x93\x88', NULL) #1 {main} thrown in E:\member\postReg.php on line 17
What's wrong solve Very anxious

Take the answer :
Remove the circled code , use mysqli Why build another PDO What are the linked objects for , It is not necessary to use PDO 了


If you have other questions, you can continue to communicate ~
边栏推荐
- The "two-way link" of pushing messages helps app quickly realize two-way communication capability
- Node write API
- Question d: Haffman coding
- Leetcode 110 balanced binary tree
- Summarize the past to motivate yourself to move on
- Short math guide for latex by Michael downs
- Unity knapsack system (code to center and exchange items)
- Record a problem that soft deletion fails due to warehouse level error
- Johnson–Lindenstrauss Lemma
- 機器學習基礎:用 Lasso 做特征選擇
猜你喜欢

MySQL workbench use
![[Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)](/img/4d/4a6b76896bf81a27d036a047f68b2b.jpg)
[Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)

Libcblas appears when installing opencv import CV2 so. 3:cannot open shared object file:NO such file or directory

Talking about custom conditions and handling errors in MySQL Foundation

The 37 year old programmer was laid off, and he didn't find a job for 120 days. He had no choice but to go to a small company. As a result, he was confused

Save Private Ryan - map building + voltage dp+deque+ shortest circuit

The first spring of the new year | a full set of property management application templates are presented, and Bi construction is "out of the box"

Database concept and installation

Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram

Mysql-15 aggregate function
随机推荐
Global and Chinese market for travel wheelchairs 2022-2028: Research Report on technology, participants, trends, market size and share
A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
Global and Chinese market of handheld melanoma scanners 2022-2028: Research Report on technology, participants, trends, market size and share
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
C learning notes: C foundation - Language & characteristics interpretation
Advanced learning of MySQL -- Application -- index
Libcblas appears when installing opencv import CV2 so. 3:cannot open shared object file:NO such file or directory
I stepped on a foundation pit today
Code Execution Vulnerability - no alphanumeric rce create_ function()
12. Gettimeofday() and time()
Dans la recherche de l'intelligence humaine ai, Meta a misé sur l'apprentissage auto - supervisé
Node solves cross domain problems
Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.
Setting methods, usage methods and common usage scenarios of environment variables in postman
Design and implementation of redis 7.0 multi part AOF
Format character%* s
Safety tips - seat belt suddenly fails to pull? High speed police remind you how to use safety belts in a standardized way
Osnabrueck University | overview of specific architectures in the field of reinforcement learning
Crawler practice website image batch download
Enhanced for loop