₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,382 members, 8,421,661 topics. Date: Saturday, 06 June 2026 at 07:32 PM

Toggle theme

Php/web_question_v1 - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPhp/web_question_v1 (855 Views)

1 Reply

Php/web_question_v1 by crunchyDope(op): 12:22pm On Dec 17, 2019
Theory
php can be used to create a ecommerce or maybe a database,lets just say am using mysql for this (database), now i want to query for an item , i do need a connection to the database which i specified like
$conn = blah blah;
$db = more blah blanh;
$username = "crunchyDope";
$pwd = "blah blah";
and more blah blah...

Question
(1) ==>any body who visits this page wont need a username and password right?
(2) ==>so do i just create a dummy username and password and store in the php file?
(3) == >and for the life of me is that even safe?
gurus pls enlighten me, thanks sad huh
Re: Php/web_question_v1 by Thenaijaitguy: 3:02pm On Dec 17, 2019
crunchyDope:
Theory
php can be used to create a ecommerce or maybe a database,lets just say am using mysql for this (database), now i want to query for an item , i do need a connection to the database which i specified like
$conn = blah blah;
$db = more blah blanh;
$username = "crunchyDope";
$pwd = "blah blah";
and more blah blah...

Question
(1) ==>any body who visits this page wont need a username and password right?
(2) ==>so do i just create a dummy username and password and store in the php file?
(3) == >and for the life of me is that even safe?
gurus pls enlighten me, thanks sad huh
The username and password you have up there is for data base user not the website user.


So if you want the website user to have user and password .that will be stored in your database table.


Check out this free php login script.
https://www.naijaitguys.com.ng/Title/SIMPLE-PHP-LOGIN-SCRIPT-
Re: Php/web_question_v1 by crunchyDope(op): 4:54pm On Dec 17, 2019
Thenaijaitguy:
The username and password you have up there is for data base user not the website user.


So if you want the website user to have user and password .that will be stored in your database table.


Check out this free php login script.
https://www.naijaitguys.com.ng/Title/SIMPLE-PHP-LOGIN-SCRIPT-
ok noted, thanks
1 Reply

234

Visual Game Programmer NeededJava Programming And Software Engineering (duke University)Opencart Product Options SKU And UPC