Category : mysqli

I have a page for displaying a post’s full detail. But its throwing an error. Trying to get property ‘title’ of non-object (View: C:xampphtdocsmyappresourcesviewspublic-areaview.blade.php) https://localhost/myapp/public/post/the-duchess-took-her-choice-and-was-going-to-begi/7 All seems to work fine up until it has to display MySQL result in blade. Here are my codes: LOGIC: use IlluminateDatabaseEloquentFactoriesHasFactory; use IlluminateDatabaseEloquentModel; class Listing extends Model { use ..

Read more

I deployed a USSD application on Heroku but testing it in a Sandbox environment has been a painstaking process due to Warning: mysqli::__construct() : (HY000/2002) : Connection refused in /app/dbConn.php on line 8 The code causing this error: $connection = new mysqli($hostname, $username, $password, $database); The hostname and username: $hostname = ‘127.0.0.1:3306’; $username = ‘aaron’; ..

Read more