Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
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]
-
What error do the query I showed you give?
-
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]
-
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?
-
Parse error: parse error, unexpected T_CONST???
Daniel0 replied to cjbeck71081's topic in PHP Coding Help
"PHP Version 4.3.2" at the very top ;) -
Parse error: parse error, unexpected T_CONST???
Daniel0 replied to cjbeck71081's topic in PHP Coding Help
Ahhh... you must be using PHP4... const is for PHP5 only. -
[Howto] Apache2/PHP5/MySQL5 on Debian/Ubuntu
Daniel0 replied to Daniel0's topic in PHP Installation and Configuration
No... sorry. But I found this on Google: http://www.lamphowto.com/ -
Change [code]$elements=array($key => $row->$key);[/code] to [code]$elements[]=array($key => $row->$key);[/code]
-
I don't get it? It only works 50% of the time? :-\
-
Make sure the variables you pass to sprintf is actually set.
-
Zend Studio, Windows and MySQL
Daniel0 replied to onlyican's topic in Editor Help (PhpStorm, VS Code, etc)
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. -
What fails?
-
Parse error: parse error, unexpected T_CONST???
Daniel0 replied to cjbeck71081's topic in PHP Coding Help
Works fine for me. Is that the only code you got? -
Just change the url in the action attribute on this line: [code]<form action='{$_SERVER['REQUEST_URI']}' method='post'>[/code]
-
Looks really nice. I can't think of anything to improve it.
-
[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.
-
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].
-
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
-
We would need the source code and the cron string (or whatever it is called :-\ )
-
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. :)
-
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*)
-
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]
-
[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".
-
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.
-
Could be, but doesn't really matter. If it is true then it is set, right ;)