MySQLI & File locations (Users & Mail tables)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
boionfire81
Posts: 12
Joined: Thu Dec 07, 2017 11:11 am

MySQLI & File locations (Users & Mail tables)

Post by boionfire81 »

Version of script: 2.7.5
Hosting company: GoDaddy
URL of phpinfo.php: (n/a)
URL of session_test.php: (?)
What terms did you try when SEARCHING for a solution:
Looked at threads, read faq at hesk.

Write your message below:
In order to do a database integration I will need to modify 2 things. The users table and the mail table. Mail table I need to rename 5 of the 7 column names. And about 5 of the users table will need renamed.

What files hold these so I can rename them within the files?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: MySQLI & File locations (Users & Mail tables)

Post by Klemen »

A lot of files use columns from those tables; you will need to verify, search and replace each file manually, there is no list.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
TechCoder
Posts: 12
Joined: Fri Sep 15, 2017 3:44 pm

Re: MySQLI & File locations (Users & Mail tables)

Post by TechCoder »

boionfire81,

Not sure what sort of 'database integration' you are looking to do, but from a lot of experience in doing integration from one program (with its existing data) to another, I can tell you that it is ALWAYS simpler (better) to 'translate' the old data to the new software - writing a small program to read the existing data and put it where it needs to be in the new table is a 1-time thing, while making mods as you suggest is a LOT of work up front, plus all the work you will have to do every time you upgrade the software every time there is another feature/bug fix you need.

If you need other 'integration' - perhaps on a more full-time basis (like tying the two program together for ongoing functions), then still the 'translator' program is better to have. It can run from a cron job or something to keep things in sync.......

It all depends on what you want to do, really - but renaming columns in the database and hacking all the associated files....... NOT what I would call a 'plan for success'!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: MySQLI & File locations (Users & Mail tables)

Post by Klemen »

That's good advise.

If you do end up modifying the files/structure, I would definitely use some sort of versioning software (git, subversion...) to track all the changes so you can easily apply them to future updates.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply