Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by glassfish

  1. I have the pre tags stored in the database like in the following example: <pre> ... </pre> I am looking to avoid having the code rendered, when querying it into a textarea. Any suggestions?
  2. The pre tags: <pre></pre> get saved in the database like in the above shown example. Though, when reopening them within a textarea they stop working. For example: <pre><h1>The Headline</h1></pre> becomes: The Headline within the textarea. The Questions: What happens here? How to solve it?
  3. I was able to install CKEditor and the plugin "Syntax Highlighter". Yet the plugin does not work. This is how the code comes out: <div> <H1>You are Writing this Post</H1> <form action="insert.php" method="POST"> <input type="text" name="title" /> <br /> <textarea type="text" name="post"></textarea> <br /> <input type="submit&q Any suggestions?
  4. When I use a forward slash the stylesheet.css file does not work at all anymore. <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <link rel="stylesheet" type="text/css" href="/stylesheets.css" /> </head>
  5. The root directory: header.php stylesheet.css In the following example I am trying to include the header.php file in a sub folder. When I include the header.php like in the following example then the stylesheet.css file will not work anymore: <?php include("../header.php"); ?> The stylesheet.css file is included in the head tags of the header.php file. Is the above example the right way to do it? If yes, how can I do it so the stylesheet.css file will work too.
  6. Which is the most popular framework?
  7. I am looking for a blog app or also a magazine type web app for CakePHP to learn from - any suggestions?
  8. There are no opening and closing tags in the code example of the file PostsController.php in this tutorial: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html Should I always use opening and closing PHP tags throughout with CakePHP?
  9. Should one learn object oriented programming first, before getting to learn a framework? I have been interested in CakePHP.
  10. I am looking to learn CakePHP are there recommendations for tutorials on CakePHP?
  11. The Query: $query = "SELECT * FROM ttn01 WHERE id = $_GET['id']"; I am getting an error.
  12. I have opted to using the HTML in a PHP file, which means using HTML in PHP without the "echo".
  13. I have opted to using the HTML in a PHP file, which means using HTML in PHP without the "echo".
  14. This topic is answered. Thanks for the posts. Where can I mark this topic as "Answered"?
  15. Here are videos showing it: https://www.youtube.com/watch?v=qRaz1CRMGEg https://www.youtube.com/watch?v=XJYtIZ2Aqqo Again, the processing of the PHP tags do not happen to myself (with this topic).
  16. I have tried it when using an HTML file. Are there issues when doing this?
  17. <body> <?php Echo "Hello World!"; ?> <h1> The headline here</h1> </body> The above os an example. The problem can be read in title. When clicking on View Source Code in the web browser the PHP tags are still there, which means they have not gotten processed. Why does this happen? Using Apache (XAMP).
  • 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.