skip to Main Content

Php versions – Downloading files via PHP problem on webserver

Could someone help me with a little PHP problem? This is my code: $mr = mysqli_fetch_assoc($ms); header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename="" . basename($mr['flink']) . """); readfile($mr['flink']); header("Location: ref.php?action=viewdeti&id=".$_GET['id']); Where $mysqli is my mysql connection and $id is $_GET['id'].…

VIEW QUESTION

Error while returning multiple ResulSets from a stored procedure in MySQL – Phpmyadmin

Here's shortened script of my stored procedure: DROP PROCEDURE IF EXISTS `GetVehicleDetails`; DELIMITER // CREATE PROCEDURE `GetVehicleDetails`( IN `inRefNo` VARCHAR(30) COLLATE utf8mb4_general_ci, IN `inSurveyType` VARCHAR(20) COLLATE utf8mb4_general_ci ) BEGIN DECLARE vehicleTypeID VARCHAR(2); SET FOREIGN_KEY_CHECKS = OFF; SELECT * FROM vehicle_details…

VIEW QUESTION
Back To Top
Search