This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
one db two sites same form
Started 16 years ago by mindquest | 10 posts |
-
Hi,
Is there a way to use one form in two sites without another db set up?Thanks
Posted 16 years ago # -
It is possible, just make sure they both are using the same database setting in config.php file.
However, some hosting doesn't allow database connection from other site. So make sure to ask your hosting admin regarding their policy.
MachForm Founder
Posted 16 years ago # -
I get this error:
INSERT INTO
ap_form_1
(element_2
,element_3
,element_5
,element_6
,element_7
,element_8
,element_9
,element_10
,ip_address
,date_created
) VALUES ('test','test','test','test','test','1','1','test','66.142.229.26','2008-03-21 12:36:42'); Query failed: Duplicate entry '0' for key 1Can you make any sense of it?
Mikal
Posted 16 years ago # -
I think this may be a phpMyAdmin thing with autoincrement being re enabled. Not sure how to do this but I think it may address that last snippet i sent.
Thanks
Posted 16 years ago # -
Hmm.. that's weird. Can I try it?
Mail me with the URL and database details please.
MachForm Founder
Posted 16 years ago # -
Did you get my email?
Posted 16 years ago # -
I'm going though allot of issues with this I think I will just use another license for the form. Do you think I could get some help in setting it up exactly. I made changes to a bunch of the supporting files and I just did want to go though that again.
I would imagine its just copy and pasting into the new site but I don't want to mess up the install or format. Is it just the config file that does not need to be altered after installation? This way I could just copy and past from existing site to the new one - OR actually wont I have to create the form again. Or is this information in the files themselves. The ones i want to copy from the old source - minus the installation files.
sounds confusing I know.
I can send you the actual url - again not sure how to outside of the forum.
thanks
Mikal
Posted 16 years ago # -
Mikal, I think I've solved this and replied to your email.
Can you check again please? Perhaps it went through your spam folder?
MachForm Founder
Posted 16 years ago # -
I was just about to post a note that I was shocked it was working!
Thank you so much Yuniar!
It must have been caught in my junk mail - glad I did not start another install :) Not sure what you did but its working now.
Mikal
Posted 16 years ago # -
Great! :)
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.