52,566 Archived Topics
Remove Filter ![]() | |
I have a mySQL that is continuously being added to and I need to make an AJAX function that checks the database periodically and only returns the results that it hasn't seen before. Web Development javascript mysql php | |
I am using following code to generate menus [CODE]<?php $menu = array(); $menu['home'] = 'Home'; $menu['mypage'] = 'My Page'; //Add in the format of: $menu['page name'] = 'Page Title'; $title='Home'; //Default title function generateMenu() { global $menu,$default,$title; echo ' <ul>'; $p = isset($_GET['p']) ? $_GET['p'] : $default; foreach ($menu as … Web Development javascript | |
you may download [URL="https://skydrive.live.com/embedicon.aspx/.Public/CLC.zip?cid=3e21e1e16478087a&sc=documents"]this[/URL] to see the whole thesis program. I'm more for now on functionality than design interface. this about a problem on the get_value.php to the receipt.php the problem: I can get now the value using session functions but the problem is.... the list of checked items from … Web Development database-design php session | |
I am trying to create a movie review website, the majority of my site is coming together. I do not know how to create a script that will display user reviews on the website. Here is what I have so far for the form, how do I display user reviews … Web Development php | |
l am writing XML to a file. Everything works fine, however if l view the XML source the first line is always indented. Cant seem to figure out the cause. Thankx in advance for the help | |
Can anyone check out this script? My ajax code doesn't run and the xmlhttp.status is always 0 though it is always 200 in my other scripts. I am sure there is something wrong with my script. Can anyone help me fix it? I tried to debug it for hours but … Web Development php | |
Hi, I have made an image gallery which all in all is working fine. However, there is the option of to play through the images using setInterval to change the image every 8 seconds. After all images have been preloaded, this works fine. In its current set up however, the … Web Development image javascript javascript-jquery | |
So I have a client that is interested in something like this, well to be more specific... A login area of a website, it could be it's own application/page, doesn't necessarily have to be integrated into the website. A person can login or register. The admin can add content to … | |
Hi, Am new to javascript, i have two fields 1. Start time ( hh:mm:ss Am/Pm ) 2. End time (hh:mm:ss Am/Pm) i want to validate it. Start time should be always greater than end time. Eg: start time : 10:00:00 Am end time : 09:00:00 Am It should alert the … Web Development javascript | |
Hey Peeps! been doing a bit of jquery latley and decided to implement some into my live site, now i know this is probably the most basic thing that i am missing, but i need some sort of stop() in my code, thing is, im not too sure where to … Web Development javascript javascript-jquery | |
after designing a member area in my page i was now locked with this problem. i want each member, have his own data(like his own profile,his own messages etc) presented to him any time he is logged in. pls i will be very grateful if some one can help me Web Development php | |
i m using google map version 3. i want to customized the map type control show top-right corner.. i want to show all the type (map,statellite,terrain,earth) in one horizontal line (like its shown in V2). kindly guide me little.. thanks Web Development google javascript seo | |
hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... [CODE] <?php … Web Development javascript | |
Hi.. I want to show a progress bar when downloading a file. In my script I am clicking a hyperlink and waiting for a while to appear the download box. I want to display a progress bar before appearing the download box. I had seen many examples for displaying the … Web Development php | |
![]() | I am trying to let users upload .flv files that will be played through flow player. While I am not getting an error, the file is not copying to the ftp folder. The upload script I have is [CODE] if ($_FILES["file1"]["type"] == "video/flv") { $path1 = "uploads/".time().'.'.$HTTP_POST_FILES['file1']['name']; $path1 = str_replace … Web Development file-system php |
Background: I have a Drupal site with around 150 users. Each of those users has a spreadsheet that they send to me weekly. I've uploaded all of the spreadsheets to an Editgrid account and I've created a custom drupal block to display there Live spreadsheet and edit it so removing … Web Development office-suite php | |
the problem here is When I check 1 checkbox there's no mysql error but if the checked checkboxes are more than 1 then an error occurs. it only takes the first but the following checkboxes occurs an error. the code can be downloaded here. the file of the problem is … Web Development php | |
File name:index.php [CODE=PHP] <html> <head> <script type="text/javascript"> function showUser(str, query) { if(document.getElementById("Author").checked==true) { query="author"; }else if(document.getElementById("bookname").checked==true) { query="bookname"; }else{ document.getElementById("textHint")="please select"; } if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } … | |
Hello guyz, I'm glad I finally back here. I need help using the preg_match function. I am scraping url and I need to get the specific value from the html tags. Here is the string [I]<p><b>1,664</b> Referring IP addresses</p>[/I], I need to get [I][B]1,664[/B][/I] How can I achieve it using … | |
Hello all, I've been struggling with this for the last 3 days and just can't seem to figure out where the breakdown is occurring. I have successfully extended an existing class and have added a new property to that class. However when I go to pass the value into the … Web Development asp.net | |
hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... <?php mysql_connect("localhost","root","")or … Web Development javascript | |
I have the following code in a .js file: [CODE=Javascript] function clearVillage() { /*Do Something...*/ } [/CODE] Now in my HTML page generate through PHP, If I call this function through a link like this: [CODE=HTML] <a class="fg-button ui-state-default ui-corner-all" onclick="clearVillage();" >Clear Village</a> [/CODE] It works. However, if I replace … Web Development javascript | |
Im sure most of the php developers here knows how to use mysql or mysqli now my question is Which is better? Mysql or Mysqli? And why? please answer me guys. Web Development php | |
I hope the title made sense. ok ive got a table in a PostgreSQL database that has a few coloumns in it. What im tryting to do is the following: [CODE]<?php $totaltimetodayresult = pg_query($link, "SELECT SUM(acctsessiontime) AS totaltime FROM radacct WHERE acctstarttime LIKE '%".$today."%'"); while($totaltimetodayarray = pgfetch_array($totaltimemonthresult)){ $totaltimetoday = $totaltimetodayarray['acctsessiontime']; … Web Development php postgresql | |
Hi I'd like someone to just give me a hand getting a form to open up facebox and submit the form details via that. Ok they process I'm looking for help on is this When a user enters the details into the contact form and clicks "submit" it needs to … Web Development javascript seo | |
pls help me fix the error. What and where is the problem? Thanks for the help! Here is the error message >> [B] 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 ' )' … | |
how can i populate javascript array value from my text box, suppose i have a array like this var a=new array("1.00","2.00"); instead of 1 2 i want to put text box value in there,which user will enter. thx in advance,really appreciate it. Web Development javascript | |
Im view total form total = harga * unit; View Sample Images : [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319"]http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319[/URL] [CODE]<table border="1"> <tr> <td bgcolor="#6699FF">jenis</td> <td bgcolor="#6699FF">harga</td> <td bgcolor="#6699FF">unit</td> <td bgcolor="#6699FF">total</td> </tr> <tr> <td><?php include"koneksi.php"; $result = mysql_query("select * from tpintu"); $jsArray = "var prdName = new Array();\n"; echo '<select name="prdId" onchange="document.getElementById('hargaBarang').value = prdName[this.value]">'; while ($row … Web Development php | |
Hi, I am trying to let my users upload videos on my website by using a Form, but when I try to upload a video it times out. How can I write a php script to make this work? -OR- Do I need to change the PHP.ini file to make … Web Development php | |
kindly tell me is this statement is right? i want to use isset statemnt with or condition... if( isset($_GET['P_Price']) || isset($_GET['P_Category'])) ........... Regards.. Farhad Web Development php | |
Hi to all i have done validation on my HTML page but the problem is that when i press the submit button it show the alert message that name field is not specified but when i OK that message then data enter into the data base without specifying the name … Web Development html-css javascript | |
hello I am looking for a code where i can put a photo in mysql data basic so when the dj name comes up on the home page there photo comes on to if this can be done? Web Development php | |
hello .. m trying to get/fetch the database value into dropdown box as a selected value in the dropdown box using PHP script and mysql - phpmyadmin database .. but m having problems in it .. here is my script which i m using .. try.php <body> <?php $conn = … | |
please some one help me,i have created this code for searching from database but the problem is i am getting an output without even searching,i am no php expert,so please guys help me. [ICODE]<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" onSubmit="return validateThis(this)"> <!-- Sending Search Keyword to "search_handler.php" --> <p> <label … | |
i have receive a link last 4 days ago,and i want to see it again then when i go to the list of messge, the links disappear,,i just want to know it why Web Development php | |
Hi, I am new to ASP.Net. I would like to know if there is a way by which I can Call a Serverside script through a Javascript. Or else is there a way to Postback a page through a javascript function. Thanks in advance Thanks, NaveenChander Web Development asp asp.net javascript | |
Hi We have two identical web servers in a farm and I need them to be able to share Session variables as I do not know which machine the user will be using at any given time i.e. if a user where to log in to a site on server1 … | |
Hi, I am receiving the following error when i run my code on localhost: [CODE] Error creating database: Can't create database 'library_db'; database exists Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in C:\Program Files\EasyPHP-5.3.6.0\www\databaseEx.php on line 45 Warning: mysql_query() [function.mysql-query]: A link to the server could … | |
hi all, i have written a code in php for inserting and deleting multiple records using check boxes."test" is the database name. "emp" is the table name which contains the following records in my database. empno empname desig 1111 raju pilot 1112 ram chef 1113 ramu doctor 1114 paul engineer … Web Development php | |
Hi All, I have a section of my site that allows users to upload and download files. For security issues, We use a com object to take the file as a binary stream and store it on our network off of the web server (under a different randomly generated file … Web Development asp.net file-system microsoft-office | |
Hi to all i have done validation on single fields but i have to apply validation on 3 text field that at least one of thre is filled .i make a code but that logic doesnot work .. html code [CODE]<html> <head> <script type="text/javascript" src="jstest.js"></script> </head> <img src="idtech_logo.jpg" alt="logo" width="1500" … Web Development javascript | |
hi all i have been inserting records in to database using php using the below program which is saved as "insert.php". but it is displaying the following error [B]Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\insert1.php on line 18 [/B] dont no what went wrong. can u tell me how … Web Development php | |
Need help with this. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\pixels\index.php on line 35 [code] <?php include_once ("config.php"); ?> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel=StyleSheet type="text/css" href="main.css" > </head> <body class="main"> <div class="outer"> … | |
I need some help setting up the following full php script a well as DB available on request, 46 pages in text format. Basic requirements: These 2 files needs the export to pdf function [url]http://www.lifestyle-solutions.biz/jeanadmin/print-[/url] program.php?idprgramdet=40 [url]http://www.lifestyle-solutions.biz/trainers/print-[/url] program.php?idprgramdet=40 Basic requirements: 1) 2 exercises per page (exercise plus progress report block) … | |
Hello, In CFQUERY operations, can someone advise as to the following: 1. What data types REQUIRE single quotes for UPDATE and INSERT statements? * We are using MS SQL 2008 R2 with CF9 2. Is it best practice to use CFQUERYPARAM for EVERY statement now days? I searched everywhere but … Web Development coldfusion | |
Hi all. I have a dynamically generated HTML page using PHP. I create my PHP variables and then have them in line with my HTML like so: [CODE] <tr> <td align="right">Restaurant Subtotal</td> <td align="right"><strong><? $subTotal = getSubTotal(); echo money($subTotal);?></strong></td> </tr> [/CODE] I have a need to send the generated HTML … | |
How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width … | |
Hi all the problem lies with the createJSON function for some reason it is breaking no idea why though. please advise... [CODE]<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> <script type="text/javascript"> function validateForm(){ var x=document.forms["myForm"]["username"].value if (x==null || x=="") { alert("username must be filled … Web Development html-css javascript json | |
I have a uload script that saves PDFs to the DB, and i have another page, where I want to read the PDF file, but the latter is not really happening.. AM I DEFINING MY PDF_DIR CORRECT: [CODE] define('PDFS_DIR', $_SERVER['DOCUMENT_ROOT'] .'includes/pdfs'); [/CODE] This is the read_pdf.php file: [CODE] <?php require_once("includes/config.php"); … Web Development file-system pdf php |
The End.