![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,140
|
![]() I'm trying to put together a simple domain managament database.
Its telling me that something went wrong when I try to add a new domain name record, yet it isnt highlighting any form fields with an error: Quote:
Everything in the config.php is 100% correct. Can anyone see where the error above is and, if so, could you point me in the right direction to fixing it? ![]()
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Apr 2019
Posts: 657
|
Can't help you, but I just remembered I'm out of bolognese.
__________________
__________________ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,091
|
Quote:
2. In the same statement you only list 7 parameters but in the bind you list 8 vars: (?, ?, ?, ?, ?, ?, ?) $param_Registrar, $param_DomainName, $param_Registration, $param_Expiration, $param_NameServer1, $param_NameServer2, $param_Status, $param_Notes I did not look any further than that. .
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,140
|
Quote:
Sorry I've been up 38 hours working so missing the basics, must be time to call it a night. Thank you again for the help!
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,140
|
Sorry, one more question.
Do I need to add a bind param for the 'ID' column too in the SQL DB? Or becajse its set to auto increment will that be added to the table anyway? ![]()
__________________
SOMETHING EXTREME IS COMING SOON! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,091
|
Quote:
.
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,140
|
Meh :/
Now i'm having an issue with it not writing to the database, any suggestions on where the issue may lay?
It's not throwing any errors and appears to be working how it is supposed to, it's just not storing the data in SQL ![]() Quote:
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Apr 2010
Posts: 1,097
|
If it's a simple insert query why do you have to use mysqli_prepare, mysqli_stmt_bind_param, mysqli_stmt_execute etc? I prefer using mysqli_query when inserting simple data to db..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,140
|
Quote:
This is just my test project, the ultimate use for this will be to allow multiple employees to add data to a larger database that controls a multitude of content based websites from a central admin management system.
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jun 2006
Posts: 11,408
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,091
|
It looks to me like you have your ifs screwed up:
You have: Quote:
Using what you have you would need something more like: if($stmt = mysqli_prepare($link, $sql)) { // Bind variables to the prepared statement as parameters // Attempt to execute the prepared statement if(mysqli_stmt_execute($stmt)) { // Close statement mysqli_stmt_close($stmt); // Records created successfully. Redirect to landing page header("location: index.php"); exit(); } else { echo 'insert failed....'; } } else { echo "prepare failed"; } I don't know that that is the only issue. .
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |