Jump to content

musnoure

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Everything posted by musnoure

  1. I am still trying to figure it out. I thought I would do this: $result = mysql_query("SELECT meta_keywords FROM auto LIMIT 1"); while($row = mysql_fetch_assoc($result)) { echo $row['meta_keywords']; } It does pull out keywords and display them, but it's not dynamic. If you click on a different link, the keywords won't change. So I need to find a way to display keywords according to the id or something like that. Table structure is as follows: id article_title article article_author article_date meta_keywords meta_description word 1, word2, word 3 etc... Any help is appreciated!
  2. I am still trying to figure it out. I thought I would do this: $result = mysql_query("SELECT meta_keywords FROM auto LIMIT 1"); while($row = mysql_fetch_assoc($result)) { echo $row['meta_keywords']; } It does pull out keywords and display them, but it's not dynamic. If you click on a different link, the keywords won't change. So I need to find a way to display keywords according to the id or something like that. Table structure is as follows: id article_title article article_author article_date meta_keywords meta_description word 1, word2, word 3 etc... Any help is appreciated!
  3. Also, for security measures, don't you think I should use POST instead of GET?
  4. WebStyles, Thank you so much for your help, it did work perfect! I still have two more questions though, I would really appreciate if you could take sometime to help me out. 1. Can I apply the same thing to pull out Keywords and Description Meta Tags from DB? For example meta_keywords and meta_description? 2. Is there anyway auto.php can have a title as well? Again, thank you very much!
  5. An exmaple of the output when I click on "auto" link: Why my Check Engine Light is on? (This is $row['article_title']) Why is my Check Engine Light on? All modern vehicles have a built-in ECM (Electronic Control Module, also Electronic Control Unit) that controls the functioning of the engine and transmission and mainly keeps the engine run as efficient as possible w... (And this is $row['article']) Both $row['article_title'] and $row['article'] are two fields in DB. auto.php basically loads content from a table named auto in the Database and displays them like this: Why my Check Engine Light is on? Why is my Check Engine Light on? All modern vehicles have a built-in ECM (Electronic Control Module, also Electronic Control Unit) that controls the functioning of the engine and transmission and mainly keeps the engine run as efficient as possible w... My car has been stolen! My car, auto, autos, has been stolen! Experiencing car theft can be very frustrating especially if you have left valuable stuff inside it. It is extremely important to act as soon as you find out that it has been stolen.The first thing to do is call ... How to change engine oil How to change car auto, autos, engine oil Changing oil and filter for your car is a job that you can do yourself instead of paying a mechanic too much for such an easy task. Learning how to check oil and change it yourself will not only save you mone... Tips on passing your driving road test Tips on passing your driving road test As many think, it is a frustrating process to prepare for the road test, it can be, but the more you practice, the easier the test gets. Here is a list of some tips that will help you prepare for the test:Start... etc. etc. So auto.php has to have a title, and when you click on the title of the article (to view full text), the entire article has to have its title as well.
  6. I would need help if I were to use sessions or external files. Yes, but I I pull the content out of the Database. For instance, the page is named auto.php and contains the following: $found = mysql_query("SELECT * FROM auto") or die (mysql_error()); while ($row = mysql_fetch_assoc($found)) { echo '<a href="index.php?proc='.$row['id'].'">'.$row['article_title']. '</a>' . "<br />" . substr($row['article'], 0, 250). '...' ; } And the link is: <a href="index.php?proc=auto">
  7. Yes, thank you!
  8. Thanks for the reply! ... but the title tags will be included in the body, not in the header, I want the title tags to go in the header in index.php and the content of the page that's included to go in the body.
  9. Hi guys, In index.php, I am creating files to be included in the body section yet these pages' title should go in the header, not in the body so I thought I would work it out like this: -------------------header.php------------------- <title><?php echo $page_title; ?></title> -------------------page1.php------------------- <?php $page_title = 'Title of my first page'; require_once ("header.php"); text text text ?> -------------------index.php------------------- in the header: <?php require_once ("header.php"); ?> In the Body: <?php require_once("page1.php"); ?> THE OUTPUT: In the header: <title></title> (empty) In the Body text text text I do not know what I am missing here. If anyone could help, I would greatly appreciate it!
×
×
  • 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.