![]() |
![]() |
![]() |
||||
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,188
|
![]() So I have the basic CRUD setup but when it comes to adding a new domain (or several records) it will allow me to add the first record (ID=0) in the database, but then wont let me add anything additional, can anyone tell me why?
![]() Quote:
![]()
__________________
Extreme Link List - v1.0 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | ||
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,110
|
Quote:
However, in what you posted, if it is the code that you are running there is a space in '$status' that should not be there, but that should blow it off every time not just on subsequent runs. Quote:
__________________
All cookies cleared! |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,188
|
Thanks.
That 'Status' one just seems to be on GFY, its not on the server version, must have just been a FF issue. Would you possibly be able to share the php code that I can use to check MySQL for errors? :D
__________________
Extreme Link List - v1.0 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,110
|
Quote:
.
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,564
|
Quote:
The DB is set to "auto index"; but he has no field defined for the auto index. // Insert user data into table $result = mysqli_query($mysqli, "INSERT INTO DomainManagement(Registrar,DomainName,Registration ,Expiration,NameServer1,NameServer2,Status,Notes) VALUES('$Registrar','$DomainName','$Registration', '$Expiration','$NameServer1','$NameServer2','$Stat us','$Notes')"); The SQL table should have a record ID field. (You can do anything you want but ID is standard) The ID will be "" in the data fields so that SQL will create the ID number on insert for you. The code should look like this, I think. // Insert user data into table $result = mysqli_query($mysqli, "INSERT INTO DomainManagement(ID,Registrar,DomainName,Registration ,Expiration,NameServer1,NameServer2,Status,Notes) VALUES("", '$Registrar','$DomainName','$Registration', '$Expiration','$NameServer1','$NameServer2','$Stat us','$Notes')"); ![]()
__________________
Make Money with Porn |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,188
|
Thank you all for the help, I fixed the issue.
It was a messed up AI/NULL setting in the table.
__________________
Extreme Link List - v1.0 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Apr 2010
Posts: 272
|
I recommend Mamp Pro/xDebug/Phpstorm. Using xDebug you can see what is happening at each step to help debug things.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
I know for Xdebug, but it's nothing special - i for debugging using command php -l, and so far there was no need for anything else. There is also option to use IDE like netbeans which have integrated debugger.
|
![]() |
![]() ![]() ![]() ![]() ![]() |