Jump to content

Foser

Members
  • Posts

    272
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Foser's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I'm a bit comfused in what you are trying to accomplish. If you want to echo out a form field you can use $_POST which is a global variable. $_POST['form_area_name'];
  2. This is the error I get: Fatal error: Cannot use string offset as an array in C:\WAMP\www\CodersDesk\index.php on line 47 not sure if this is exacly how you do the returns... but... return $article[0]['post_subject']; return $article[1]['post_subject']; return $article[0]['post_text']; return $artcile[1]['post_text'];
  3. I changed it to what you have done, and still does not execute it.
  4. Well it's because all the finishing last 4 variables will be in different places, echo or return wound't work for me here. That is why I am asking if there is another way to do it like this.
  5. This is my function: (works perfecly) function news(){ $query = mysql_query("SELECT `post_subject`, post_text FROM `phpbb_posts` WHERE `forum_id` = 2 ORDER by `post_id` DESC LIMIT 2"); while ($fetch = mysql_fetch_assoc($query)) { $article[] = $fetch; } $article[0]['post_subject']; $article[1]['post_subject']; $article[0]['post_text']; $artcile[1]['post_text']; } Now it's not showing up in my html. here what've done. I called news(); at the beginning and I put the variables where I needed to into my html such as: <h2><?php echo $article[0]['post_subject']; ?></h2> <?php echo smiley_text($article[0]['post_subject']); ?><br /><br /> <a href="#">Message Footer information</a> </div> No text is showing up when I execute it. Whats a similar way to do this correctly? thanks
  6. Well the only thing is. I want it seperatly but with the same query as I won't be using a loop. Is this possible?
  7. could you elaborate? Don't see how that condition would work...
  8. $query = mysql_query("SELECT `post_subject`, post_text FROM `phpbb_posts` WHERE `forum_id` = 2 ORDER by `post_id` DESC LIMIT 2"); $article = mysql_fetch_assoc($query); this is what I have. I'd like to keep it assoc but if it's easier another way I'm flexible for it. I would know how to echo it out in normal if it was limit 1 but as limit 2 how can I differentiate from $article['post_subject'] (for first in order) and $article['post_subject'](from limit two) thanks, any help is greatly appreciated!
  9. I just want one ouput of the one with the biggest integer, not working....
  10. Basic question. I want to do something like this $info = mysql_query("SELECT topic_title, topic_first_poster_name, topic_id, forum_id, topic_poster FROM phpbb_topics WHERE ..."); I want WHERE topic_id is the highest number. Thanks
  11. I'm trying to demonstrate the date exacly like date("Y"); although I want to take the year of the server. That way it won't be manipulatable by changing their computer time. thanks
  12. Is there a function where i set the function to a string and say the string cannot be longer than 400 digits afte 400 digits it just gets cut off at the last word? thanks
  13. Foser

    mass email

    the manual is comfusing me more than anything else, is there a place I can download one? and just change some variables?
  14. Foser

    mass email

    would you have any good tutorials which explains PEAR mail?
  15. I'm coding a program and I'm having trouble learning how to use the mail(); function while wanting to send mass emails from all emails within the dtabase, how would this be done? thanks
×
×
  • 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.