39,402 Topics
![]() | |
Hi All, I am building a personal jukebox and looking to run this off of a raspberry pi, originally I started out using mopidy, but found all of the interfaces lack the general features that I really like and need, and the speed in actually touching some services and playing … | |
Hello guys, I need to host a video sharing site that support srt files for translating videos I've searched the Internet and found ClipBucket its a good script but you must pay for Subtitle extention is there any free script do such a thing? | |
I don't understand why I canot $_POST $row[Oras]. I get UNDEFINED VARIABLE :[CODE] <p><?php $qorase="SELECT Oras FROM oras"; if (isset($qorase) && !empty($qorase)) { echo"<!--" . $qorase . "-->"; $result = mysql_query($qorase) or die ("invalid query 4: " . mysql_error ());} ?> <select name="option" > <?php while ($row = mysql_fetch_array($result)){ echo … | |
Dear developer! I found a script on the internet, by this script i can count leave days Like (2016-07-15) to (2016-07-22) without wekeend days. But i want count more records in one like (2016-07-15) to (2016-07-22) or (2015-01-11) to (2015-02-01).... I paste script on below please help me. Thank you. … | |
Hello, I created four scripts written in php. Scripts are used to import/export data between two databases (one database is on local machine and second one is on server as web shop). Scripts are not basic import/export, because I had a lot of details on what to do with the … | |
Which CMS platform do you use? Do you prefer Joomla or Wordpress? From your observations which one is best for SEO in terms of available free components. Please share other comparison factors. ![]() | |
include("conn.php"); $studid=$_POST['studid']; $reg=$_POST['reg']; $sname=$_POST['sname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $course=$_POST['course']; $contact=$_POST['contact']; $address=$_POST['address']; $img=$_POST['img']; //Image Upload $name=time(); $uploaddir = "../img/"; $uploadfile = $uploaddir .$name. basename($_FILES['userfile']['name']); move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); $fpath=$_FILES['userfile']['name']; if($fpath=="") { $fpath=$img; } if($img=="") { $img="default.gif"; } mysql_query("update student set sname='$sname', fname='$fname', dob='$dob', contact='$contact', address='$address', simg='$fpath' where studid=$studid"); | |
How to add new languages in this example? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript"> // Load the Google Transliterate API google.load("elements", "1", { packages: "transliteration" }); var transliterationControl; function onLoad() { var options = { sourceLanguage: 'en', destinationLanguage: ['ar','hi','kn','ml','ta','te'], transliterationEnabled: true, shortcutKey: 'ctrl+g' }; … | |
Dear Experts I use datepicker as <input style="background-color:#FFC;" type="text" size="9" name="date" id="datepicker-13" value="<?php echo date('d-m-Y', strtotime($date));?>"> <script> var j = jQuery.noConflict(); j(document).ready(function(){ j("#datepicker-13"). datepicker({dateFormat:'dd-mm-yy'}); <!-- j( "#datepicker-13" ).datepicker("show"); --> }); </script> This datepicker pick any date but I want it to select date between this ranges $date1='2016-07-01' $date2='2017-06-30' Suppose If … | |
Is it possible to do pagination in Drilldown Graph? | |
I currently have a binary string that has been encoded with base64_encode(). However, I need to represent this string only with 0-9a-zA-Z characters. I am currently wrapping the string in bin2hex() to represent it with 0-9a-f. However, for transport reasons, I would like to compress the string by representing it … | |
Sir I have this variable $date="2016-07-18" I want to get DATA from 2016-07-01 to 2016-07-17. In other words I want to get DATA of month given in $date (July) but excluding current date (18) How to write query $query = "select * from arrival where ........; Please help | |
How to set a image as default as fixed like background and remaining images will have to change dynamically? in HTML, CSS | |
Customers pick When finished If on the book, such as the selection of Van Dyke VT01 from 1/07/59 - 2/07/59-day period, you will not be able to book your car again. It is based on the availability of the vehicle. I made a separate table Storage booking Van table separately … | |
I have an Array containing arrays with 8 values, I want to group **date** element having same **teacher_name**, **school_name** and **month_year**. Below is my array: Array ( [0] => Array ( [teacher_name] => CF [school_name] => School 1 [month_year] => Jun 16 [starttime] => 04:04 PM [endtime] => 05:04 PM … ![]() | |
Hi everyone, I have a submit form on my website that display's to the user once is has been submitted, The problem I have is the text is being displayed as Chris & Amy\&#39;s 30th It should be displayed as Chris & Amy's 30th What is the best way to … | |
how to use php variable as a html variable? <?php $num=array(); for($i=0;$i<5;$i++) echo '<input type="number" name="$num[$i]">'; ?> i need to display the inputted number in the array. it's not working. please help | |
I have a simple form that I want the user to input their name and submit a picture. The name user name and photoname will goto the database. The form submits to the database, and fileuploads and renames correctly. My issue is how to I return the renamed filename to … | |
Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with … | |
how can i pass the value of $lat and $long in the while loop going to the script for googlemap.. kindly see the code below; while($row = mysqli_fetch_array($query)){ $station = $row['STATION']; $pei = $row['PEIS']; $pga= $row['PGA']; $pgv= $row['PGV']; $lat = $row['LAT']; $lon = $row['LON']; } <script> function initMap() { var … | |
hi So ive deployed a small website i worked on, and before deployemnt on Amazon web services, i was of course testing everything on localhost. after seeing that things are working on localhost, i changed the localhost to the deployment link provided on AWS and things looked fine and all … | |
Hello, I have about 5 years proffessional experience with PHP. I will try to apply for new jobs soon. But I was considering - maybe I should get the certification so they would believe my skills more. I myself understand that it does not bring much value to the business, … ![]() | |
How to retrieve data from another database using PHP, mySQL? | |
How to retrieve data from one database to another using PHP , mySQL? | |
I have been all over the internet trying to figure out how to plan an embedded youtube video in full screen automatically and have failed at every turn. Any ideas here? <iframe src="//www.youtube.com/embed/9ptECXgpIwk?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe> several links on the web say that the rel=0 is what makes it happen, but … | |
Dear Experts, I am using these codes <?php require_once("../includes/connectw.php"); require_once("../includes/functions.php"); $error=""; if(isset($_POST['login'])) { $muser=clean($_POST['username']); $mpass=clean($_POST['password']); if(empty($muser)) { $error="User name must not be empty"; } elseif (empty($mpass)) { /*echo ('<script>alert("Password must not be empty")</script>');*/ $error="User name must not be empty"; } else { $query="select * from admin where user ='".$muser."' and … | |
$sql = "INSERT INTO kladilnica (Username, Uplata, Dobivka, Date, regTime, Odds, isActive, ticket_id, isShared, is_wined, Location) VALUES ('".$user."', '".$bet."', '".$gain."', '".$date."', '".$regTime."' '".$odds."', 1, $randomTicketID, 0, 0, '".$userLocation."')"; $result = $conn->query($sql); trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); I searched on google and found that … | |
Hi, i have two tables in mysql. Tbl1 - lets call it {$tbl_p} has product_id and tax_id fields. Tbl2 - lets call it {$tbl_c} has product_id and tax_id_w fields. Tbl1 needs to be updated (only tax_id field) from Tbl2 based on values of tax_id_w field. But, tax_id_w field in tbl2 … | |
I tried your example in "how to inserting files on mysql using LARAVEL" article. When i choose the .docx file for file upload, i get an error "CLI has stopped working". Kindly help to resolve this issue. Code is exactly the same as the one in your article. Laravel version … | |
The code is: `echo " AS " . $index - 10 . " - " . $index . " SA ";` `$index` is an integer. The output is: `-10 - 0 SA` The expected output is: `AS -10 - 0 SA` What am I missing? | |
I'm using `html2canvas.js & jquery.plugin.html2canvas.js` to save generated receipt. Receipt have 985px height & 350px width. But it is saving only 100px height of image **Need help to find problem AND/OR save receipt** <div class="confirmation-wrapper booking-summary" id="canvas"> <div class="confirmation-content"> <h4>Your Booking Information</h4> </div> <ul class="book-sum-list"> <li></li><li></li>.... <!--All Booking Information--> </ul> … | |
Hi, ive been working on a project which in web with php and mysql. My goal is simple user/admin can input two dates then the result of the query will exported in excel. here's my code which i manage to extract the query from database: if(isset($_POST['submit'])){ // $frdate = $_POST['fr-date']; … | |
I am using the [jQuery File Upload plugin by Blueimp](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](http://blueimp.github.io/jQuery-File-Upload/), … | |
I drew a picture of the database performance for editing. But I try not to choose a new image. Then press the update appears that it does not send the originals back. If you choose a new image It was able to get regular updates. If not, select and click … | |
I have a code that is going to pick the page title of the previous page and autopopulate a field in a form i have created. Users pick the job they want then upon clicking apply the go to an application form. There is a field that is being autopopulated … | |
Before asking, I would like to clarify, youtube-dl is **not** available to me as I'm on shared web hosting. Is there any way to download a Youtube video using PHP WITHOUT youtube-dl? | |
Hi, I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of my league!!! I am creating a website for a training company and I need to get the course info from … | |
hello, I have four arrays. Three arrays are in one group and fourth is in the second group. And I need to use array_diff somehow between theese two groups. First group has one array which contains unique numbers (like barcode number), second array with a product name and third array … | |
**I want to add multiple Record. Add 1 record if it is to insert 1 record , but if 5 recoed data will insert 5 record. Sorry i'm not good english** images 1 [Click Here](http://i.stack.imgur.com/K4XdO.png) images 2 [Click Here](http://i.stack.imgur.com/K4XdO.png) <?php include_once("connect.inc.php"); if (isset($_POST['submit'])) { $i = 0; foreach ($_POST as … ![]() | |
I want to parse .doc files or convert it to HTML or txt files when user upload it. i found this link ( [url]http://instruform.com/wordconv.phps[/url]) but it is not working. Can anybody suggest some php script for the same.(need urgently). please give some suggestion.... Thanks in advance | |
Hi guys I need a help here, I’m trying to use Ajax to update the column of the table in the database with combobox without a submit button, by the way it update the column finely but unfortunately the column data is erased to **0** when a webpage is refreshed. … | |
Sir, I have following codes $host="localhost"; $username="a6354924"; $password="123456"; $db_name="a6354924_abc"; $con=mysqli_connect($host, $username, $password,$db_name); Database and error screen shots are attached. Facing this error Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'a6354924'@'localhost' (using password: YES) in /home/a6354924/public_html/includes/connectw.php on line 8 Please help   | |
Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can … ![]() | |
i have project named myapp in C drive and i am using php built in server so my doc root of project is set to be myapp/public/ containing js,css etc now these js files have some ajax code and calls php scripts in myapp/src folder outside public folder so obivously … ![]() | |
i need help, i want to create a smart auto complete using a text box, it fill clients names from client database, is it any way to create those without jquery, thanks | |
is there a plugin for video rating in WordPress that visitor be able to rate thumbs up or thumbs down continuously thought that video I mean be able to rate thumbs up or thumbs downs during the time they watch the video? for example thumb up at 01:05 and thumb … | |
I was working on bank ifsc code search engine which provides all branch details for every bank in India. I used Php and Mysql to handle database queries and data retrieval. The whole project looks good but there were some technical limitations stopping me. Like, i have done all SEO … | |
I am getting: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 79 bytes) in /path/dbclass.php on line 225 line 225 : $row = mysql_fetch_assoc($res); 1. It was 64M; increased to 128M but no luck. 2. I added ini_set('memory_limit', '-1'); at top of the page but no … | |
How to add triggers in my PHP site? Is it easy to add? What is its syntax & procedure to add it in my site? | |
Hi, I'm kinda new to php and mysql. I'm making a basic shopping cart using 2 database tables. I want my cart to display items from the 2 tables into 1 html table. I ran into a problem giving the 2 database tables the same id name, so now I … |
The End.