52,566 Archived Topics
Remove Filter ![]() | |
Hello Everyone, I am trying to compute the subscription next due date. For example, these are the subscription dates: 1/28/13 1/29/13 1/30/13 1/31/13 When I used the php function strtotime( "+1 month", <date> ) the next month due date will be: 1/28/13 due date is 2/28/13 1/29/13 due date is … Web Development php | |
hello, I add rows to the Gridview through the following code : The below code is working fine. However,i am now placing a button REMOVE besides this grid. Whenever a user selects a particular row ( no use of checkbox for selection) The user will click on the row he … Web Development asp.net | |
Good day folks, I am working on a project now and I'm wondering how to detect if a div is visible in the screen while the user is scrolling on the page. Hope someone will be able to shed some light. Thanks :D Web Development javascript javascript-jquery | |
Hello, I am trying to create admin login page. This is what I try so far: controllers/admin/clogin.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login controller class */ class Clogin extends CI_Controller{ function __construct(){ parent::__construct(); } public function index(){ // Load … | |
am trying to export data from mysql db to excel format, but the excel file i get is damaged. i get two varibles by $_GET, and run a search, and then creates the excel file based on the results... `$p_na = $_GET['p_na']; $svreg = $_GET['svreg']; include_once("classes/PHPExcel.php"); $result = mysql_query("SELECT * … | |
can anyone help me in configuring the sqlite with php. I have tried changing the php.ini and enabling the extension from the extensions list. I am using the wamp for development. Please fix my error. Thanks in advance | |
Hi, I have developed a drop down. In that I was trying to figure out how to reduce the <li> text gap or spacing. What do you think, which css attribute is creating this gap or spacing. Here is the demo [Click Here](http://jsfiddle.net/RtqCL/) [Click Here](null) Web Development ![]() | |
how to access classes or objects defined in APP_CODE folder ? i defined some classes there but how to access those ? | |
Hi, I am looking for when you select a value from dropdown and submit. The results has to show in the same page with percentage. It is like voting. Thanks in advance. Web Development html-css javascript | |
This is my javascript code. here i am trying to multiple two values in each row (totally 7 rows) and then doing addition operation at end of the table. its worked but problem is NaN. when i entered all fields then only it shows the final value. if user entered … Web Development javascript | |
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 … Web Development php | |
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 … Web Development php | |
Hi, I like to scroll all the scroll bar at the time.first scroll is working fine.but other scroll not working anyone have idea <html> <title></title> <head> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script> $(document).ready(function(){ $('.box').each(function(){ $(this).bind('scroll',function(){ var leftPos = $('.box').scrollLeft(); var leftPos = $('.box').scrollLeft(leftPos); }); }); }); </script> <style> .box{ width:500px; overflow-x:scroll; } .clear … Web Development html-css javascript javascript-jquery | |
I want to store one column value in array because it is auto incremented and also it is a primary key and this values i want to insert into another table where that primary key refer as a foreign key so anyone can help me to come out from this … Web Development java-jsp | |
Hello, We uploaded some videos in the back to YouTube and they reproduce perfectly on our webpage. The thing is, with mobile becoming more and more intresting, playing them in a HTML5 video player would be more universal. How can we make this change? Web Development display flash html-css javascript | |
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 … Web Development audio operating-system php ubuntu | |
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 … Web Development file-stream file-system php streaming-service | |
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" … Web Development php ![]() | |
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 … Web Development file-system php | |
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 Web Development php | |
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!! Web Development cybersecurity php | |
Hi All, I am trying to the following: The code is written in ASP, the output is from a database. I am trying to multiply the QTY and RATE#2 and display total with each order in the returned data. This relates to the last td's in the output. I also … Web Development asp | |
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 … Web Development php | |
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 … Web Development javascript php ![]() | |
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 … Web Development php | |
I have an XML file I downloaded that is supposed to be API documentation for a program I downloaded. The problem is that I haven't the slightest idea how to read the file. I tried using Notepad, Google and IE, they all just show a lot of gibberish. What program … Web Development api google-api xml ![]() | |
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 … Web Development php social-media wordpress ![]() | |
<?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 … Web Development php ![]() | |
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 … Web Development 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 … Web Development file-system php | |
<?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 = … Web Development php | |
<?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']; … Web Development php | |
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 … Web Development file-system php | |
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 … Web Development javascript-jquery php | |
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, … Web Development file-system php | |
<?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 … Web Development php ![]() | |
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? Web Development javascript php | |
<script type="text/javascript"> $(document).ready(function () { var e = document.getElementById("ddlCategory"); var value = e.options[e.selectedIndex].text; if(value == "Others") { $('#Other').show(); } else { $('#Other').hide(); } }); </script> <table> <tr> <td><asp:Label runat="server" Text="Category: " /></td> <td><asp:DropDownList ID="ddlCategory" runat="server" ClientIDMode="Static" /></td> </tr> <tr id="Other" style="display:none"> <td><asp:Label runat="server" Text="Others: " /></td> <td><asp:TextBox ID="txtOthers" runat="server" /></td> … Web Development javascript | |
I am learning JSP, and have developed a books application, which displays the book-id,title,author and price. There are seperate text box for each of the field, whenever the user fills the form and hits submit button the value must be inserted into my database. If I try to submit it … | |
I am building a cms I want to iplement the ability to hide pages. I have a row in mysql named hidden which stores the values 1 and 0. 1 will allow the page to be shown and 0 will hide it. The defalut value is set as 1. When … | |
I want to sum the values of the 'countryamt' column and echo it out. The inputs are coming from the 'matconfirmation.php'. I stored all the inputs in an array, but i dont know how to sum the values up. The bold part of the code was what i tried doing, … Web Development css-bootstrap html-css javascript-jquery microsoft-access php ![]() | |
Hey guys i need your help, i have a project "Web information extraction/gathering/scraping system" - An information extraction system extracts and gethers information from multiple websites, then; it organizes, formats and presents the information to the users. it helps users to find information on particular things (such as flight tickets, … Web Development php | |
Any idea to doing this? i tried many solution through google, it still can't solve my problem I want fixed(*Freezed*) header, and data only shown 5 items.. Thanks for in advanced. Web Development asp.net | |
This code snippet can be used to get the current time in 12 hour format using JS Web Development javascript |
The End.