What's new

Databases Problems Are Painful...

A millionaire mentor who actually shows up.

MJ DeMarco, author of The Millionaire Fastlane, has posted here on 99.91% of days since 2007. Ask your question and get answers from people who've built real businesses.

Join the Fastlane Forum

Want to read first? Get MJ's books · Hate ads? Go Insiders

MJ DeMarco
MJ DeMarcoFounder, in the forum daily
99.91%
of days MJ has posted since 2007
44,000+
posts from MJ answering members
1M+
posts to search on every business model

David Lachow

New Contributor
LEGACY MEMBER
Read Fastlane!
Read Unscripted!
Joined
Oct 1, 2021
Messages
91
Rep Bank
$430
User Power: 60%
Bonjour,
So basically there is a problem that accrued recently... :xx:
I will try my best to explain it simply and save you time. :thumbsup:
If you have experience with it, and you have time to help me, I would absolutely appreciate it! :)
-------------------------------------------------------------------------------------------
I created a database in phpmyadmin,
I wrote PHP code in connect.php,
I wrote code in signin.html,
I connected them all together.
But still, this shows up:

Se kildebildet


------------------------------------------------------------------------------------------------
Here is my signin.html code:

<form method="post" action="connect.php">
<label>First Name...</label>
<input type="text" placeholder="" id="firstName" name="firstName">
<label>Last Name...</label>
<input type="text" placeholder="" id="lastName" name="lastName">
<label>Email</label>
<input type="email" placeholder="" id="email" name="email">
<label>Password...</label>
<input type="password" placeholder="" id="password" name="password">
<label>Comfirm Password...</label>
<input type="password" placeholder="">
<input type="submit" value="Submit" name="btn btn-primary">
</form>


----------------------------------------------------------------------------------------

Here is my connect.php code:

<?php
$firstName = filter_input(INPUT_POST, 'firstName');
$lastName = filter_input(INPUT_POST, 'lastName');
$email = filter_input(INPUT_POST, 'email');
$password = filter_input(INPUT_POST, 'password');
if (!empty($firstName)){
if (!empty($lastName)){
if (!empty($email)){
if (!empty($password)){
$host = "localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "accounts";
// Create connection
$conn = new mysqli ($host, $dbusername, $dbpassword, $dbname);
if (mysqli_connect_error()){
die('Connect Error ('. mysqli_connect_error() .') '
. mysqli_connect_error());
}
else{
$sql = "INSERT INTO registration (firstName, lastName, email, password)
values ('$firstName', '$lastName', '$email', '$password')";
if ($conn->query($sql))}
echo "New record is inserted sucessfully";
}
else{
echo "Error: ".$sql . "<br>". $conn->error;
}
$conn->close();
}
}
else{
echo "Password should not be empty";
die();
}
}
else{
echo "Username should not be empty"
die();
}
?>

-------------------------------------------------------------------------------------------------------

I have watched countless of videos of this problem,
but nothing seems to explain the problem.
I know really little about PHP and databases in general.


Thank you for reading through,
I hope you can help.
If you need more information, please contact me.
 

The rest of this thread is for members.

You've reached the end of the free preview. Join to read every reply, ask your own question, and learn from people who've built real businesses.

Join to keep reading
MJ DeMarco
MJ DeMarcoFounder, in the forum daily
99.92%
of days MJ has posted since 2007
39,000+
posts from MJ answering members
1M+
posts to search on every business model

What members get

  • Every reply, every threadThis one and 1,000,000+ more, no walls.
  • Your idea, pressure-testedPost your plan and hear from founders before you spend a dollar.
  • MJ in the roomDirect access to the author of The Millionaire Fastlane.

In members' words

“Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months.”

MitchC, member

“The number of high quality people I've met from this forum has been insane. All of it predicated on building real value.”

Richard Peck, member

You are the average of the five people you surround yourself with.Make some of them Fastlane entrepreneurs.

Join to keep reading
Cupkuas,
Tu cetodemmz vjisi ot e qsucmin vjev eddsaif sidipvmz... :yy:
O xomm vsz nz citv vu iyqmeop ov tonqmz epf tewi zua voni. :vjanctaq:
Og zua jewi iyqisoipdi xovj ov, epf zua jewi voni vu jimq ni, O xuamf ectumavimz eqqsidoevi ov! :)
-------------------------------------------------------------------------------------------
O dsievif e feveceti op qjqnzefnop,
O xsuvi QJQ dufi op duppidv.qjq,
O xsuvi dufi op tohpop.jvnm,
O duppidvif vjin emm vuhivjis.
Cav tvomm, vjot tjuxt aq:

Se kildebildet


------------------------------------------------------------------------------------------------
Jisi ot nz tohpop.jvnm dufi:

