Hello,
I want to destroy the session when the user closes the particular in google chrome.So let me how to make or if u have sample code means post it.
regards,
sim.
Hello,
I am getting this error.
Here is my down.php codings
Parse error: syntax error, unexpected $end in C:\wamp\www\ ...down.php on line 18
<?php
mysql_connect("localhost","root","");
mysql_select_db("sample");
if(isset($_GET['id']))
{
$id = $_GET['id'];
$query = mysql_query("SELECT file FROM testing WHERE id='$id' ");
$row = mysql_fetch_array($query);
?><a href='resumes/'<?= $row['file'] ?>>Download</a>
<?
}
?>
Hello,
I want to download a document file from database in phpmyadmin.
Here is my codings...
<?php
if(isset($_GET['id']))
{
// if id is set then get the file with the id from database
mysql_connect("localhost","root","");
mysql_select_db("sample");
$id = $_GET['id'];
$query = "SELECT file FROM testing WHERE id='$id'";
$result = mysql_query($query);
list($name) = mysql_fetch_array($result);
header("Content-length: ''");
header("Content-type: application/msword");
header("Content-Disposition: attachment; file='$name'");
echo "";
exit;
}
?>
If i am download , i am getting only empty document .
If any one knows let me know..
warning mysql_num_rows() expects parameter 1 to be resource boolean given in....
I am getting this error when i running the logincheck.php
please help me i am struggling....
thanks,
simbu.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.