17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for emilio

hi my code is using javascript to dynamically build an html table and fill the table with html buttons. my code: [CODE=javascript]<html> <head> <title>javascript1</title> </head> <script lnaguage="javascript"> function Init() { var table = document.createElement("tbody"); var newrow,newcol,tmp; var array = new Array(16); for (var i=0 ; i<16 ; i++) array[i] = …

Web Development javascript
Member Avatar for emilio
0
339
Member Avatar for Roebuc

I have an AJAX script that works fine the first time in IE. For example, if you go through the form and never change your mind, everything updates like normal. However, if you decide that where you checked yes you shold have checked no, the objects do not update. The …

Web Development javascript
Member Avatar for Roebuc
0
83
Member Avatar for noman78

How can I send a Crystal Report to Email through Active Server Pages (ASP)? if some one can post a sample code for it, i will really thankful to him. i am using seagate 8.5 and asp 3.0. thankyou in advance regards

Web Development asp email first-post
Member Avatar for peter_budo
0
83
Member Avatar for hhamdan

Hello every body, i have a table has username and encrypted password, and i want to write it in different table and i want to decrypt the password filed and i am using this code [B]I am selection the data from the login table[/B] [ICODE]<cfquery name="dec" datasource="ds"> select * from …

Web Development coldfusion
Member Avatar for arrgh
0
126
Member Avatar for designingamy

Hello everyone! I am new to JavaScript and have been using PHP, but needed to use a dynamic form for information about County/State. Here is part of the code (keep in mind I did all 50 states this way-that's well over 3000 counties): [code] <script language="JavaScript" type="text/javascript"> <!-- //first combo …

Web Development apache javascript php session
Member Avatar for designingamy
0
186
Member Avatar for pocnib

I am trying to insert a date into a mysql table field using [CODE] <?php $date=date(Y-m-d); mysql_query("INSERT INTO table VALUES('$date')"); ?> [/CODE] but when I open up mysql and run SELECT * FROM table; it returns a date value of 0000-00-00 instead of the current date at time of insert. …

Web Development php
Member Avatar for danishbacker
0
141
Member Avatar for veledrom

Hi, I have downloaded Drupal but i have some questions. 1. I have read the installation but didn't get it. I need help to install it. I run WIN XP with WAMP server. 2. Can i use it in my local compuer with WAMP for test purposes. I just need …

Web Development php
Member Avatar for sikka_varun
0
161
Member Avatar for veledrom

Hi, How do i check if any of these checkboxs are selected. If nothing is selected then invalidate the form. Javascript thanks [code] <input type="checkbox" name="MYcheckbox[]" value="0"> <input type="checkbox" name="MYcheckbox[]" value="1"> <input type="checkbox" name="MYcheckbox[]" value="2"> <input type="checkbox" name="MYcheckbox[]" value="3"> [/code]

Web Development javascript
Member Avatar for brechtjah
0
159
Member Avatar for JayJ

I'm trying to grab a value from a mySQL database and put that value on the end of a url path e.g. http://url.com/$valuefromdb Is there any tutorials to how to do this or can anybody recommend how to tackle this? Kind Regards JayJ

Web Development php
Member Avatar for sikka_varun
0
112
Member Avatar for ina_rizoaica

Hi, hope you can help me. I am working with a database (mysql) already created, pictures were stored in a longblob field, but this is the only field related to pictures (so I have no info about their size). I manage to extract and display the pictures - using a …

Web Development image php
Member Avatar for ina_rizoaica
0
102
Member Avatar for Sereal_Killer

I have a basic problem i dont know where the error lies. i can create a class Persoon and fill in all its values before its created . but for some reason when i call up the information i get the current Date as the birthdate and not what i …

Web Development api javascript
Member Avatar for Sereal_Killer
0
100
Member Avatar for veledrom

Hi, I created a XML file and trying to write into it. It does write but, without the values from database. For example code below writes only <Title></Title> without the value. It should be <Title>My name</Title>. I do echo and the variable is full. Value [code] ........ $xmlFileName="test.xml"; $process=fopen($xmlFileName, 'w'); …

Web Development php xml
Member Avatar for veledrom
0
81
Member Avatar for sierrasoft
Member Avatar for divyasrinivasan
0
138
Member Avatar for hhamdan

Im trying to get the ip address for our company customer and save it in the DB just for statical thing.

Web Development coldfusion
Member Avatar for hhamdan
0
134
Member Avatar for designingamy

Hello all, I am having a hard time trying to figure out why I can't get my code to successfully check my email address. It seems I can plug in anything and it won't give me an error. This is my code for that line: [code] <?php session_start(); if((!empty($_POST['email']) && …

Web Development php
Member Avatar for designingamy
0
85
Member Avatar for kvdd

Hello people, I want that when I mouse over a checkbox, that it is checked. I have now the following code: [CODE=javascript] <script language=javascript> function checkit(myform, name) { var xx = document.myform.name; xx.checked = true; } </script> <form name=myform27> <input type=checkbox name=mycheck onMouseOver="checkit(myform27,mycheck)" value="1"> Checking </form> [/CODE] But this does …

Web Development javascript
Member Avatar for kvdd
0
2K
Member Avatar for servis

Hellow evey body, I have to use same sql query frequently on diferenet php scripts pages in a appliction, i want to put this query in a funtion to use it where i want but this funtion is not working at all. i am unable to figure out the problem, …

Web Development php sql
Member Avatar for servis
0
139
Member Avatar for designingamy

I'm having a hard time with sessions. I have a long form on 3 different pages and then a preview page of everything entered. I created the code to store the session variables on each page but on the preview page it comes up empty. I am using session_start(); on …

Web Development php session
Member Avatar for designingamy
0
84
Member Avatar for divyasrinivasan

pls give me the complete code for it ..i tryed but not getting the output..pls help..iam pasting the code here but no output [code=aspnet] SqlConnection cn = new SqlConnection(ConfigurationSettings.AppSettings["con"].ToString()); protected void Page_Load(object sender, EventArgs e) { Response.Write("sql is connected"); SqlDataAdapter da = new SqlDataAdapter("select countryid,countryname from countryname", cn); DataSet ds …

Web Development asp.net dataset
Member Avatar for terrible
0
147
Member Avatar for servis

Hellow, Can we prevent exposing java script and css in source code of web page on the user machine??? please if anybody know about it???? shuja

Web Development html-css javascript
Member Avatar for jbennet
0
192
Member Avatar for stevehart808

Hi, This script works great when uploading photos but if I try mp3's I get 'Error uploading file' Any ideas would be much appreciated! Thanks [code] <? $uploadDir = 'mp3/'; include ("../includes/database.connect.php"); if(isset($_POST['send'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // get the file …

Web Development php
Member Avatar for stevehart808
0
207
Member Avatar for vikingGirl

I have an image that I have created using the new image draw functions, but I need to have separate areas of the image as links to other pages. I know that the html map tag can be used to do this, but the problem is I can only get …

Web Development coldfusion
Member Avatar for vikingGirl
0
82
Member Avatar for designingamy

This may seem like a dumb question...well, it probably is. I am trying to write code for form validation. I wrote the code to check the information and then if everything looks okay, to use header ("Location....... and send them to the next page, but of course I get the …

Web Development php
Member Avatar for designingamy
0
82
Member Avatar for trtcom1

Hi, I need somebody to have a look at my code below and help to see what I have done wrong. I have 3 tables:[B]Student[/B] [I][COLOR="Red"](studentNum,firstName,lastName)[/COLOR][/I], [B]course[/B] ([COLOR="Red"][I]courseID,courseTotalCapacity[/I][/COLOR]), [B]course_allocation[/B] ([I][COLOR="Red"]studentNum,courseID[/COLOR][/I]). The AIM is to allocate students to 2 classes (courses 101 and 102) as long as there is available space …

Web Development mysql php
Member Avatar for trtcom1
0
168
Member Avatar for Traicey

Guys I have a dropdownlist control with categories so when I select something from ddlCategory I wana display all the products fall under that category in a datagrid but I dont seem to get that right... here is the bit I have done [CODE=C#] protected void Page_Load(object sender, EventArgs e) …

Web Development asp.net dataset
Member Avatar for Traicey
0
206
Member Avatar for Traicey

I have the ff error and I have no idea what is [COLOR="Red"]Line 1: Incorrect syntax near ','. [/COLOR] [COLOR="Red"]Exception Details: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near ','.[/COLOR] Source Error: Line 101: dgItems.SelectedItem.Cells[0].Text; Line 102: [COLOR="Green"]the application point the error in the ff line that fills in the dataset[/COLOR] [COLOR="Red"]Line …

Web Development asp.net dataset
Member Avatar for Kusno
0
120
Member Avatar for squarkman

I have an aspx form. It works. It submits. Now, without going into ANY OTHER FILE, I would like to add a field or two. Is this possible? I've tried it but those fields never send their data I've tried copying a field and changing NAME to NAME2 but still …

Web Development asp asp.net
Member Avatar for Kusno
0
71
Member Avatar for squarkman

Is there a way to see why this particular javascript validator is not affecting the submission of this form. It submits with all fields empty. Here's the simple code [code=syntax] <?php if(isset($_POST["Submit"])) { require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); $toaddress = "rocky@airedale911.org"; //Change this to the email address you will be …

Web Development javascript
Member Avatar for brechtjah
0
301
Member Avatar for PomonaGrange

Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address …

Web Development email file-system php
Member Avatar for PomonaGrange
0
153
Member Avatar for cwarn23

I have just started learning php-gtk 2 but am a bit stuck. First is that are there any php-gtk 2 debuggers or error loggers that I can use because at the moment, if there is a bug in my script, the exported exe file made from my php-gtk script is …

Web Development php
Member Avatar for martin5211
0
138
Member Avatar for ajithraj

haii friends.. i want to search for a file, which resides in my own system using jsp...that is, when i click a button, a search brower is to be displayed which showing all my folders in my system and from that i want to search for the needed file...Is this …

Web Development java-jsp
Member Avatar for javaAddict
0
67
Member Avatar for cwarn23

Hi and I am trying to embed a modified version of a javascript/css script from [URL="http://www.javascriptkit.com/script/script2/dbmenu/#"]http://www.javascriptkit.com/script/script2/dbmenu/#[/URL] but since have made a few problems. At the moment, my script is only compatible with Internet Explorer 7 (not compatible with earlier versions) and can anybody help me debug the top menu at …

Web Development cms html-css javascript session
Member Avatar for cwarn23
0
94
Member Avatar for squarkman

I have a template for web pages which is asp.net Inside the content object or whatever it's called, it wish to place a simpe PHP form. I tried it and the PHP code doesn't seem to be recognized as PHP but as text. Can this NOT be done? [code=syntax] <%@ …

Web Development asp.net html-css php
Member Avatar for serkan sendur
0
227
Member Avatar for kaushik259106

Guys, I was going through the book called Ajax for Dummies and got the following example. [CODE]<html> <head> <title>Ajax at work</title> <script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject(“Microsoft.XMLHTTP”); } function getData(dataSource, divID) { …

Web Development javascript
Member Avatar for egbert
0
207
Member Avatar for kibosh

Hello, I'm trying to do something I thought would be very simple. I need to display a "degree" symbol as part of my PHP output, and I can't figure it out. I'm trying to use the ASCII &deg code. If I try: [code] echo &deg; [/code] I get an error. …

Web Development php
Member Avatar for Aamit
0
2K
Member Avatar for Kavitha Butchi

Hi All, I am trying to set background image. I retreived it from the database into $xyzimage variable and then trying it to display in the <body > tag. When i am trying to display it a tabel cell like <td> it works, but not in <body> tag. Is there …

Web Development image php
Member Avatar for Kavitha Butchi
0
2K
Member Avatar for justted

Hello everyone, I am setting up a section of coding in which I need to add and subtract certain values to a mysql field. However ...the code only seems to add negative numbers (-13.0) as a postive number to the database and its really confusing me now! :( What I …

Web Development mysql php
Member Avatar for justted
0
2K
Member Avatar for Kavitha Butchi

Hello all, For creating dynamic title tags, I tried using [code=php] <title>welcome<?php echo '$pagetitle';?></title> </head> <body> : : <?php : $pagetitle = '$row[2]'; ?> //closing rest of the tags. [/code] I get nothing displayed on title ! So i changed the code to, [code=php] <html> <head> </head> <body> : : …

Web Development mysql php
Member Avatar for Kavitha Butchi
0
210
Member Avatar for wad

[CODE]<script> function asd(){ var msg = document.getElementById('email'); alert(msg); } </script> <form> <input type='text' id="email"/> <input type='button' onclick='asd()' value='<' /> </form>[/CODE] onclike return that message Object HTML Input Element

Web Development javascript
Member Avatar for freeonlinedatin
0
91
Member Avatar for audigy642

I'm new at the whole code thing and I've never worked with this before but I have to fix it and I'm lost. When publishing an internal site I'm getting a RunTime error "Server Error in /Workorder Application." Runtime Error Description: An application error occurred on the server. The current …

Web Development asp.net publishing web-server
Member Avatar for audigy642
0
409
Member Avatar for addsf1

I keep getting this message what is wrong with my sacript??? Parse error: syntax error, unexpected $end in /home/sites/thefieldinggallery.co.uk/web/contact_form.php on line 65 here is the php script: [code=php]<?php /* subject and email Variables */ $emailSubject = 'Crazy PHP Scripting'; $webMaster = 'info@thefieldinggallery.co.uk'; /* Gathering Data Variables */ $nameField = $_POST['name']; …

Web Development php
Member Avatar for peter_budo
0
148
Member Avatar for parhs

Hello.. I couldnt find anything for this topic. I know how to connect to a mysql database and close the connection.But that means that for every script a connection should be established and closed. Is this right and ok for big projects? About 200 concurrent users for example; Having a …

Web Development mysql php
Member Avatar for pkpandit
0
129
Member Avatar for jobojo

I was wondering if someone could explain to me how to merge two arrays so that one is not simply appended to the other, but they need to be merged into one sorted array. I could simply append the two arrays and then sort the result, but that would be …

Web Development javascript
Member Avatar for jobojo
0
182
Member Avatar for Yipyo

I've got a simple function that that toggles the display of certain form fields. When I refresh the page, or post back, the display.value goes back to the original state. I don't know how to keep it on the selected state for refreshes and post backs. Please help. It's driving …

Web Development display javascript
Member Avatar for Yipyo
0
166
Member Avatar for asifkamalzahid

if i have file name "file" on my ftp server in some folder and i want to upload a new file with same name "file" at the same folder. so it will create problom or it will modifiy the existing file. i have the following error message 1 Warning: ftp_fput() …

Web Development php
Member Avatar for asifkamalzahid
0
125
Member Avatar for KilluaX

Hi, all What I am trying to do is to put a hyperlink on my jsp page. Then, when I click on the link, I will come to the linked page and as well the page can get some info from the jsp page. How is the code like? thanks.

Web Development java-jsp perl
Member Avatar for missalexa
0
4K
Member Avatar for nil_gh_80

Hello friends, I'm in a serious problem....... I have a change password application for registered users......I've applied javascript to check wheather fields are blanks or not but incase if someone press spacebar in new password and retype new password fields then it accept it . Now I want to block …

Web Development php
Member Avatar for nil_gh_80
0
122
Member Avatar for frank754

Normally, arriving at a PHP page with a data entry web form, you would have to click on any field you wish to change to go into data entry mode (the first field or any successive one), and then you can tab between fields (TAB to go forward or ALT-TAB …

Web Development javascript
Member Avatar for frank754
0
142
Member Avatar for Bob Arctor

Hello all, Newbie and running out of steam here. I have a form passing the checkbox value to a db. The db is essentially 2 fields news and id (auto-increment). I'm pretty baffled as how to extract the data. Ideally I would like to give each form submission a unique …

Web Development php
Member Avatar for Bob Arctor
0
440
Member Avatar for VernonDozier

I have some simple php code. It worked fine on the old server, but now I am getting an error on the new server. Both former and present servers are Linux. [code=php] <?php function ConfirmationEmail () { $from = "mo@abc.com"; $recipient = "bill@yahoo.com"; $cc1 = $from; $cc2 = "mo@gmail.com"; $subject …

Web Development php
Member Avatar for blocblue
0
193

The End.