A blank page is displayed when php is connected to mysql. after phpmyadmin is configured, it cannot be extended to mysqli.
Source: Internet
Author: User
A blank page is displayed when php connects to mysql. after phpmyadmin is configured, it cannot be extended to the mysqli configuration environment as follows. Apache_2.2.6mysql & nbsp; server & nbsp; 5.5php-php-5.2.3-win32phpMyAdmin-3.4.3.2-all-languag php connection mysql blank page appears, phpmyadmin configuration can not be extended to mysqli
The configuration environment is as follows.
Apache_2.2.6
Mysql servers 5.5
Php-php-5.2.3-win32
PhpMyAdmin-3.4.3.2-all-languages
Windows 32-bit
Beginner, new to php, learned to connect to mysql. When something went wrong, I searched for all the methods on the Internet, but it was a bit frustrating and the software was not properly configured. how can I proceed.
1. Use a statement to test the SQL connection. The result shows a blank page. at first, a webpage error is displayed. After mysql is started, only a blank page is displayed.
If ($ dbc = mysql_connect ('localhost', 'username', 'password '))
Echo ($ dbc)
Echo (Successfully connected to mysql !)
Mysql_close ();
} Else {
Echo (failed !)
2. when phpMyAdmin installed the configuration, the web page could not be opened at first. later, it was found that it should be stored in the php directory I wrote, but it showed that the mysqli extension was missing.
These two problems cannot be solved. I don't know how to continue learning php. Very annoying. Please advise.
First of all, for the first step, in the php configuration, all dll file copies, as well as the removal of colons in php. ini, and so on, I can ensure that it is correct and I have checked it several times.
In the second layout, I was right about the username, password, and other changes in config. ini. php.
This problem still persists. Please give me some advice.
What do you encounter when you were new to php? Installation of software fails. it is too frustrating for a girl who vowed to learn php! Share:
------ Solution --------------------
Girl... whatever.
If you want to learn programming, you don't have to worry about yourself.
Open the error like upstairs, and then output
Echo phpinfo ();
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service