52,566 Archived Topics
Remove Filter ![]() | |
I don't how to confirm multliple records at once by checkbox? [CODE] <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql1"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT … Web Development php | |
hey guys i get this error when trying to execute a stored procedure in my SQl DB [CODE] Warning: mssql_query() [function.mssql-query]: message: SELECT failed because the following SET options have incorrect settings: 'CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS, ANSI_PADDING'. Verify that SET options are correct for use with indexed views and/or indexes on computed … | |
Hello Everyone; I`m Beginner Javascript Developer and I Have a small problem with parseInt method the code is below: [CODE] <script type="text/javascript"> window.onload = Rectangle; function Rectangle () { var e = document.getElementById('Rectanglee'); var w =parseInt(e.style.width); var h =parseInt(e.style.height); alert (w); alert (h); } </script>[/CODE] the code is supposed to … Web Development javascript | |
Hello! This is my first post. :) Is it inappropriate to place many <input type="hidden".... to submit? Here's an example: [CODE]<form action="/" method="post"><input type="hidden" name="ad" value="0x2443ae42"><input type="hidden" name="ad" value="0"><input type="hidden" name="ad" value="3"><input type="hidden" name="ad" value="test"><input type="submit" value="apps"></form>[/CODE] Some browsers seem to not send back all the data. My guess is, … Web Development javascript | |
I found this code and have implemented it with limited success. It's the Java bit that's baffling me. The goal is to produce a dropdown box for the first instance of the shiptogroup (there are five total) and a blank cell for all other instances. When a selection is made … Web Development javascript | |
i need to know weather or not there is a way to put the cursor below (z-index wise) a div element or make it so that you can click through the div element. Web Development javascript | |
This is confusing. I'm creating an index for a MySql table of structure "yyyymm", where "yyyy" is year (e.g. 2011) and "mm" is month (e.g. 02). I acquire them with: [CODE]$yyyy = date('Y', time()); $mm = date('m', time());[/CODE] I subsequently convert them to strings with strval and concatenate them (I've … Web Development php | |
I currently use Sphinx search, and am attempting to sort my results in time segments mode, which means time segments in descending order and then relevance in descending order. Currently I use SPH_SORT_RELEVANCE, and it works fine. But every time I switch to time segments mode, it returns zero results. … Web Development seo | |
Hi, I'm pretty new to CakePHP, and have been managing so far. I've created a scraper that scrapes TV.com for episode information (episode number, airdate, title, description). The scraper works fine, and returns an array such as: [CODE]Array ( [0] => Array ( [name] => Stowaway [number] => 17 [description] … Web Development flash php programming-construct session | |
Hello, Im trying to store 4 rows of delimited text from a text file( abc, abc, abc, abc abc, abc... ... ...) into an array and loop each line of the array and print it, but its not going well. [code] <? $file1 = "properties.txt"; $filedata = fopen($file1,"r"); $array1 = … Web Development php ![]() | |
I'm having trouble with some basic AJAX, I'm very new to it but have found a similar chunk of javascript that I've altered to my needs (kind of). I have a <div> that I want to change upon the click of a link. It contains a list of entries, ordered … Web Development javascript | |
Good day all: I need to search my db table for all services called "oil change" which where inserted 85 days ago (based on an inserted date column in the table) and display those results. Here's what I have: Mysql Table id (auto) servicearea carid customerid dateofservice An example of … Web Development php | |
Hello i am trying to create a script that will allow for the user to click a link and pop up page opens up with the content from the same page e.g [CODE] <?php $option = $_GET['option']; ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function topWindow(){ popup = window.open("page1.php?option=<?php echo $option; ?>","scrollbars=no"); … Web Development javascript php ![]() | |
Hello friends, hope this is the right site to post this, anyway let me tell you what's my problem. I'm building a site that uses php, javascript where necessary and AJAX, my problem is that i need to set a cookie (the cookie works perfectly), but i need it to … | |
Hi i am looking for a chat for my webpage, doesnt have to be anything special just a basic chat where members can talk. I need it to be secure too so only members can chat on it and not random guests. Even if you don't have a code, a … Web Development php | |
Hi people :) I'm in the process of developing a website where there is going to be music on. (Dont worry, the users that will come to the website already know that there will be music - it's the point of the website). But I'm thinking that it would be … Web Development javascript | |
Hi, i have the below code for form. At one time, when i went to my page i saw some data/link in my site. i guess a hacker entered some script in data field. someone pls help me how i can protect my page. ------------------- <form name="myForm" action="gdform.php" method="post"> <input … Web Development php ![]() | |
Following code: [CODE=php] <?php $test_array = array(); $test_array['string_index'] = "data in string index"; $test_array[] = "data in index 0"; $test_array[] = "data in index 1"; $test_array[] = "data in index 2"; foreach($test_array as $key => $val) { if($key != 'string_index') { echo $val."<br>"; } } ?> [/CODE] gives result: data … Web Development php | |
Hi, everyone, First of all, I wasn't sure where to put this tread so I apologize if it is in the wrong place... I am developing a web application using jsp, java and Tomcat, so I figured this is as good place as any... I am in need of help. … Web Development java-jsp web-browser | |
Hello , I'm trying to set 3 different tables using url variable from a differnt page. When a certain var is selected , the page should display a certain table. each table is differed by name and im using an IF statement. My issue is that only the first echo'd … Web Development php | |
This code is for a stand-alone file, named "thumbnail.php" or something similar. Once uploaded to your server, it can be called from inside an IMG tag. There are four options for this script without modifying anything. [LIST=1] [*]First, you can resize the image to a percentage of the original, as … | |
Hi, On my website I have a group of tables (about 40). I want visitors to be able to search all these (identical) tables at the same time. Right now I'm using MATCH and UNION to do a FULL INDEX search on all tables. The problem is that this method … | |
Hello there im new to php and for some reason im having trouble with the String variables, every time i change the $light variable it doesn't = the supposed String and just always echo's "stop". [CODE]<html> <head> <title> Conditional Statement Practice </title> </head> <body> <?php extract($_GET); /* Put your PHP … Web Development php ![]() | |
Wondering if anyone is able to help me locate a specific set of templates. I saw them on the net and I lost the link. Now I want to buy them. They are great designs and are about 5 of them in the following categories (from memory): Web Design Web … Web Development php seo web-design wordpress ![]() | |
Here is sample tables [B]Case[/B] Case_ID AC_ID ASSET_ID [B]Action[/B] Action_ID Case_ID Step_No Date_Started Date_Completed Status [B]Procedure[/B] P_ID Step_No Name AU_ID AC_ID 1 1 Step1a 1 1 2 2 Step2b 1 1 3 3 Step3c 1 1 4 1 Step1a 2 1 5 2 Step2b 2 1 6 3 Step1c 2 … Web Development php | |
jsf page: [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page</title> </head> <body> <h:form> <center> <br><br><br> <h:dataTable id="dt1" value="#{tableBean.perInfoAll}" var="item" bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" rows="4" width="50%" dir="LTR" frame="hsides" rules="all" summary="This is a … | |
Hi guys, I am using a number of checkboxes and I want to get their value using POST method, but my problem is that I use two buttons at the end! Buttons "Accept" and "Reject" If accept is pressed I want to know it so I can make different process … Web Development php | |
Hi there I am hoping that someone could help me with this... I was trying to redirect a page using header(); after successful login. I am going to share my codes: Login.html [CODE] <html> <head> <title>HCPSMSHS: Grade Viewing System</title> <link rel="stylesheet" href="css.css" type="text/css" charset="UTF-8" media="all"> </head> <BODY> <center><div id="header"></div></center> <center> … | |
ok so i have this in query: [CODE] $(document).ready(function(){ $("input#copy").click(function(){ if ($("input#copy").is(':checked')) { // Checked, copy values $("input#owner_address").val($("input#subject_address").val()); $("input#owner_city").val($("input#subject_city").val()); $("input#owner_state").val($("input#subject_state")); $("input#owner_zip").val($("input#subject_zip").val()); } else { // Clear on uncheck $("input#owner_address").val(""); $("input#owner_city").val(""); $("input#owner_state").val(""); $("input#owner_zip").val(""); } }); }); [/CODE] That works fine for input:text boxes but doesnt work for dropdown menus. How to … Web Development javascript | |
Hi all - I'm looking for a flexible way, via ajax to verify if a *field* is available. I found a script that works: [url]http://web.enavu.com/tutorials/checking-username-availability-with-ajax-using-jquery/[/url] The problem is that this is a little unwieldy: for every field (input) that you want to verify w/ajax you have to have a different … Web Development javascript php | |
i am trying to pass a number of values from one page to another, i have managed to pass both the category ID and sub category ID, however i am unable to pass the "product_id" value. as you can see from below i am getting the product_id using a stored … | |
Well, I am getting moving on my site, finally got about all the main pages dynamically loading, and I have rand into a problem with my registration problem. I don't know what happened but I seem to be getting this strange error: [B]Fatal error:[/B] Cannot redeclare generatehash() (previously declared in … | |
Hi All, I'm working on a web app in ASP.net with VB.Net on Visual Studio 2010 (.Net Framework 4). I'm trying to use a datarepeater class to display results from a query on the web page so I coded away exactly as I used to in Visual Studio 2008. However, … Web Development asp.net visual-studio | |
Hi! I'd like to make this mysql command into a script and run it as a cron: [CODE]DELETE FROM xx_posts WHERE post_content=''[/CODE] However, I don't know how. So the question is what should the php file look like to access and delete the empty wordpress posts from the database? Thank … | |
Hello there i am having trouble on how to compare the password of the input and the one in the DB since the one in the DB is encrypted with the code below for registration i just used a stored procedure in the db and called it in the php … | |
Hi i am not sure if this is PHP but what i am looking for is an API that can track a players info in a game. All of his levels gained, all of his experience gained and so on. I have been talking to players from another game i … | |
I need some quick help, Please! This is probably very simple but I'm making it hard. My code displays 2 totals for a month, this year and last year. But, if the month's record doesn't exist it picks up the year's start total for which I have a simple If … | |
I am writing a code to do a google search. i am actually appending the string to the end of the google search string [CODE] <body> <form name="f" action="http://www.google.lk/search?" target="name3"> <input name="name1" type="hidden" value=""> </form> <center> <iframe name="name2" width="100" height="300" src="somePage.html" target="name3"></iframe> <iframe name="name3" width="100" height="300"></iframe> </center> </body> [/CODE] This … Web Development php ![]() | |
Basically, I am working on a joke site that allows users to submit jokes. When displaying the jokes, I want to use a function called joke_author, which will automatically find the authors username based on the authorid of the joke. in both my users table and jokes table, the user … Web Development php | |
I have a php script that echoes results from a search. Generally I have no problem getting the results in a table but for some reason I can't get these scripts to do that. I figure its a small error. I'm going to put in the code but if you … | |
I have an sql database and an html form. I want to be able to automatically change the value in a checkbox when a radio button value changes. Here is some partial code with details in red as to what I want to do: (the red text is not actually … Web Development php visual-basic ![]() | |
Basically I'm making a script that sends the user an email on register and they have to click a link in the email to activate their account. But in my activate page their seems to be an error in my coding and I've checked it over but I can't find … | |
can i get some help sending the attachment pls cause i think something from my code is missind and that's why can't send attachment. [CODE] <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $message = $_POST['message']; $attn = $_POST['attn']; $subject = $_POST['subject']; … Web Development file-stream php ![]() | |
i am wring a website and i need help with some javascript. first ill give you the code [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type='text/javascript'> function showdiv(name){ var divname=name; show(); } function show(){ document.getElementById(divname).style.display='block'; document.getElementById(divname).style.overflow='visible'; var lastdiv=divname } function closediv{ if (lastdiv) { document.getElementById(lastdiv).style.display='none'; … Web Development javascript | |
Hi to all, After comming alert, cursor should not go to the next field. i am a beginner to script functions. can any one give me solution . [CODE] <script> function validateDate(strdate) { if(strdate.length < 8 || strdate.length > 8) { alert("Error:Enter Valid Date"); } else { ValidateNum(strdate); } } … Web Development javascript | |
hi... i have released one application.. now i have to maintain the document for the released application.. which is the best method to write the information such as in word,or pdf or excel or is there any way to keep the document..? so that every one should know that the … | |
First I want to thank you for the help and I am somewhat new at C# so forgive me if I have something listed wrong. This is what I got: I am working on a school project designing a car dealership website. I have an inventory list that allows you … | |
Hey guys, Do you guys have any idea on this error? This errr showing up on my Contact Form before you input the data field like name, address etc.. Is there a way to fix it? [CODE]Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started … ![]() | |
i am trying to submit a form in javascript, and then process it in php. and it will not work. can you please help? this is the code: [CODE] <?php if ($_POST['markcomplete']=='yes'){ $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } } … Web Development php |
The End.