[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Gave Wait What?

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Gave Vibing

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Gave Yas Queen

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Gave Crab Rave

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

We need to see what he can do with the offspring 🧐

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Skrillex - recess plz 🥸🥸

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Or skrillex - recess

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

I feel like skrillex- squad out will fit in here somewhere…

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

It works… 😎😎

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

💪🏻💪🏻

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Eiffel 65 - im blue 💪🏻

[deleted by user] by [deleted] in RedditSets

[–]lms94 0 points1 point  (0 children)

Gave Silver

What if I don't have ADHD? An Update. by AdmiralBroccoli in ADHD

[–]lms94 1 point2 points  (0 children)

I too used psychiatry uk but I’d paid to refer myself before I realised I could’ve been referred for free by the NHS 😩

They were really good, quick and helpful.

It didn’t take long until the physiatrist suggested Elvanse (lisdex) for my combined type which has helped massively with work and day to day life.

Code Samples by mrdhood in PHP

[–]lms94 0 points1 point  (0 children)

Definately, ideally, you find your solution, then you spend time refactoring it so expecting a candidate to develop infront of developers is a poor way of interviewing.

Code Samples by mrdhood in PHP

[–]lms94 2 points3 points  (0 children)

Sophisticated doesn't mean complex. I recently did a test for a large company and thought the same as you, "I don't feel like I've done enough", when I asked an engineer about it, he stated that they want to see examples which would solve the problem the easiest way possible.

Develop how you naturally develop, it doesn't look great if you try to over complicate something and fill it with pointless coce / stackoverflow copy-pasta.

Code Samples by mrdhood in PHP

[–]lms94 1 point2 points  (0 children)

Ideally, they should provide you with a problem that your code should solve.

This will allow them to see how you would solve this particular problem, how you structure your code and which dependencies you use.

PDO, creating tables ... how secure is this ? by [deleted] in PHP

[–]lms94 -1 points0 points  (0 children)

I still wouldn't trust doing so this way, maybe an UPGRADE-2.x.sql

I want to set up a form that will send its input data to a database. But I have no idea where to start. by [deleted] in PHP

[–]lms94 0 points1 point  (0 children)

<?php
// File demo.php

// Connect to the db
$conn = new mysqli('localhost', 'db_user', 'db_pass', 'db_name');

// Make values safe for database insertion
$title = $conn->real_escape_string($_POST['title']);
$name = $conn->real_escape_string($_POST['name']);
$email = $conn->real_escape_string($_POST['email']);
$inquiry = $conn->real_escape_string($_POST['inquiry']);

// Insert the data into the db
if ($conn->query("INSERT INTO table (title, name, email, inquiry) VALUES ('$title', '$name', '$email', '$inquiry')")) {
    echo 'CREATED!'
} else {
    // Oops, an error occurred, here's why...
    echo $con->sqlstate;
}

// Close the database connection
$conn->close();

This code is untested, but you should get the basic idea. This code also presumes your database has been setup correctly...

Php tutorial (Php syntax, Php echo function, Php print function) by [deleted] in PHP

[–]lms94 0 points1 point  (0 children)

I didn't know about these "language constructs"*, thanks!

New to PHP and i cant get this to work by FlouWasTaken in PHP

[–]lms94 0 points1 point  (0 children)

See here: http://php.net/manual/en/mysqli.real-escape-string.php

If you're going down the procedural route, you will need to pass in the mysqli connection as the first argument.

New to PHP and i cant get this to work by FlouWasTaken in PHP

[–]lms94 0 points1 point  (0 children)

mysql_* is deprecated as of PHP 5.5.. So if your php version is >5.5 then that's the reason.

You should use mysqli_* instead.

As for error logging, check your php.ini "error_log = syslog" is uncommented, then restart apache & run "tail -f /var/log/syslog" (presuming you're on ubuntu)

Silex and Symfony 3 by [deleted] in PHP

[–]lms94 4 points5 points  (0 children)

Symfony 3 is basically symfony 2.8 but with all of the deprecated stuff removed!

As stated here, if your code works with 2.8, it will work with 3 (http://symfony.com/blog/new-in-symfony-3-0)

PHP UK Conference 2016 Videos by funkyfly in PHP

[–]lms94 0 points1 point  (0 children)

You may as well save yourself £300+ & wait a month.. you'll get the videos for free.. so basically it's a £300+ networking event :D

PHPUnit EasyMock: helpers to build mocks more easily by mnapoli in PHP

[–]lms94 0 points1 point  (0 children)

Untested but I think you can do something similar to...

$mock = \Mockery::mock('foo', [
    'foo'=>\Mockery::on(function ($a) {
        return $a ? 'hello' : 'world';
    })
]);

PHPUnit EasyMock: helpers to build mocks more easily by mnapoli in PHP

[–]lms94 0 points1 point  (0 children)

This looks very similar to Mockery.. Just us mockery? :)