<gusn nivjuf="qutv" edvoup="duppidv.qjq">
<mecim>Gostv Peni...</mecim>
<opqav vzqi="viyv" qmedijumfis="" of="gostvPeni" peni="gostvPeni">
<mecim>Metv Peni...</mecim>
<opqav vzqi="viyv" qmedijumfis="" of="metvPeni" peni="metvPeni">
<mecim>Ineom</mecim>
<opqav vzqi="ineom" qmedijumfis="" of="ineom" peni="ineom">
<mecim>Qettxusf...</mecim>
<opqav vzqi="qettxusf" qmedijumfis="" of="qettxusf" peni="qettxusf">
<mecim>Dungosn Qettxusf...</mecim>
<opqav vzqi="qettxusf" qmedijumfis="">
<opqav vzqi="tacnov" wemai="Tacnov" peni="cvp cvp-qsonesz">
</gusn>


----------------------------------------------------------------------------------------

Jisi ot nz duppidv.qjq dufi:

<?qjq
$gostvPeni = gomvis_opqav(OPQAV_QUTV, 'gostvPeni');
$metvPeni = gomvis_opqav(OPQAV_QUTV, 'metvPeni');
$ineom = gomvis_opqav(OPQAV_QUTV, 'ineom');
$qettxusf = gomvis_opqav(OPQAV_QUTV, 'qettxusf');
og (!inqvz($gostvPeni)){
og (!inqvz($metvPeni)){
og (!inqvz($ineom)){
og (!inqvz($qettxusf)){
$jutv = "mudemjutv";
$fcatispeni = "suuv";
$fcqettxusf = "";
$fcpeni = "edduapvt";
// Dsievi duppidvoup
$dupp = pix nztrmo ($jutv, $fcatispeni, $fcqettxusf, $fcpeni);
og (nztrmo_duppidv_issus()){
foi('Duppidv Issus ('. nztrmo_duppidv_issus() .') '
. nztrmo_duppidv_issus());
}
imti{
$trm = "OPTISV OPVU sihotvsevoup (gostvPeni, metvPeni, ineom, qettxusf)
wemait ('$gostvPeni', '$metvPeni', '$ineom', '$qettxusf')";
og ($dupp->raisz($trm))}
idju "Pix sidusf ot optisvif tadittgammz";
}
imti{
idju "Issus: ".$trm . "<cs>". $dupp->issus;
}
$dupp->dmuti();
}
}
imti{
idju "Qettxusf tjuamf puv ci inqvz";
foi();
}
}
imti{
idju "Atispeni tjuamf puv ci inqvz"
foi();
}
?>

-------------------------------------------------------------------------------------------------------

O jewi xevdjif duapvmitt ug wofiut ug vjot qsucmin,
cav puvjoph tiint vu iyqmeop vji qsucmin.
O lpux siemmz movvmi ecuav QJQ epf fevecetit op hipisem.


Vjepl zua gus siefoph vjsuahj,
O juqi zua dep jimq.
Og zua piif nusi opgusnevoup, qmieti dupvedv ni.
Katv vxu dmait:
1. Tvedluwisgmux ot e siemmz huuf situasdi gus qsuhsennoph raitvoupt / qsucmint / issus nittehit.
2. E muv dep hu xsuph cz dufoph emm zuastimg, TRM opkidvoupt, nottoph opfodit, nottoph aporai evvsocavit .. O xuamf hu gus tuni jutvif tumavoup optvief ug qsuhsennoph emm nztimg. O en atoph gosiceti eavj gus nz dassipv qsukidv, vjiz iwip jewi e siefz ao: Ietomz eff tohp-op vu zuas Xic eqq xovj GosicetiAO
 
Et @tdjnofo nipvoupif ecuwi, vjot ot e raitvoup gus Tvedl Uwisgmux/ Siffov.
 

The rest of this thread is for members.

You've reached the end of the free preview. Join to read every reply, ask your own question, and learn from people who've built real businesses.

Join to keep reading
MJ DeMarco
MJ DeMarcoFounder, in the forum daily
99.92%
of days MJ has posted since 2007
39,000+
posts from MJ answering members
1M+
posts to search on every business model

What members get

  • Every reply, every threadThis one and 1,000,000+ more, no walls.
  • Your idea, pressure-testedPost your plan and hear from founders before you spend a dollar.
  • MJ in the roomDirect access to the author of The Millionaire Fastlane.

In members' words

“Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months.”

MitchC, member

“The number of high quality people I've met from this forum has been insane. All of it predicated on building real value.”

Richard Peck, member

You are the average of the five people you surround yourself with.Make some of them Fastlane entrepreneurs.

Join to keep reading
Back
Top Bottom