Jump to content

ignace

Moderators
  • Posts

    6,457
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by ignace

  1. Yeah I'm thinking of creating all my websites like that :evilgrin:
  2. Or if you are looking for a desktop solution: http://www.smashingmagazine.com/2009/03/25/mysql-admin-and-development-tools-round-up/
  3. ignace

    Friends

    I believe you are looking for: http://www.phpfreaks.com/forums/index.php/topic,281823.msg1335964.html#msg1335964 A working example can be viewed at: http://webdevkid.wordpress.com/files/2009/03/twitter-clone.png (please don't mind the text
  4. You can install and use PhpMyAdmin on a single server and manage all your database servers Follow this tutorial to do so: http://www.devshed.com/c/a/PHP/Doing-More-With-phpMyAdmin-Part-1/3/
  5. What do you mean by symbolism? If you get more in-depth with the Google API you'll be able to add history information when someone clicks an arrow on the map. About what kind of grave yards do you store? Old, forgotten grave yards or existing grave yards? I am no designer nor a front-end engineer so it will be quit hard to show you websites I created as I didn't design them, SE optimized nor wrote any HTML, CSS or JS. I only write and optimize PHP and SQL code or some regular project analysis or -design. I also happen to know Java, VB.NET, Assembler, COBOL, .. but PHP is IMO by far the most intriguing language.
  6. What was then the original route you wanted to go?
  7. A few hints for your personal website and graveyard: Personal Website: - Think about what you want to achieve with your personal website? Do you want to attract possible employers? And think about which information they will be looking for. In the example they may be interested in your CV (remember that you are possibly one of many candidates so naming your CV file properly is a good habit, example: cv-nathan-haze-webdesigner) they may also be interested in other information like: how to contact you, blog articles, portfolio, .. The most important information should come on your frontpage as this will be your visitor's main entry point (or landing page) SE optimize your website: your text should reflect what they will most likely be searching for. Graveyard website: - In some way I believe this may have a future altough I'm not entirely sure why you keep such information (tourist sites? possible burying ground?)
  8. Furthermore: # Compiler Turn your code that you wrote in an editior into ones and zeros so your computer can read it. # Interpreter This reads the ones and zeros and does the action Is also false as an interpreter is the same as a compiler it only uses a different approach. PHP and JavaScript are interpreted languages where-as Java and C++ are compiled languages. noobcoding.com is the worst a start-up programmer can come across as it contains more lies then truth. Please direct all traffic from noobcoding.com to a website with more reliable, researched and verified content (like this one for example) rather then just your assumptions. Thank you!
  9. nathanhaze.com: - The website is in total chaos. The image doesn't line up with the navigation. Under "Sites..." is one box longer than the other and seem attached to the footer. The ads then suddenly jump left.. - Your HTML is invalid. If you want to stick to pure design then this won't be a problem as you won't be writing any HTML anyway. However if you want to become a front-end engineer you'll need to start focusing on writing valid HTML don't bother learning XHTML but take note of it's rules: lowercase tags, closing tags (and in the correct order), .. graveyardsdb.com: - Same as the previous: chaos! Your ads are overlapped by the Google map. Updates overlaps your content making the content below unreadable. - Properly name your links. Instead of: "I grab this free template from this site check them out!" use: "Free template by free website templates" or "Free template by freewebsitetemplates.com" noobcoding.com: - Same as before but I also want to point out that the provided content contains lies, for example: # Program A series of instructions that the hardware executes one after another. Examples of this would be like the calculator that comes with windows or winzip. Fairly small in size and works alone. So, every program is small in size? # Software Software is more of complex version of a program. It uses data in different locations and greater in size. It may use numerous of programs. Examples: Microsoft Word, Google Picasa, ITunes, and Photoshop. Thus a program is not only small it's also not complex and does not use data from different sources.. interesting.. # Application This is referred to as an "app." after the smart phone boom. Typical a very small program Even smaller??? Is that possible? # Firmware Code built into the hardware and is read-only. This is like an old cell phone, a fuel pump or a house thermostat . More of your simpler devices use them. So a computer does not contain firmware? Equally interesting.. But the best part of it all: How to remember this for a test? If you can remember the order of size application -> program -> software will get you through almost all question. If you took the first letter of each it would be APS which is alphabetical order and order by size. I know it is stupid but think about an apple, pear and sausage. Firmware is easy cause it is "firm" just like a chip. Operating system is operating many programs and software. Using this information will get you a Z-
  10. No you can't use the date because when you add 2 pages on the same day your screwed Just do as premiso said add a order column and on each new entry use a query liked described below: SELECT max(order) AS max_order FROM pages; INSERT INTO pages (.., order) VALUES (.., $max_order); After you delete a page: SET @page_order = 0; UPDATE pages SET order = @page_order + 1, @page_order = @page_order + 1;
  11. You want your website to be sheriff/saloon kinda thing but I fail to see how we can help you in this besides advising a template site like http://www.templatemonster.com/ For example: http://www.templatemonster.com/flash-templates/6159.html http://www.templatemonster.com/website-templates/4593.html
  12. You should ALWAYS be on the lookout to buy books. Knowledge and Research should be your top 2 priorities. We can't waste our lives (and our brain) to do nothing or contribute nothing to this society. To many people already waste their lives by never touching a book again after high school.
  13. Google > Tutorials > Read, Learn http://www.devshed.com/c/a/MySQL/Creating-an-RSS-Reader-the-Reader/ http://www.devshed.com/c/a/XML/Creating-an-RSS-Reader-Application/ http://www.developer.com/xml/article.php/3113931/Creating-a-Custom-RSS-Feed-Aggregator.htm http://www.peachpit.com/articles/article.aspx?p=430216
  14. Code provided in these forums are not intended for production use merely act as an example for the user problem. For this same reason will you find almost never any validation on input like: $var = $_POST['var']; $query = "SELECT * FROM table WHERE var = '$var'"; mysql_query($query); Some examples even contain parse error's if you would execute them all because they only acted as an example and were not intended for production or any use just to give the OP the highlights on what may be a solution to their problem. We don't know your project specs inside-out and the provided example is based on the information you did or did not provide. If you want copy-paste code then you should buy a book, read a tutorial, or visit a snippet repository
  15. Why did you not use my provided code? http://www.phpfreaks.com/forums/index.php/topic,285779.msg1355375.html#msg1355375 It is far better then what you have now and more easily to work with.
  16. No that 8 is your primary ID to identify your database record So it should in fact be: <td align='center'><input type='checkbox' name='read[<?php print $row['id']; ?>]' value='1'></td> id='read[]' is invalid because it needs to be unique and as you are looping through an array it will show up multiple times making it not unique.
  17. If you have got spare money I should go for a reliable accurate SaaS like XE http://www.xe.com/dfs/product.php
  18. Download PHPBB or Simple Machines and study their database scheme
  19. I'm not even sure where to start with my critic. - Your website commits SE suicide: Google can't (or won't) read images a search shows it only read your footer. - Styles belong in a stylesheet not in the style attribute it's not because you can you should. - Like oni-kun mentioned readability is poor, contrast is low which makes it hard for people with limited visibility or colour blindness to read your text altough I imagine you would like them as a customer to. - Don't use serif fonts (eg Times New Roman) stick to sans-serif only (eg Helvetica) - Your html & css is invalid
  20. The icon stands for "enclosed styles" and you can view all icons if you go to Edit > Preferences > Invisible Elements It has a listing of all icons + checkboxes to allow for disabling if they annoy you. If you are an inexperienced coder I suggest you leave them On turn them Off otherwise.
  21. Don't use placeholders like oni-kun suggested and don't use PHP files with a language array like teamatomic suggested. Sorry no offense intended. Why no placeholders? Because if no translation is available it will show up (eg TEXT_MENU_HEAD) which is very ugly Why no PHP file with a language array? Because as your website grows you will be maintaining multiple sources (ie PHP files + multiple database tables: blog posts, articles, pages, ..) So how should you do it? Well there isn't any correct way of doing it only easier ways like for example 1 database table that will hold are your original text and it's translation into wathever language the user chose for example: CREATE TABLE language ( id tinyint NOT NULL auto_increment, -- 127 languages name varchar(32), name_translated varchar(32), code char(2), KEY language_code (code), PRIMARY KEY (id)); CREATE TABLE translation ( id integer NOT NULL auto_increment, language_id tinyint, message text, message_translated text, KEY translation_language_id (language_id), KEY translation_message (message), PRIMARY KEY (id)); INSERT INTO language (id, name, name_translated) VALUES (1, 'Dutch', 'Nederlands'); INSERT INTO translation (id, language_id, message, message_translated) VALUES (1, 1, 'Homepage', 'Hoofdpagina'); INSERT INTO translation (id, language_id, message, message_translated) VALUES (2, 1, 'About us', 'Over ons'); INSERT INTO translation (id, language_id, message, message_translated) VALUES (3, 1, 'Written by %s on %s', 'Geschreven door %s op %s'); INSERT INTO translation (id, language_id, message, message_translated) VALUES (4, 1, 'Opinion: to die() or not?', 'Opinie: die() wel of niet gebruiken?'); You now have one source that holds translations for everything in your website menu, pages, .. In your application use it like so: <li><a href="#"><?php print translate('Homepage'); ?></a></li> <li><a href="#"><?php print translate('About us'); ?></a></li> If no translation is available they see Homepage and About us not TEXT_MENU_HOME and TEXT_MENU_ABOUT. They also don't see "Undefined index '..'" when a language file goes missing.
  22. Try this don't forget to change {$row['pubDate']} to the appropriate column name maybe even calling an appropriate function to properly format the output $addBlock .= "\n\n<item> \n <title>{$row['title']}</title> \n <link>$this->rssLink?entry={$row['uid']}</link> \n <pubDate>{$row['pubDate']}</pubDate> \n <description><![CDATA[$com]]></description> \n </item>\n\n";
  23. IP-based voting is far from efficient as users (like me) can (with a press on the button) change their IP-address thus allowing me to vote as many times as my ISP would possibly allow me to (somewhere near 50-60% of the IP-range provided to my ISP as every ISP has more IP-addresses available then it has possible customers). So basically I can vote for every IP for which my ISP has no customer and that is presumably more then the average number of visits a very popular website has
  24. http://articles.sitepoint.com/article/php-security-blunders http://phpsec.org/projects/guide/ http://www.phpfreaks.com/tutorial/php-security
  25. Why do you store cart data in a text file if you are also using a database?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.