Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Javascript, not PHP. Also, read the posting guidelines, immediately.
  2. That is called camelCase. It's how I prefer to name, but there are other types, if you lookup naming conventions. I would actually do this: echo $var .' is a very cool variable and so is '. $anothervar; With single quotes. If you use double, PHP has to parse the string for variables like in your first example. It's "slightly" faster, but I prefer it because it is easier for me to read. If you use a color-coded IDE you'll be able to see your strings and your variables separately, it helps in debugging.
  3. What does it debug? I mean, the only thing that you can't figure out from errors and the manual, is logical flaws, and how can they catch those?
  4. You didn't change anything according to your post! You're still using $this->font when there is no $this->font, it's just $font! Are you even in a class function?
  5. first of all you need to make your array keys which are strings surrounded by quotes. $today['mon'] not $today[mon] Secondly, = is the assignment. == is equal to. Change $month=$today[mon] to : $month==$today['mon'] And I think something is wrong with your time if it thinks today is January. PS: Your age function has some other flaws. Why did you change it? http://www.phpfreaks.com/forums/index.php/topic,157084.msg683302.html#msg683302
  6. Do you read what I write anymore or just post whatever you feel like saying?
  7. so you're saying when you print $month it says 1? or is there more to the code? What "comes back"
  8. Why are you using $this->font when the font is defined as $font? Don't Copy and Paste without reading and understanding!
  9. Well that is SQL, not PHP. What is there to explain? That is your SQL string, replace the one you have with it. Look up the functions you don't know before asking about them at least And if you're that new, maybe a smaller project would be a good place to start. If you're making something complex like a blog, you'll need to learn about security (SQL and email header injection) and other things.
  10. Uhm, PHP can generate images on the fly without saving them. imagepng() and etc.
  11. Did you look at what is on line 27? We talked about this before...
  12. $sql = "select blog.*, SUM(comments.*) from blog, comments WHERE blog.id = comments.blogID order by blog.id desc"; You'll have to change the column and table names to match.
  13. Well that seems like a more important problem. You NEED the header line. Go read the header errors topic.
  14. It looks like you don't have the header line in still.
  15. You have so many pages, I don't know where you're getting this error. On the page which is supposed to be generating another image? And you tried using the whole URL? Post the most recent version, each time, because you have several files you're talking about and the error.
  16. guestbook.php Is not the same file as captcha.php. You need the header() that was posted in order to make an image.
  17. So that file is in the folder Guestbook? Why don't you just put in the whole URL and see if that works.
  18. Show us the actual code please. And if possible, a link to the page.
  19. You need the full path, if captcha.png is NOT in the same directory as this file.
  20. Try this and see if any errors come up, and if they help: $sql = "select * from phpbb_topics WHERE forum_id = 12 ORDER BY topic_id ASC LIMIT 0,10"; $result = mysql_query($sql) OR die(mysql_error().' SQL: '.$sql); while($r=mysql_fetch_array($result))
  21. Hope you paid them in magic beans
×
×
  • 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.