₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,968 members, 8,448,004 topics. Date: Sunday, 19 July 2026 at 02:00 PM

Toggle theme

GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingGURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql (1243 Views)

1 Reply (Go Down)

GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by waikiki(op): 1:54pm On May 19, 2017
please reply for details!!!!!!!
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by ellagabs(f): 1:58pm On May 19, 2017
av u creatd ur tables?
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by waikiki(op): 2:02pm On May 19, 2017
ellagabs:
av u creatd ur tables?
yes ma'am, i have done all that

the problem now is that my php code does not connect to database. i've tried all the possible codes out there

Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by chygoz3(m): 3:02pm On May 19, 2017
You cannot run a php file using the 'file' protocol. In other words, your address bar should contain something like http://localhost/my_hobby_app/index.php

The address in your browser indicates that the folder containing the index.php file contains spaces in its name. I suggest you remove the spaces.
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by waikiki(op): 5:04pm On May 19, 2017
I'll just install wamp


this xampp is just driving me crazy
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by webdeveloperqx: 10:20pm On May 19, 2017
waikiki:
I'll just install wamp


this xampp is just driving me crazy
for quick testing , you can create a server and listen at a port of your choice ,

STEPS:

1.open your terminal for mac or command prompt for windows

2. change to the directory of where you files are by typing " cd foldername" , foldername here points to your working directory or folder

3.to create a server , type php -S localhost:9987

4. run your scripts by visiting localhost:9987
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by Nobody: 6:14am On May 20, 2017


<?php
$host= 'localhost';
$user= 'root';
$pass= '';
$db="testdb";

$con= mysqli_connect($host,$user,$pass,$db) or die('cannot connect '. mysqli_error());
mysqli_close($con);
?>




Kindly use Google next time. And set up your xampp/wampserver. Copy and pasting codes isn't the right thing to do,obviously, you won't learn a thing like that.
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by beatsbyj2g(m): 11:41am On May 20, 2017
waikiki:
please reply for details!!!!!!!
Chill take your time and read about stuffs.
Part of being a developer means we have to read slot
Google and read up to 3 articles on how to use xamps ...

And all your problems will be solved
Re: GURUS! I Need Urgent Help With Using Php To Connect To Xampp Mysql by SunFlow(m): 8:13pm On May 20, 2017
next, just let it slide and take a time out. Coding can be fraustrating atimes.
1 Reply

Php Mysql: Use Php To Serialize Mysql TableXampp Server User Please Come In And AssistIT Gurus I Need Your Help Concerning My SIWES234

Get USA Number For WhatsappTo The Software Developers In The HouseRobust Sales And Inventory Management App You Can Make Money From