39,326 Topics
| |
With following code I tried to upload image and video file at the same time but, image file is uploading & video file is not uploading <form class="pure-form pure-form-aligned" action="Processor.php" method="post" enctype="multipart/form-data" > <fieldset> <div class="pure-control-group"> <label for="image">Upload image</label> <input type="file" name="image" class="pure-input-1-4" /> </div> <div class="pure-control-group"> <label for="video">Upload video</label> … | |
Hello, I want to check whether one given date range is falling under another range or not. Is there function for this? Because when I am calculating this using To and FROM dates , it is taking efficient. I have to apply separate condition for TO date and FROM date. … | |
i want to create a image gallery,i want to insert multiple files at a time,that should be stored in a database,and i want to display that in my profile.php as a gallery. | |
Hi. I am displaying image dynamically from database, When I click the particular image I want to show that image in a popup or lightbox in a simple way. How to do? | |
Hello, i'm having a little bit of an issue with a portion of code ... It's for a portfolio gallery. $sliders_out = '<div class="fx"><ul class="slides">'; foreach($slides as $slide) { $local = substr(str_replace(array(get_bloginfo('url'), '.jpg', '.png'), array('.', '', ''), $slide['slide_image']), 2); $locals = array_merge(glob($local.'*1024*'), glob($local.'*768*'), glob($local.'*')); rsort($locals); if (isset($locals[0])) $src = $locals[0]; … | |
Guys what is wrong with my code? Why it gives me an output "hi"! Can you explain it to me. Please. Thank You! <?php $a = "Unemployed"; if ($a == "Employed, Locally" or "Employed, Abroad"){ echo "hi"; } elseif ($a == "Unemployed"){ echo "hello"; } ?> | |
Hi everyone, I am still quite new to HTML and PHP. I have a form in HTML pointing to a PHP script that sends an email. But it doesn't work - please tell me where I am going wrong! The HTML is: <div class="main-content three-fourths"> <h1>Get in touch</h1> <p class="lead">We'd … | |
[home page](http://pastebin.com/DHWcW3aU) [css sheet](http://pastebin.com/LFgnjXkt) can u tell me which is mistake i did ? | |
Hi guys I'm using the script `add_address.php` to output a list of email addresses from the `message` box to allowed me to split the email addresses to add to each comma. I want to output the email addresses from the `message` box to the `text` box in the `send.php` script … | |
I am looking for a script which will allow me to place a vbulletin login box on a non vbulletin page. There are couple of scripts, but they are for older versions. I am using v3.6.8 Does anyone know where to find one for 3.6.8? The closest I could find … | |
I have a PostMapper class like the one in http://www.sitepoint.com/integrating-the-data-mappers/ But, I modified the find method, so it can have more parameters (I want to paginate the data, so I added the limit parameter) public function find(array $columns = array('*'), array $where = array(), $offset=0, $limit=5, $orderBy=null) { $sql = … | |
my index page <script type="text/javascript"> $(document).ready(function(){ $("#first_name").blur(function() { var first_name = $('#first_name').val(); var fathermobile = $('#fathermobile').val(); if(first_name=="") { $("#disp").html(""); } else { $.ajax({ type: "POST", url: "detail.php", data: 'first_name='+ first_name +'fathermobile='+fathermobile, success: function(html){ $("#disp").html(html); } }); return false; } }); }); and my detail.php <?php include("include/connect.php"); if(isset($_POST['first_name']) && isset($_POST['fathermobile']) ) … | |
Warning: require_once(EzOptions.php): failed to open stream: No such file or directory in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 Fatal error: require_once(): Failed opening required 'EzOptions.php' (include_path='.:/usr/lib/php') in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 | |
Hi, I don't know if there is some name for this but what I want to create a script in php which runs in the background and capable of sending and receiving messages. This is what I want to do exactly: 1. Listen to a URL http://site1.com through xmpp protocol. … | |
<?php session_start(); <?php session_start(); require('connect.php'); if(isset($_SESSION['username'])) { $dir="image/"; $file_name=$dir.basename($_FILES['uploads']['name']); $fileUpload=1; $imageType=pathinfo($file_name,PATHINFO_EXTENSION); $image= addslashes(file_get_contents($_FILES['uploads']['tmp_name'])); $image_name = addslashes($_FILES['uploads']['name']); $image_size = getimagesize($_FILES['uploads']['tmp_name']); if(move_uploaded_file($_FILES['uploads']['tmp_name'], $file_name)) { echo "uploaded succesfully" ; echo "<img src='$file_name' width='50px' height='50px'>"; $querry="SELECT image FROM users WHERE username='$username'" or die(mysql_error()); $result=mysql_query($querry) or die(mysql_error()); $row=mysql_fetch_assoc($result) or die(mysql_error()); $oldimage=$row['image']; unlink('directory/image/'.$oldimage); /* $deleter = … | |
This is my code $result = msqli_query($this->db,$sql1) or die(mysqli_connect_errno()."Data cannot inserted"); this is the error message Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\project\class.user.php on line 25 | |
Hi, I have problem , the same number of comments that appears in all items this is my code : <?php $requete = $bdd->query('SELECT COUNT(c.id_commentaire) AS total FROM commentaire c INNER JOIN pytho_blog a ON a.id = c.id_article '); while($data=$requete->fetch()) { echo $data['total']; } ?> Thank you for your help … | |
| <?php $host = 'localhost'; $user = 'root'; $pass = '******'; $db = 'test'; $error = 'Error Connecting to database'; $error1 = 'Error Selecting to database'; $connect = mysql_connect($host,$user,$pass) or die($error); $select_db = mysql_select_db($db) or die($error1); ?> <table border="1px"> <tr> <div class="differentLine"> <th > </th> <th > 9:15 - 10:15 </th> <th … |
I need to read the span value and insert into database in php <span class="GrandTotal">0.00</span> | |
Hey Im making an online store and cant figure out the section on inserting data into a table (in this case its inserting customer details into a customer table). Its the VALUES line that is displaying the error: mysql_query() expects parameter 1 to be string, resource given. I have looked … | |
Hi im getting this error on inobox.php any ideas please Warning: implode(): Invalid arguments passed in /home/jktempla/public_html/SCRIPTS/DATINGSCRIPT/inbox.php on line 199 <?php // Fetch user random for display on bottom <THIS LINE>$idtopuid = implode(',', $topuid);<THIS LINE> <THIS> $userquery = mysql_query("select * from user where user_id != '".$_SESSION['userid']."' and user_id NOT IN … | |
Hi guys! I have a database which holds a table called users. in there i have a balance column which contains a numeric value. I have the following code and for some reason it doesnt work: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search</title> … | |
hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...[Click Here](http://www.script-tutorials.com/datatables-data-from-ajax-edit-in-place/) | |
Hello pals. I have a code here that is updating only the last column of my sql database table. how can I upgrade it to work for the rest upper rows please. my code is as follows <?php error_reporting (0); // Connect to server and select databse. $mysql_hostname = "localhost"; … | |
Hi , In a form , I have a field for image , in edit page, i can display that image, when I am clicking update, without modifying image it shows error in image. How to save previous image if its not changed. Sample Code: <span><img src="profile/<?=$rows["upload"]; ?>" id="blah" style="height:25%; … | |
My Model : admin_login_model.php Unable to view them in browser as shown in the image below http://i.stack.imgur.com/fychj.png i am working on CodeIgniter version 3 Can anyone tell me what is the issue if ($email === $admin_email && $password = $password) { echo 'credential match'; $this->load->helper('cookie'); if ($remember_me == '1') { … | |
i have a query that retrieves let's say 10 records. the output should be 10 pdf files. so 1 pdf per records. it can be saved on user's computer. im using fpdf by the way. just wondering if i'm going to develop it through web using PHP will it be … | |
i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go automatic in his folder or directory. im my register page i have added these lines: $addtothedb="INSERT INTO login (firstname,lastname,useremail,password,Gender,Dateofbirth) VALUES … |
The End.