Sure, I an maybe others can help. That is why we are here on this site. To spread PHP and other code practices and help programmers learn more.
I suggest you try to do this yourself so when you want to make a change in the future, you will understand what is needed. So, with all that said…
The system takes your URL and stores it in the database. It creates a short URL and saves that in the database.
I have not looked at the actual code yet as I am dealing with a very sick mother and her pool burst at 1:30 AM this morning… YUK! What a mess! I guessed about 85,000 pounds of water went into my neighbor’s driveway!
Anyway, the results is all you really need. There are only 3 or 4 things you would need to do to get this working. First, you need a connection to the database table so you can pull the URL’s from it. Without seeing your site, I will only guess that you have a listing of the links. These links show a short version and underneath there is most likely an HREF tag that points to the real address or a PHP program that calculates the real address. Next, you would have to create an iFrame. Simple Nothing hard in that. You might want to add “frameborder=0” to shut off the annoying border it uses by default.
Lastly, you would need some code to load the iFrame with the PHP file which would read the database and display the actual real website. I would suggest using Javascript for that as it is easy to use. The Javascript would actually be called on page load from the PHP program that is loaded. This Javascript would then load
the true website page into the iFrame.
Did that make sense to you? Hope so… Now, I am quite busy most of today and do have a little time tonight to help. If you want to show us your site as it is now, so we can peek at it to get a feel for what you already have, just post it. If you want to keep it private for some reason, send it to me in a private message. Since I will have to download the code and study it, it may take some time to help you. If you know how to pull the URL’s (short version and real one), then it would save a lot of time as you would only need help with loading the iFrame.
Got all that? Let us know…