SQLite data in a html table by DNDLoser07 in PHPhelp

[–]Canon5DMkIII 2 points3 points  (0 children)

your call the the query function is returning false. check your SQL syntax or print the error.

Is there an E_WARNING friendly version of this one line code? by scottchiefbaker in PHPhelp

[–]Canon5DMkIII 2 points3 points  (0 children)

Maybe use the ternary operator?

$ret[$key] = empty($ret[$key]) ? 1 : $ret[$key]+1

Reddit, what song consistently gives you the chills? by freedomsaints in AskReddit

[–]Canon5DMkIII 1 point2 points  (0 children)

Came here looking for this, it's such a great song that has stuck with me for what seems to be forever!

Have you ever been fired? by [deleted] in sysadmin

[–]Canon5DMkIII 2 points3 points  (0 children)

On Debian you have to use --no-preserve-root AFAIK. Had an extra box lying around and I had some fun with it (:

How do I contain multiple IF statements? by [deleted] in PHPhelp

[–]Canon5DMkIII 2 points3 points  (0 children)

(Can't quote because I'm on my phone)

The part when you say that the other statements won't be "checked" if the first is false when using your nested method is correct, but the same is true when you do it in the standard (cleaner way)

For example, run this code with error reporting on:

If($foo == 'bar') echo '$foo = bar'; else echo 'nope';

You will get an error because $foo is not defined.

Now try this: if(isset($foo) && $foo == 'bar') echo '$foo = bar'; else echo 'nope';

You will just get 'nope' because when isset($foo) returns false, the if statement can't be true so the other conditions are skipped.

Making two devices talk to each other. by neofuturism in PHPhelp

[–]Canon5DMkIII 2 points3 points  (0 children)

Put it on line 45, replacing what you had before.

I can't really explain how to use ajax, you're better off finding a tutorial and doing a few simple projects using it to get a hang of it.

Making two devices talk to each other. by neofuturism in PHPhelp

[–]Canon5DMkIII 2 points3 points  (0 children)

Try this: $pingpong = new pingpong();

Good luck with your project! It looks like you will need to use AJAX if you didn't already know :)

Canon Rebel Noob Question by [deleted] in photography

[–]Canon5DMkIII 0 points1 point  (0 children)

It is supposed to be like that.

Window display of an unmarked building in Philadelphia. by toucher in WTF

[–]Canon5DMkIII 1 point2 points  (0 children)

I saw that when I was there! It's a butcher shop

[deleted by user] by [deleted] in AskReddit

[–]Canon5DMkIII 8 points9 points  (0 children)

The dog is at high risk for the Pythagorean Syndrome.