Philip
Staff Alumni-
Posts
4,665 -
Joined
-
Last visited
-
Days Won
20
Everything posted by Philip
-
Yup, keIndentPHPCodecan be found here: http://www.chami.com/html-kit/plugins/info/keindentphpcode/
-
Also, on htmlkit (the editor I use) there is an extension that cleans up and indents all coding :)
-
Heh, I was just... uhhh. kidding :P I'm not an English major ;) (and never could be one) Sorry!
-
Flexabilty is spelled wrong, not reins :)
-
More clarification on different types of favicons: * ICO: include multiple resolutions (the most commonly used being 16×16 and 32×32, with 64×64 and 128×128 sometimes used by Mac OS X) and bit-depths (most common being 4, 8, 24 bpp—i.e. 16, 256 and 16 million colors) in the file. * GIF: use 16×16 in 256 colors. * PNG: use 16×16 in either 256 colors or 24-bit. (Taken from [url=http://en.wikipedia.org/wiki/Favicon]Wikipedia[/url])
-
2 on the front page, haven't looked past there: [color=red]Flexabilty is the goal, and PHP reins supreme. [/color] [color=green]Flexibility is the goal, and PHP reins supreme. [/color] [color=red]In terms of software, "open source" means that many people from different locations can [b]can[/b] contribute to and further the development of a single software title. [/color] [color=green]In terms of software, "open source" means that many people from different locations can contribute to and further the development of a single software title. [/color]
-
It is because you have exited the script, which is basically saying "stop here please!": [code]<?php if($result) { echo '<p>entered please check the following</p>'; echo "$title', '$body', '$category"; exit(); } ?>[/code] So: [code] <?php include ('header.inc'); ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <p>title <input type="text" name="title" size="10" maxlength="20" value="" /></p> <p>body<textarea name="body" rows="10" columns="50"></textarea></p> <p>category</p><select name="category"> <option value="fish">fiah</option> <option value="fish"></option> </select> <div align="center"><input type="submit" name="submit" value="submit" /></div> <?php if(isset($_POST['submit'])) { if(isset($_POST['title'])) { $title = ($_POST['title']); } else { $title = NULL; } if(isset($_POST['body'])) { $body = ($_POST['body']); } else { $body = NULL; } if(isset($_POST['category'])) { $category = ($_POST['category']); } else { $category = NULL; } if ($title && $body && $category) { require_once ('mysql_connect.php'); $query = "INSERT INTO entries (blog_id, title, date_submitted, category, body) VALUES (NULL, '$title', NOW(), '$category', '$body')"; $result = mysql_query ($query); if($result) { echo '<p>entered please check the following</p>'; echo "$title', '$body', '$category"; } else { echo '<p>there was an error</p>'; } } else { echo '<p>there was an error</p>'; } } echo '</form>'; include ('footer.inc'); ?>[/code] AHHH The code tags are all messing up! [i]EDIT2: I would suggest renaming your title (has nothing to do with redirecting ;))[/i]
-
Well, the one thing I would be aware of (as I have to do it for my site too) is too much javascript. I just turned javascript off and tried to view your site, and I couldn't navigate past the main page. :( However, very little (1-10%) of people actually turn JS off.
-
What if you when they removed they are not deleted, but rather brought up in a negative number. Same thing with editing. Example: $500 deposit from person A $240 deposit from person B *Person A changes mind* *Person B wants to subtract $10 for beer* So your table would look like: Amount | Person | Reason $500 A $240 B -$500 A N/A -$10 B Beer
-
Agreed with the post above. Also, I would add a footer. Just with like copyright whoever whenever blah blah.
-
My site is Source Code and Tutorials Search Engine.
Philip replied to mkkak's topic in Website Critique
-Don't use a page counter. If you really want to know how many people visit your site, use a backend one like statcounter, or awstats (built in with most hosting) -Get a domain, domains like devcode.com look better and search engines look at them more -Honestly, I don't think the pink on the result pages fits in all that well. -
Well, its even harder to say something meaningful since your site is down ;)
-
Okay, yeah, it's just it looks kinda dumb in my opinion, but hey... whatever the boss says :P Good to hear that you are studying css, I know it took a lot for people to convince me to switch.
-
Okay, well... I have a response for your answer to #6 [quote]What's wrong with "Navigation"? lol. I used that on alot of my sites. What's a better word to use to tell the users "Heres some link now get moving"[/quote] I honestly wouldn't put anything there, the user knows if they want to go to "Offices" that they will probably need to click the work "Offices" Speaking of the menu, I really don't like the font that is being used. It seems, pixelated almost... I don't know how to describe it. Play around with the fonts there. With the "Be a partner" image, the hand cursor does not appear (at least on FF2.0)... check into that. I'm not sure how you are setting up your pages, but I would recommend including a CSS file with all the styles, so its easier to tweak small things on all of the pages instead of going to each page and editing it. (or you might be having one page with a bunch of includes in php - which works too) Also, you're using tables... nothing wrong with that, but check into CSS and its functions. I used to love tables to make my webpages, and I learned how to use CSS, and it seems a lot more efficient when coding. I do like the dashed border, that adds a nice touch. You are on the right track, just a few minor details, and you should be set :D
-
No problem :D
-
http://us3.php.net/manual/en/function.nl2br.php
-
http://www.phpfreaks.com/tutorials/147/0.php
-
Self made quick template engine.... problems (eval() help!)?
Philip replied to StrangeWill's topic in PHP Coding Help
[quote=PHP Manual]To mix HTML output and PHP code you can use a closing PHP tag to leave PHP mode.[/quote] -
Yeah, I agree with the posts above. When you don't properly use spell check or grammar check for that matter, it gives a bad impression. When I read the sentence "i have also spell checked it so all the speelings sould know be correct." I wouldn't want to read the tutorial because I would be afraid you didn't know what you were talking about.
-
on the form, make sure you're doing like method="POST" and action="file.php" then, using the name of the option (lets say you called it 'theoption') [code] <?php $variable = $_POST['theoption']; // sets a variable to the value that the form gave it echo $variable; //outputs the variable ?> [/code]
-
Just a note - don't forget sending your subject line ;)
-
What is the exact error (copy and paste) and, it might just be me, but I think it has something to do with the quotes, and the periods inside of the Value() set.
-
[code]<?php $result = mysql_query("SELECT * FROM projnum"); while($row = mysql_fetch_array($result)) { echo '<option value="' . $row['project_number'] . '"> ' . $row['project_number'] . "</option>\n "; } mysql_query("DELETE FROM projnum WHERE project_number='$project_number'") or die(mysql_error()); ?>[/code] Check to make sure you're not getting an error there.
-
Are you wanting to make barcodes? If so, try here: http://www.hotscripts.com/Detailed/38877.html If you're wanting a user to upload/scan an image into PHP and have it read a barcode I don't think PHP is the way to go.