- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
20 Posted Topics
Re: Yes, you use CSS, just like almostbob said. It's very useful. As for the red square, you would make a div, and then choose the color. For example your html file's contents would have this: [code]<body> <div id="box"></div> </body>[/code] In your css, you'd have this. [code]div.box { width: 50px; height: … | |
I'm coding a simple forum, for a user system that I'm making. By simple I mean very simple - viewing categories, threads, and topics, as well as posting, editing, and reporting to a moderator. Moderators can also delete, sticky, or lock threads, or delete posts. Now, I'm doing quite well … | |
I'm writing a simple forum system to go along with one of my projects - nothing fancy, just categories, forums, threads, and posts. Some threads, however, are marked as 'stick', which means that they're stickies. No matter how many threads there are or where they're posted on, they always must … | |
Re: You could use a $content variable. So basically: [code=php] $content="<table>"; while($i<$numrows) { //while there are still rows in the table $grade=@mysql_result($result,$i,"grade"); //The grade $name=@mysql_result($result,$i,"name"); //Student's name $content=$content."<tr><td>".$name."</td><td>".$grade."</td>"; } $content=$content."</table>"; [/code] That would put a table in the variable $content. Just echo it where you want it... You need to use … | |
Re: If every time you go through the loop, you set $number = 0 and increment it to one, it's not gonna work. [CODE=php]$i = 0; for ($i<$whateveryourvaris) { echo "Number {$i}...<br />"; $i++; }[/CODE] | |
Re: vBulletin is not free, you will not get it for free. MyBB is very like vBulletin, as is phpBB or SMF. If you look through your options you will see that there are many options. All in all, I'd recommend MyBB. It's the best free forum software (in my opinion). | |
Re: I don't really think so. Maybe, if you have it check if the person is an admin on every page, and if they aren't, use 'header' to redirect to another page, that would work. I don't think that htaccess makes a difference, but I might not be right. | |
Hey. :D I've written a page which uses Ajax to let a user type in HTML on one side, and have the html be shown completely on the other side. It works well - that is, until the user wants to use CSS styles in the head. As it is … | |
Re: I use this script for multiple projects: [url]http://www.daniweb.com/forums/post951182.html#post951182[/url] It's simple and easy to customize. Good luck! :) | |
Re: I like to use GIMP, as it's both good for image manipulation and different kinds of animated gifs. :D It's free, too, so you might want to try that out. :D | |
Re: Here's what you do. You have a file. Call it 'search.php'. The ajax will get the result from the file (I'm assuming that you know php, and that this is all stored in a database) and will return it. :) I could write some code for it, I guess. It's … | |
Re: Quite a lot of inconsistencies with the quotes is the problem. If you're putting quotes inside a string, they need to be single quotes, not double ones. Try this code. [CODE] <?php // Connects to your Database mysql_connect("localhost", "root", "PASSWORDREMOVED") or die(mysql_error()); mysql_select_db("epguides") or die(mysql_error()); $data = mysql_query("SELECT * FROM … | |
Re: Yep, it's possible. Just have a 'foo' div next to the input boxes, and then have a function set to 'onkeyup', which refers to a php page which checks the database and returns true or false, and then modifies the div. You might want to learn Ajax for that, though. | |
Re: That's weird. Are you sure that you're declaring the variables properly? I just wrote this simple code, based off the link that ardav gave... [code=php]<?php // Create a new blank image $image = imagecreate(200, 30); // Assign the background color imagecolorallocate($image, 0x00, 0x00, 0xFF); // Assign the text color to … | |
Re: I used this script: [url]http://www.daniweb.com/forums/post951182.html#post951182[/url] It worked really well, complete with member areas and the like. If you're not an expert, I recommend trying it. :D | |
Re: If you mean HTML templates, I don't see why not. Just scan them for any javascript includes, but otherwise, they should be fine. If you're meaning a system, like Joomla or Drupal, they're pretty safe too. ;D | |
Just so you know, I'm a PHP beginner, so I won't understand complicated stuff or anything of the like. xP I've started to make a part of my website (may I link to it, or should I just post the code) and I'm pretty happy with it. A user can … | |
Re: Usually, you can make it up to 1024 by 768. It's nice to have the important stuff above the 'fold', though. That's where you have to scroll further, and estimating it at about 700-800 would be a good idea. Of course, there are some nice sites which use fixed-width layouts. … | |
Hey! I'm Arianna. I'm in 8th grade, and I know HTML, CSS, a bit of Javascript and I'm learning PHP. I joined because I like computers, and because I'm still learning PHP and some help might be useful. :) I like to write (is anyone here doing Nanowrimo?), but other … |
The End.