39,326 Topics
| |
Hi , I am having a list of checkboxes ,each of them having some values in mysql database. If we click on any two or three check boxes,i should get the data from the respective tables. and should be hidden if i uncheck the checkboxes. This is just like searching … | |
Hi everyone, I have an Login page where the Admin enters his username and password and enter his, After he has enter into his page, there is a option for him to change his password.. Enter Current password: Enter new password: Confirm new password: Confirm >> When he clicks the … | |
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL, CreatedOn DATETIME NOT NULL, ModifiedOn DATETIME NOT NULL, `StartD' at line 1 CREATE TABLE `billing`.`ebUsers` ( `UserID` INT NOT NULL AUTO_INCREMENT … | |
Hi, I am using ffmpeg to convert wav audio files to mp3 format but I am getting this error. "cannot execute binary file". I have given 777 rights to my ffmpeg folder and my operating system is ubuntu x86_64. I have uploaded the 64 bit version for ffmpeg but still … | |
Suppose that I have a resumable link to a URI on the web.Is there any method I can setup a streaming script/service that simply redirects the data by downloading it from a source to destination(assume that the destination is the file requestor) ? Like what happens at http://unrestrict.li/home .They say … | |
Hi, I am using ffmpeg conversion from wav format to mp3 format. I want to convert the length of the audio file as well. The length of wav audio file 35 sec and I want to convert it to 15 seconds. Is there any way I can convert the length … | |
Dear sir my html file has following coedes <Html> <head> <title>Add two numbers on same form</title> <body> <center> <h1><font color="blue"> Sum Two Numbers</font></h1> <form name="thisform" method="Get" action="getsum2.php"> <table cellpadding=3 cellspacing=3> <tr> <td>Enter First Number</td><td><input type="Text" name="text1"></td> </tr> <tr> <td>Enter Second Number</td><td><input type="Text" name="text2"></td> </tr> <tr> <td style="color: #ff0000">Result</td><td><input type="Text" name="text2" … | |
Hi, I am trying to recieve an encrypted email attachment and then decrypt the attachment using open ssl. I am successful in decrypting the file. The file that I recieve is in smime.p7m extension. When I decrypt that file the file is decrypted and the file that is decrypted displays … | |
Hi all, This is so simple and it's driving me mad. I've done it many of time before but at this moment in time - blank! How does one display the text: © and stop it from changing to a copyright symbol? Thanks, M | |
Hi guys, Am working on a mini project and my question to you is: What would be your top 5 to 10 important tips for security while working with PHP? Thanks for any help recieved!! | |
Hi currently trying to fighure out how i would need to solve this task... I have a database table which has lots of records and each record will have a parent id attached... e.g. Table_1 ----------------------------------- id name parent 1 test1 4 2 test2 3 3 test3 4 test4 2 … | |
Can somebody explain to me how can I create a one page for all crud and my edit for to be the same with my create form? I don't know how to use if(iseet($_POST['action=create']) if(iseet($_POST['action=edit']) if(iseet($_POST['action=delete']) Oh and if someone is intrested in accepting an apprentice to teach and review … | |
There is a form that i want to submit and url rewrite at the same time. I can change url by adding onsubmit="rewrite_form(event);" option in form : function rewrite_form(e) { var form = document.forms[0]; // .getElementById("form1"); window.location = '/search/' + form.f.value + '_' + form.t.value + '.htm/' + form.amt_from.value; if … | |
hello folks I'm a greenhorn in PHP so excuse me if i'm being dumb. I have set up a page that is pulling records out of a database table, the user viewing the page is intended the choose a number of the records on the page (using checkboxes) and download … | |
Dear Sir, I have following codes <?php mysql_connect("localhost", "root", "") or die("Connection failed! " . mysql_error()); mysql_select_db("asia"); echo "Connection successful!"; $find_query = "select *FROM ghee where sno=3"; $strSQL = mysql_query($find_query); // Execute the query (the recordset $rs contains the result) $rs = mysql_query($strSQL); // Loop the recordset $rs // Each … | |
I try to generate nested reply with my custom layout but its showing nested comments as a new comment ... here is my comment.php code <?php /** * The template for displaying Comments. * * The area of the page that contains comments and the comment form. /* * If … | |
<?php // post_view.php require 'connection.php'; $id =$conn->lastInsertId('id'); $stmt = $conn->prepare('SELECT * FROM posts WHERE id = LAST_INSERT_ID(id) LIMIT 1'); $stmt->execute(array('id' => 'LAST_INSERT_ID(id)')); while($row = $stmt->fetchAll(PDO::FETCH_ASSOC)) { //$row is an array object? that has one array in index 0 print_r($row); echo '<h2>'.$row[':title'].'</h2>'; //echo '<em>Posted '.date('F j<\s\up>S</\s\up>, Y', $row['date']).'</em><br/>'; echo nl2br($row[':body']).'<br/>'; echo … | |
Total Import PRO we have used and the product updated on 1000 product but images are not come so how to get images from direct xml feed from my supplier directly come from xml feed any help is appricated i have check all info like not a single image is … | |
hello friends i have 3 variable in form option and it content diferent price of shipping and i have varile price of product, and and other variable who is the total, i would like when user choose shipping of his choice that the total change my code is below <?php … | |
I'm working on making a user maintenance system for my class, I have created the add/delete user portion but as for the edit portion I am completely stumped. So far I have created the form but what I want to do is be able to hit find user and then … | |
Okay so i have a page when it is visted stores there ip to file and bans there ip access to a differant page. Problem i have is it will only ban the last visted ip, which i want to ban all ip's in the file. page1 which is visted … | |
<?php require_once("./Connections/root.php"); mysql_select_db($database_root, $root); include 'p_settings.php'; session_start(); $user = $_SESSION['MM_Username']; $q = mysql_query("SELECT id FROM performer WHERE username='$user' LIMIT 1") or die("Error : " . mysql_error()); $r = mysql_fetch_assoc($q); $id = $r['id']; ?> You can set three countries as banned." <br> Please choose from the following countries: <?php $query = … | |
<?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { $username = $_POST['username']; … | |
Hello guys and girls.. I have a problem with the media wiki endgine.. I want to create user groups via the UI, but these groups and permissions are static. (By static I mean that they are written in a php file that puts them into an array.) The php file … | |
I am still learning Laravel 4 so I have a resourceful controller tasks and I am having a problem implementing my jquery. My delete works fine without jquery so i think that I am not providing the proper url I have found one problem I don't know how to pass … | |
Hi Friends Please help me about a session problem, i am unable to find the reson of this issue. I am Developing a matrimonial site for a client : bit.ly/19mFQ8x Problem : users are automatically logout when they click on any page after login, but it is not happning in … | |
hi guys, am testing this script, but its not working. my requirements: current file in database and in folder is 135.docx, and if i want to update it by uploading a new file, the new filename should be 135_1.docx , if update again it must be 135_2.docx and so on, … | |
<?php function html_escape($input) { return htmlspecialchars($input, ENT_COMPAT | ENT_HTML401, 'utf-8'); } require 'connection.php'; if(!empty($_POST)) { $ustmt=$conn->prepare('UPDATE posts SET title = :title, body=:body, WHERE id = :id'); $lpstid = $_GET['id']; $ustmt->bindValue('title', $_POST['title']); $ustmt->bindValue('body',$_POST['body']); $update_stmt->bindValue('id' , $lpstid); $ustmt->execute(); while($row = $update_stmt->fetch()){ print_r($row); } if($ustmt) redirect('post_view.php?id='.html_escape($_GET['id'])); } $sstmt = $conn->prepare('SELECT (title,body) FROM posts … | |
i have a form that posts to a database and i was testing code that prevents any javascript or othe client-side scripting from being submitted to the database.All javascript code i submitted ended up in the database, i figure this is bad.How can i prevent this? | |
$query="SELECT * FROM history WHERE p_na LIKE '$p_na%' AND svreg LIKE '$svreg%' IN (SELECT * FROM history WHERE cdate BETWEEN '2013-09-12' AND '2013-12-12')"; $sql=mysql_query("$query"); am searching for data LIKE a and LIKE b that falls between to dates. I thought a sub query will be the best method, but its … |
The End.