1,150 Forum Posts by "polym"
At 11/4/07 12:25 PM, ThomSip wrote: hello guys,
I'm currently working on my website and I have a question. People who use firefox, when you open newgrounds, you see a little tank logo next to he url. I want an image I made next to the url of my site, how can you make such an image appear?
it's called a favicon.
<link rel="favicon" href="image.ico" />
I changed the author to username and now only the username shows. The message still doesn't show.
Okay so I'm making a form where your post is inserted into a table and it is retrieved by fetch array and displayed. However when I look at the result page, all I see is a bunch of colons where the author should be at the left and the message should be at the right. Here's the code.
<?php
mysql_connect("censored","censored","censored") or die(mysql_error());
mysql_select_db("hp_1075579_posts") or die(mysql_error());
$result = mysql_query("SELECT * FROM posts");
if (isset($_POST['submit']))
{
echo "Posting...<br />";
$author = $_POST['author'];
$message = $_POST['message'];
if ($result == 0)
{
mysql_query("CREATE TABLE posts
(
username varchar(15) NOT NULL,
message varchar(500) NOT NULL,
id int(11) NOT NULL auto_increment,
PRIMARY KEY (id)
)") or die(mysql_error());
} else {
mysql_query("INSERT INTO posts(username,message) VALUES('$author','$messages')") or die(mysql_error());
$result = mysql_query("SELECT * FROM posts") or die(mysql_error());
while ($r = mysql_fetch_array($result))
{
echo "<p><b>$r[author]</b></p>: $r[message]";
}
}
}
mysql_close();
?>
The form's input fields are labelled respectively. Help?
You should use PHP/MySQL for the news thing. For example, make a submission form where that you can only access (maybe hidden deep in your FTP manager.) Basically you would submit the news post into a MySQL database and organize it by date on the page where you hold your news.
As for the uploader, you should learn AJAX.
At 10/3/07 07:45 PM, Flatland wrote: I'm not sure why it isn't compiling, but it says somthing about the brackets. I'm new to C++, and I'm trying to code some stuff for a simple fighting game. Help? And, if anyone could help teach me stuff and help me make it, I'd appreciate it greatly.
I'm not so sure it's the C++ that's stupid. How do you expect us to help you if you don't give us the code (obviously the source of the error) and the full error message so we can help you? And google is a great resource for shit like this.
I'm probably going to get some flames from this, but Wikipedia has a good resource for stuff like this (just google HTML/CSS Wikibooks).
At 10/2/07 09:06 PM, Jessii wrote: I can't really look at it right now but I think you could've picked a better template. It's nice and basic and clean but the green has to go. I would change it to something a little less pea soup looking.
Okay so do you want me to completely revamp the layout? I agree it's bland but I'm not really sure what's pleasing to the eye because everything looks fine to me.
At 10/2/07 08:46 PM, Siggles wrote: would something like this work?
$slash = stripslashes($format);
fwrite($open, $slash);
fclose($open);
Maybe you'll figure it out if you try testing it yourself. Not to be hostile. But yes, it would.
At 10/2/07 08:19 PM, eastcoastpanik wrote: im looking for a css expert to help me code a ui.
will pay u on paypal before any work is done.
thx
If you think anybody's going to work with you, you might as well lay out a few details on what work we'll be doing, how much you'll pay, brush up on your grammar, and then grab a book on common sense.
Okay folks I just signed up, and I realize you all have a wonderful reputation on web development and crap so I guess it would be okay to get my site critiscized by you folks. Yes it's a template, since I suck at CSS and I can't get anywhere with presentation other than tables, so I had to go on a limb and use an XHTML template. Thing is, it doesn't exactly conform to the standards because I use an old trick so people can jump to certain positions on the page, and I don't really care to fix that unless some of you people are nazis and bring that point up.
Anyhow I didn't mess with the CSS and most parts of the site work, and I still have plans for it and I would be appreciated if you point out anything I might've missed, or perhaps some tips or whatever to make my site cross-browser compatible and all that other goody-goody stuff.
The link is here. It's on a generic webhost that's pretty convient and I like it.
Now, overwhelm me with your knowledge.

