Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. onChange is a client side event, PHP executes on the server.
  2. Sorry, but that makes no sense. Queries are SQL. Now, why not tell us what the actual issue is.
  3. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=351137.0
  4. trq

    which CMS

    Both are quite capable, though for such a small site I would be more inclined to go with Wordpress. It's just allot simpler to customise.
  5. A few simple errors. I was missing a closing php tag. Are you even trying to do this yourself? <?php require "scripts/connect.php"; $query = mysql_query("SELECT * FROM news WHERE section='gtkphp'"); ?> <table> <?php while($rows = mysql_fetch_assoc($query)) { $id = $rows['id']; $title = $rows['title']; $body = $rows['body']; ?> <tr> <td> <a href="view.php?=<?php echo $id;?>"><?php echo $title;?></a> </td> </tr> <?php } ?> </table>
  6. You could do that, sure.
  7. No, it is not true.
  8. Look at your logic. <?php require "scripts/connect.php"; $query = mysql_query("SELECT * FROM news WHERE section='gtkphp'"); <table> <?php while($rows = mysql_fetch_assoc($query)) { $id = $rows['id']; $title = $rows['title']; $body = $rows['body']; ?> <tr> <td> <a href="view.php?=<?php echo $id;?>"><?php echo $title;?></a> </td> </tr> <?php } ?> </table>
  9. If your hard coding your content into your pages theres probably not a great deal you can do anyway.
  10. <table> <?php while($rows = mysql_fetch_assoc($query)) {?> <tr> <td> <a href="view.php?=<?php echo $id;?>"><?php echo $title;?></a> </td> </tr> <?php } ?> </table>
  11. yes. it is Javascript combined with some server side language such as PHP, Ruby, Python, .Net whatever...
  12. You should look into storing your data in a database rather than creating an actual file for each post. Every time someone posts a new topic here do you think a new file is created?
  13. Your echoing the same links twice. <a href="view.php?=<?php echo $id;?>"><?php echo $title;?></a> <a href="view.php?=<?php echo $id;?>"><?php echo $title;?></a> How do you want the table to display?
  14. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=351058.0
  15. Explain "nope" I'm not a mind reader.
  16. <table> <?php while($rows = mysql_fetch_assoc($query)) {?> <tr> <td> <a href="view.php?='<?php echo $id;?>"></a> <a href="view.php?='<?php echo $title;?>"></a> <a href="view.php?='<?php echo $body;?>"></a> </td> </tr> <?php } ?> </table>
  17. What?
  18. Post some actual code. There is nothing in your post to suggest it wouldn't work.
  19. You need to have this: <a href="view.php?='<?php echo $id;?>"></a> <a href="view.php?='<?php echo $id;?>"></a> <a href="view.php?='<?php echo $id;?>"></a> within your loop.
  20. Again, we have no idea what those paths refer to. You setup this install, you should be aware of where it is located. I'm not a Joomla user, but if it's like a few of the other CMS's around, it likely requires FTP access to your server in order to install files via it's auto updater. Do you have an FTP server installed and configured? How did you install Apache, MySql and PHP?
  21. You have opened at least 3 or 4 variations on this same subject. I for one am a bit over it.
  22. I'm not sure why you bother to come here asking questions then to be honest. If you think it's a good idea, and your not willing to listen to other more experienced peoples opinions, just get on with it, why ask the questions? Good luck. I won't be commenting on any more of your ideas.
  23. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=351076.0
  24. If you only want 6 records, limit your query to 6 results. See http://dev.mysql.com/doc/refman/5.5/en/select.html, in particular the section an the LIMIT clause.
  25. The questions you where asking are seemingly unrelated to the task of maintaining or developing a "mail service". While it is good and even encouraged to set yourself goals, you really need to understand your limits. This is not stuff your even going to learn overnight let alone become experienced enough to run a trusted service with. Have you any experience maintaining unix servers? Have you any experience with a proper firewall such as iptables? Have you any experience installing and configuring properly an smtp server such as postfix or exim? Do you know what I am talking about? People who do not understand a problems scale will often mistakingly assume it as "simple" or as "easy enough to learn". These people quickly forget that more complex problems are often solved by people with allot of experience in the field. Don't get me wrong. Given enough time and ambition anyone can achieve there goals. However, coming to a community of programmers, server administrators and IT professionals who can see instantly that you are a beginner then writing off there advice as discouragement for the sake of being discouraging. Seriously, you need a wake up call.
×
×
  • 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.