Search Engine Optimization is one of the most essential marketing tools in today's online business world. Here are some of the top SEO blogs Topics that I read & found best.
I hope you found this a cool and expansive topic
$dbhost=
"localhost";
$dbuser=
"root";
$dbpass=
"";
$dbname=
" roshan_db ";
mysql_connect($dbhost,$dbuser,$dbpass)or
die('cannot connect to the server');
mysql_select_db($dbname)or
die('database selection problem');
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>File Upload With
PHPand
MySql
</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<button type="submit" name="btn-upload">Upload
</button>
</form>
</body>
</html>
<?php
include_once 'dbconfig.php';
if(isset($_POST['btn-upload']))
{
$file = rand(100,1000)."-".$_FILES['file']['name'];
$file_loc = $_FILES['file']['tmp_name'];
$file_size = $_FILES['file']['size'];
$file_type = $_FILES['file']['type'];
$folder="uploads/";
if(move_uploaded_file($file_loc,$folder.$file)){
$sql="INSERT INTO tbl_uploads(file,type,size) VALUES('$file','$file_type','$file_size')";
mysql_query($sql); }else{
echo “Something Wrong !!!”;
}
}
?>