Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Try: [code]<?php $result = mysql_query("select title from content"); while($row = mysql_fetch_object($result)) { $elements[] = array('title'=>$row->title,'id'=>$row->id); } ?>[/code]
  2. What error do the query I showed you give?
  3. Change it to:[code]SELECT * FROM pm_buddy WHERE user_name='{$_SESSION['username']['usr_user']}' AND inf_accept='2' AND inf_block='y' AND inf_friend='n'[/code]
  4. One thing I do not understand why you are doing is this: [code]$row = mysql_fetch_object($result); while($row = mysql_fetch_object($result)) {[/code] What is the point in that?
  5. "PHP Version 4.3.2" at the very top ;)
  6. Ahhh... you must be using PHP4... const is for PHP5 only.
  7. No... sorry. But I found this on Google: http://www.lamphowto.com/
  8. Change [code]$elements=array($key => $row->$key);[/code] to [code]$elements[]=array($key => $row->$key);[/code]
  9. I don't get it? It only works 50% of the time? :-\
  10. Make sure the variables you pass to sprintf is actually set.
  11. I think adding the lines what wildteen mentions should make it work. Or you could install [url=http://zend.com/platform]Zend Platform[/url] and configure Zend Studio to use that as its debugger. It is free for development purposes. That would give you more features too. Like profiling.
  12. What fails?
  13. Works fine for me. Is that the only code you got?
  14. Just change the url in the action attribute on this line: [code]<form action='{$_SERVER['REQUEST_URI']}' method='post'>[/code]
  15. Looks really nice. I can't think of anything to improve it.
  16. [quote author=redbullmarky link=topic=107292.msg438361#msg438361 date=1158791632] it could easily be on a par/better than a renault site itself: [url=http://www.renault.co.uk/CurrentRange.aspx]Renault UK[/url] [/quote] Yeah, I agree with that.
  17. Sorry, this is the wrong forum. I am not sure where it belongs, but I think it would be [url=http://www.phpfreaks.com/forums/index.php/board,58.0.html]Application Design/Layout (No coding help)[/url].
  18. It looks really nice. Just change the title to something shorter and do not write it in all uppercase. Make sure your css is valid: http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.exit911.com%2F&usermedium=all and that your (X)HTML is valid: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.exit911.com%2F
  19. We would need the source code and the cron string (or whatever it is called :-\ )
  20. No, it's just fine. If I thought it was waste of time I would not have replied at all. Let me instead tell you what the error means: [quote]syntax error, unexpected T_VARIABLE[/quote] means that there is a syntax error. It found a variable where it expected something else, in this case a semi-colon to end the definition of the variable $var1. :)
  21. I'm not sure what you mean, but just change [code]if($_POST['remember_zip'])[/code] to [code]if($_POST['remember_zip'] && *do validation stuff here*)[/code] (You obviously need to do some validation where it says *do validation stuff here*)
  22. Ahh... you forgot to put a semi-colon after [code]$var1 = "LIBERTY"[/code] Here is the fixed code: [code]<?php $longstring = ""; $var1 = "LIBERTY"; $longstring = <<<ENDSTRING No person shall be held to answer for a capital, or otherwise infamous crime, unless on a presentment or indictment of a Grand Jury, except in cases arising in the land or naval forces, or in the Militia, when in actual service in time of War or public danger; nor shall any person be subject for the same offence to be twice put in jeopardy of life or limb; nor shall be compelled in any criminal case to be a witness against himself, nor be deprived of life, $var1, or property, without due process of law; nor shall private property be taken for public use, without just compensation. ENDSTRING; echo $longstring; ?>[/code]
  23. [quote author=akitchin link=topic=108885.msg438512#msg438512 date=1158818956] while i'm on a rant, i'll add that i'm tired of this web 2.0 [url=http://emptybottle.org/bullshit/]crap[/url]. [/quote] Heh, you're not the only one who don't like "Web 2.0". Somebody made this site ([b]WARNING: The url and site contains a "bad word"[/b]): [url=http://fuckweb2.com/]click[/url] I better watch out since some mod told me to watch my language when I spelled out the acronym "rtfm".
  24. Yeah. I've never seen this forum empty. There is always other people online than myself. Since there is members from all around the world there is always somebody online to help.
  25. Could be, but doesn't really matter. If it is true then it is set, right ;)
×
×
  • 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.