Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Do you really think your post is detailed enough to be any help to us or yourself?
  2. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=351144.0
  3. The error you are receiving is a PHP error, not mysql. There is nothing in the code you have provided that would produce that error. PHP will tell you where is halted because of the error, you will often find that the error however occurs a a few lines prior to where PHP halted.
  4. onChange is a client side event, PHP executes on the server.
  5. Sorry, but that makes no sense. Queries are SQL. Now, why not tell us what the actual issue is.
  6. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=351137.0
  7. 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.
  8. 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>
  9. 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>
  10. If your hard coding your content into your pages theres probably not a great deal you can do anyway.
  11. <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>
  12. yes. it is Javascript combined with some server side language such as PHP, Ruby, Python, .Net whatever...
  13. 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?
  14. 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?
  15. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=351058.0
  16. Explain "nope" I'm not a mind reader.
  17. <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>
  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.
×
×
  • 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.