Spectre
Members-
Content Count
1,034 -
Joined
-
Last visited
Everything posted by Spectre
-
My top-level domain name took longer than that to get indexed.
-
Here it is re-written for use with a MySQL database. Please note that it is a simple, 'on-the-fly' script, so it mightn't be perfect or bugless. I've also changed one or two things to suit the style in which I usually code. I hope you don't mind, Pandemonium. <?php[br][/br]$sql_db = "guestbook";[br]$sql_user = "";[/br]$sql_pass = "";[br]// Make sure you set these variables. The rest can remain unedited,[/br]// assuming you don't want anything else changed.[br][/br]if(isset($_POST['yourName']) && isset($_POST['comments'])) {[br] $name = $_POST['yourName'];[/br] if(isset($_POST['email'])) { $email = $_POST['email']; }[br] if(isset($_POST['webUrl'])) { $url = $_POST['webUrl']; }[/br] if(isset($_POST['webName'])) { $website = $_POST['webName']; }[br] $comments = $_POST['comments'];[/br] [br] mysql_connect("localhost", $sql_user, $sql_pass);[/br] mysql_select_db($sql_db);[br] mysql_query("INSERT INTO guestbook VALUES (0, '$name', '$email', '$url', '$website', '$comments')");[/br] mysql_close();[br]}[/br]?>[br][/br]<p><form action="<?php echo("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']); ?>" method="post">[br]* Your name: <input type="text" name="yourName">[/br]Email: <input type = "text" name = "email"><br>[br]Website URL: <input type = "text" name = "webUrl">[/br]Website Name: <input type = "text" name = "webName"><br> [br]* Comments: <textarea name="comments"></textarea>[/br]<input type="submit" value="submit">[br]</form></p><p><hr></p><p>[br][/br]<?php[/br]mysql_connect("localhost", $sql_user, $sql_pass);[br]mysql_select_db($sql_db);[/br]$result = mysql_query("SELECT * FROM guestbook");[br]if($result) {[/br] while($data = mysql_fetch_assoc($result)) {[br] echo "<p><b>Name:</b> " . $data['name'] . "<br>\n";[/br] if(isset($data['email'])) {[br] echo "<b>Email:</b> <a href=\"mailto:" . $data['email'] . "\">" . $data['email'] . "</a><br>\n";[/br] }[br] if(isset($data['url'])) {[/br] echo "<b>Website:</b> <a href=\"" . $data['url'] . "\" target=\"_BLANK\">";[br] if(isset($data['website'])) {[/br] echo $data['website'];[br] } else {[/br] echo $data['url'];[br] }[/br] echo "</a><br>\n";[br] }[/br] echo "<b>Comments:</b><br>\n" . $data['comments'];[br] echo "</p>\n<hr>\n";[/br] }[br]}[/br]mysql_close();[br][/br]echo "</p>";[br][/br]// Script originally created by Pandemonium for use with a flat-file database.[br]// Re-written for use with MySQL by Spectre.[/br]?> Here is the table which I used as well (phpMyAdmin dump): CREATE TABLE `guestbook` ([br] `id` int(5) NOT NULL auto_increment,[/br] `name` text NOT NULL,[br] `email` varchar(30) NOT NULL default '',[/br] `url` varchar(30) NOT NULL default '',[br] `website` text NOT NULL,[/br] `comments` text NOT NULL,[br] PRIMARY KEY (`id`)[/br]) TYPE=MyISAM AUTO_INCREMENT=4; This query could be run directly from a PHP script if you want, as long as a connection to MySQL has been established and a database selected. Keep up the good work, Pandemonium.
-
Well, then I guess you will be doomed to waste hours and hours of time that could otherwise be put to productive use. But hey, it's your life
-
Game Maker is only for 2D side-scrolling games. It is a bit of fun to play around with, and you can create some relatively entertaining games with it, but if you want to get into more serious stuff, then you should head for 3D games design.
-
are meta tags really good for SEO? relevance of meta tags....
Spectre replied to odomike's topic in Search Engines
Meta tags are not ignored by Google. It doesn't display the actual tags and their values in its index, but it doesn't ignore them either. -
looking for proffesionals in website building
Spectre replied to wassie's topic in General Discussion
<?php[br]$var = "I'm ok at PHP if you're interested";[/br]$var2 = split(" ",$var);[br]$cnt = count($var2);[/br]for($i=0;$i<$cnt);$i++){[br] if($i != $cnt) {[/br] echo($var2[$i] . chr(32));[br] } else {[/br] echo ($var2[$i] . chr(46));[br] }[/br]}?> -
Why dont you ... keep clicking youll see.
Spectre replied to NeXDesigns's topic in Websites and Web Designing
Enabling HTML will open up the doors for a lot of attacks and other nasty things (I'm sure I've said this here before).It won't be happening, not while I'm on the staff. -
Yugioh 2v2 Dueling Online Online Dueling - made in vb
Spectre replied to Raptrex's topic in Programming
Hmm, I'm not a big fan of Visual Basic.Good job though - I'm sure it will turn out great. -
I didn't like Tiberian Sun. I thought it was a bit of a let down after all the hype and comotion was made about prior to its release.I still play Red Alert and Red Alert 2. Good games.
-
Ok, first of all, you need to register the domain 'odowebdesigns.com'. A WhoIs shows that it isn't even registered yet - in other words, it doesn't exist. At all. Anywhere. After you have registered it with an acredited registrar, set the DNS' (Domain Name Server's) to ns1.trap17.com and ns2.trap17.com (primary and secondary, respectively). It generally takes about 24 hours (give or take) for the DNS configuration to fully propagate, so you'll have to wait about that long before you can move on. Then and only then can it be used by you. You can't just decide that you want any old top-level domain name, and then go and add it in your control panel - it doesn't quite work like that. Imagine if it did - no one would be able to hold a domain name, and people would just add wherever and whenever they wanted. One good, cheap, and reliable registrar you might consider is GoDaddy - they provide them for around $6 to $10 a year (USD).
-
Ok, enough ganging up on wassie. If you want to congratulate him on being the first to reach 300 posts, then go for it - otherwise don't post in this thread.
-
Does any one also think harry potters dumb?? huh??
Spectre replied to iGuest's topic in General Discussion
I don't like the Harry Potter books. I don't like any story where the hero seems invincable, or where 'good' always prevails over 'evil' even in the most unlikely of scenarios. I like things that are more realisticly played out - no so much realistic as in the characters, environments, etc - but as in how everything falls together. I hate stories where the 'good guy' always wins, and never dies, even when the odds of their survival are very small.I sort of dislike Harry Potter for the same reasons for which I hate James Bond, and all those other movies where they can bring down an army with a single bullet. -
I'm not trying to set anyone against wassie, so don't attack him. I'm just expressing an opinion.Anyway, this is getting off-topic. Well done on making 300 posts.
-
FTP is not a program - it's a protocol, acronym for 'File Transfer Protocol'. Basically, as the name suggests, it allows the transfer of files over a network.An FTP client (such as those everyone else has suggested) only allow you to access an FTP server - you cannot create a new account with one.You can allow other people to access your FTP with your Trap 17 hosting account from within cPanel. The user can then login via an FTP client of there choice, and up/download files etc. Just make sure you only grant them permission to the directories you want them to have control over.
-
If you added your domain to your Trap 17 hosting account, then you have to upload it to the sub-directory under public_html which was assigned to that domain name - eg. '/public_html/odowebdesigns-com'.If you park it with your account, then the top-level corrosponds to your domain - so everything in 'public_html' would be accessible from the domain name.Make sure that the domain name is registered, and the DNS' are set to ns1.trap17.com and ns2.trap17.com (primary and secondary, respectively).I am unable to access the domain odowebdesigns.com at all, so I'm assuming it isn't properly set-up/configured yet.If you want, I can add it int your cPanel for you if you aren't sure how to do it.And one more thing - you can't just add a domain under cPanel, and then it will work. For example, you couldn't just go in and add 'microsoft.com', and then own the microsoft.com domain. You need to have previously registered it with a valid domain registrar (I know that might sound obvious to some, but not everyone is aware of this).
-
There was talk of some change by the admin a little while ago, which was apparently going to take affect immediately, but it isn't happening anymore.
-
I'm aware he has been here since the start, and I know that he has been helpful in areas. But many of his posts are either very short, or very pointless.I'm not saying I'm perfect - but I'm not bragging about a big post count, either (statisticly speaking, I've made more posts than him - but I don't care).And wassie seems to have some grudge against for one reason or another, so I have to bite back somehow.
-
Who Is The Hottest Girl In The World? Hottest girl ever?
Spectre replied to nosoup4u's topic in General Discussion
Genocide, you're 13 years old. Meaning that your 'girlfriend' would most likely be around the same age. You get where I'm heading with this? -
Ok, well done. Your next project should be to make more worthwile posts that actually contribute something, not just cause your post count to grow.
-
Just a side note: do to the presumed nature of this post, I think 'specific' would be a better word to use rather than 'explicit'.
-
If you're going to go on vacation, just let the admin know, and he might let you off for a little while. But if you seem to 'go on vacation' all the time just to get out of posting, your account will be deleted anyway.
-
windows longhorn thot it was a closed beta, think again.
Spectre replied to stevey's topic in Operating Systems
I'm not 100% sure of the legalities of such an item, but I would imagine that it would border on the line of warez. If you want to discuss and trade links to software that you shouldn't have in your own time, then there's nothiung I can do about it - but don't bring it here. It will only spell trouble for Trap 17. -
suggestion hosted members status website...
Spectre replied to wassie's topic in Web Hosting Support
I was putting together and updating a list in the forums of everyone that has hosting with Trap 17.I should be able to throw a script or two together that displays all users that have hosting, along with their URL. If the admin is interested. -
How can you even compare Counter Strike, Halo, and Doom 3? CS and Halo are nothing alike - sure, they are both FPS, but they are still very different games. And of course Doom 3 is going to be better than Halo, in terms of graphics, the engine, and other technologically-influenced aspects of the game - Halo is over two years old, and Doom 3 was only released this month. When comparing games, you can't just judge them on face value - you have to take into consideration every aspect of the game, as well as what was the standard, and the capability of technology at the time (I don't know how many times I've said this). For example, if you compare the original Doom and say, the soon-to-be-released Half-Life 2, you can't just say that Half-Life 2 is better because it has better graphics, faster gameplay, etc.