skip to Main Content

Php versions – PHP result row as an object not set

I have this PHP code in which I try to edit a row in the database $sql="SELECT * FROM `event` where `EId`='".$_GET['EId']."'"; $res=$conn->query($sql); $numrows=mysqli_num_rows($res); if ($numrows>0) { $obj = mysqli_fetch_object($res); } if ($_REQUEST["mode"]=="save") { if ($_FILES['image']['name']!="") { del_img("event/",$obj->Picture); $Picture=post_img($_FILES['image']['name'], $_FILES['image']['tmp_name'],"event");…

VIEW QUESTION

Memcached – SQLSTATE[HY000] [1698]-Laravel-6.5.1

I created a new laravel project, changed the application key, and the database data in .env and database.php files. Here is the .env: APP_NAME=NewSite APP_ENV=local APP_KEY=base64:Sh8WFAEfaUTDadmmpFiTDE8gbgUAOm7zgIywx8ZKRUo= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=NewSite DB_USERNAME=NewSite DB_PASSWORD=NewSite BROADCAST_DRIVER=log CACHE_DRIVER=file QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120…

VIEW QUESTION
Back To Top
Search