Snippet Add/View
PHP Code
+ 3 likes
Please Register to submit score.
| Average Score | 7.0 |
| Scores Submitted | 1 |
| Date Added | Dec 25, 2006 |
| Last Updated | Jan 14, 2007 |
| Tags | add code codes coding mysql share snippet view |
|
|
Introduction
i'm 100% sure it works BUT i made this without mysql so i dunno if it will work. stupid mysql is stuffing up
there is an upload.php and view.php
When you upload this to your webserver just change the database information. add a database as follow. sorry i don't know how to do the fancy SQL code. if someone does it and post it as a pm/comment i'll gladly add that to this snippet.
snippets (database name)
snippet_type (mIRC/php/tcl)
snippet_id (int auto_increcment)
snippet_date (date)
snippet_user (username that uploaded the script)
snippet_title (the title of the snippet)
snippet_code (the actual snippet)
snippet_description (a description of the snippet)
once you upload visit http://yourwebsite.com/upload.php?type=mIRC (for uploading a mIRC snippet) and once you've filled in all fields then visit http://yourwebsite.com/view.php?snippet=1 <--- will show you the very first snippet posted.
I've left out ALL the copyright stuff. because i've been visiting websites that use this and have edited the copyright stuff so it seem's they've made this. i know i did this once with mIRC Scripting, but i deleted them and started learning mIRC Scripting so if people leave feedback on how they use it. i'll be happy.
this can also be used as a shoutbox sort of way, with a bit of tweeking and that.
PHP Snippet:
Snippet Add/View
Posted on Dec 25, 2006 10:33 pm
Posted on Dec 25, 2006 10:33 pm
forgot to add, you have to have a login system, or a place where you can set a cookie called user
PHP Snippet:
Snippet Add/View
Posted on Dec 26, 2006 7:34 am
Posted on Dec 26, 2006 7:34 am
Very nice, seems a lot of time was put in to this.
PHP Snippet:
Snippet Add/View
Posted on Dec 27, 2006 3:48 am
Posted on Dec 27, 2006 3:48 am
2 weeks and 3 days :P
PHP Snippet:
Snippet Add/View
Posted on Dec 30, 2006 10:35 pm
Posted on Dec 30, 2006 10:35 pm
ok Editted so now you visit list.php?type=mIRC and it list all mIRC scripts. :P
PHP Snippet:
Snippet Add/View
Posted on Jan 2, 2007 1:14 pm
Posted on Jan 2, 2007 1:14 pm
ok Edited again, now has a search feature :D
PHP Snippet:
Snippet Add/View
Posted on Jan 2, 2007 11:21 pm
Posted on Jan 2, 2007 11:21 pm
Updated once more. included the SQL Table. thanks null for giving the code to me ;)
PHP Snippet:
Snippet Add/View
Posted on Jan 3, 2007 11:15 am
Posted on Jan 3, 2007 11:15 am
Furby, why don\'t you look at what I did here to include the \"create table\" query in your code:
http://www.hawkee.com/snippet.php?snippet_id=1262
You just need to dump the table layout with mysqldump and paste it into a variable.
http://www.hawkee.com/snippet.php?snippet_id=1262
You just need to dump the table layout with mysqldump and paste it into a variable.
PHP Snippet:
Snippet Add/View
Posted on Jan 14, 2007 2:09 pm
Posted on Jan 14, 2007 2:09 pm
ok SQL table uploaded finally
PHP Snippet:
Snippet Add/View
Posted on Apr 22, 2007 12:06 am
Posted on Apr 22, 2007 12:06 am
:( still no points :(
PHP Snippet:
Snippet Add/View
Posted on Apr 22, 2007 5:34 am
Posted on Apr 22, 2007 5:34 am
Nice code..simple and readable,score submitted => 7.0
GJ
GJ
PHP Snippet:
Snippet Add/View
Posted on Apr 22, 2007 7:21 am
Posted on Apr 22, 2007 7:21 am
:o i think this is the highest score i\'ve reached since being on Hawkee :P
PHP Snippet:
Snippet Add/View
Posted on Aug 10, 2007 3:32 pm
Posted on Aug 10, 2007 3:32 pm
Very nice, just I hate mysql, i wish it was just purly php, and it saved data in like a text file or something...now that would be sweet.
PHP Snippet:
Snippet Add/View
Posted on Aug 11, 2007 12:40 am
Posted on Aug 11, 2007 12:40 am
you would have alot of bloody text files for hawkee.com :P
PHP Snippet:
Snippet Add/View
Posted on Nov 20, 2007 12:57 am
Posted on Nov 20, 2007 12:57 am
I found some problems that it was not reading the database because snippets is sometimes spelled snppets in the script.
Also, I fixed that, and connected to the database and table, but I have been getting this error even before fixing the typo:
\"Column count doesn\'t match value count at row 1\"
Does anyone know how I can fix this problem?
Also, I fixed that, and connected to the database and table, but I have been getting this error even before fixing the typo:
\"Column count doesn\'t match value count at row 1\"
Does anyone know how I can fix this problem?
PHP Snippet:
Snippet Add/View
Posted on Nov 20, 2007 12:58 am
Posted on Nov 20, 2007 12:58 am
Oh my goodness I hate those stupid Furby toys.
No offense, F.U.R.B.Y.
No offense, F.U.R.B.Y.
PHP Snippet:
Snippet Add/View
Posted on Nov 20, 2007 1:14 am
Posted on Nov 20, 2007 1:14 am
ah ok, uhhh don\'t suppose you\'ve debugged it and know which line it is?
PHP Snippet:
Snippet Add/View
Posted on Aug 15, 2008 10:17 pm
Posted on Aug 15, 2008 10:17 pm
YEAH BABY +3 Likes :D








