MM2 sites archive

Done in mysql and php

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 5 months
Contact:

MM2 sites archive

Postby Anthony » Tue Jun 24, 2008 2:16 am

OK, I have spend the last to days, going out having fun getting home and trying to learn mysql.

Anyway, either this is very easy or I am quick at learning.

This is my practice project. I am making a mysql MM2 sites archive that will keep track of all the sites. I have seen this on many sites and all seem to be a bit simple and in-effective.

Anyway this script allows, comments, ratings, images, and you will also be able to report a site broken which will make it show up as red for any admin viewing the page.

I haven't finished yet but here it 2 evenings work.

Add site
https://madnessred.co.cc/modules.php?page=addsite

View sites
https://madnessred.co.cc/modules.php?page=viewsite


Also you can put the code on your own page.

To view sites

Code: Select all

<table> <tr> <td> Site </td> <td> Description </td> <td> Rating </td> </tr> <php>

To add sites

Code: Select all

<form> Site Name: <input><br> URL: <input><br> Preview Image: <input type="text" name=img" /><br> Rate site: <select> <option>* * * * *</option> <option>* * * *</option> <option>* * *</option> <option>* *</option> <option>*</option> </select><br> Description:<br> <textarea> </textarea><br> <input> </form><br><br> <small>(Script by MadnessRed, available upon request)</small>
obviously you can change any of the html code, some bits however are protected for example if you set the rating to allow higher then 5 or lower than 1 they will be disabled.

Also a primary field stops 1 site being entered more than once.
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 5 months
Contact:

Postby Anthony » Wed Sep 24, 2008 8:45 pm

Finished,use this code.

Code: Select all

<iframe></iframe>
of if you are using php.

Code: Select all

</iframe>
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]