17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mbarandao

Hello: I have a mysql table that stores customer transaction information. I want to sum column name "total" --which has values like this: $253.20-- only where the value of another column is "mossa01". For this, I passed the variable to the code via url and trimmed it. I then used …

Web Development apache client-server php
Member Avatar for mbarandao
0
114
Member Avatar for pjh1985

Hi, I am developing a dynamic website and i want to highlight the current page but i'm having some trouble in applying the styles to the links. Here is what i've got so far: [CODE] <?php function checkPage($fPage) { $fCurrent = $_GET['title']; if($fPage = $fCurrent) { $fStyle = 'class="activelink"'; return …

Web Development php
Member Avatar for pjh1985
0
181
Member Avatar for RoyalElite96

Hi, I do know a bit PHP and also had no probles with regular expressions, [I]until now[/I]. This is my code: [CODE] $string = ereg_replace("([\"](.*)[\"])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] . Why doesn't it work? It all runs fine when using: [CODE] $string = ereg_replace("([*](.*)[*])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] , but I want …

Web Development php regex
Member Avatar for RoyalElite96
0
207
Member Avatar for mbarandao

Hello: I'm using this script as an auto resize function for an iframe, but can't get it to work [U]in safari. [/U] [CODE] <script type="text/javascript"> <!-- function calcheight() { var the_iframe = document.getElementById('paymentHistory'); var the_document = (the_iframe.contentWindow ¦¦ the_iframe.contentDocument); if(the_document.document) the_document = the_document.document; var the_height= the_document.body.scrollHeight;} //--> </script> [/CODE] to …

Web Development javascript
Member Avatar for mbarandao
0
208
Member Avatar for xuexue

could you help me guys to translate this code from PHP MySQL to PHP ODBC. i'm having a hard time to run this page using the PHP ODBC which uses MSSQL connection. any help would be very much appreciated.. thanks in advance ^^ [CODE] <?php $return_arr = array(); $sql = …

Web Development mssql php
0
91
Member Avatar for genzoman

Hi, all. This is using jquery by the way. I have a list of ethnicities on a form for a person to enter that are checkboxes. One option is 'Other, specify'. When 'other specify' is checked, I would like a text box to pop up and disable the other boxes …

Member Avatar for genzoman
0
658
Member Avatar for Archenemie

I have been tasked to learn basic JavaScript as part of my collage coarse, and i've taken this section if code from the W3C website and commented it out. Is my interpretation of what this script is doing correct? Im using this script as an example of how JavaScript can …

Web Development javascript
Member Avatar for Archenemie
0
119
Member Avatar for gillivt

I have a form (testform.html)as follows: [CODE] <!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"> <head> <title>test</title> </head> <body> <form id="form1" method="post" action="datareturn.aspx" > <input type="text" id="FoxyData" name="FoxyData" /> <input id="Submit" type="submit" value="submit" name="submit" /> </form> </body> </html> [/CODE] When I enter data into the form field and …

Web Development asp asp.net first-post vb.net
Member Avatar for gillivt
0
265
Member Avatar for ujjval dave

hi guys, i have confusion about comparing dates in php. i want to compare birth date with current date. here is my code. i hope u will me to solved out this problem. thanks [CODE] <?php //code for get values from session session_start(); if(isset($_SESSION['I'])){ //this code will get email id …

Web Development php session
Member Avatar for ujjval dave
0
9K
Member Avatar for mbarandao

I'm wondering if it is possible to skip certain fields in the mysql table in a sql statement. Here is what I mean: I have a table that has the following columns: firstname lastname phone dob Suppose I write the following statement: $[CODE]mysql_query=("insert db_table (firstname, lastname, phone) VALUES ('$firstname' ,'$lastname', …

Web Development mysql php
Member Avatar for mbarandao
0
190
Member Avatar for SurveyTool

I'm making a survey tool. Each respondent will be asked to answer questions on (for example) cakes. The number and types of cake will be different for each respondent. The format of the survey will be saved in a file called [I]survey.xml[/I]. So the survey may be like the following: …

Web Development asp.net xml
Member Avatar for SurveyTool
0
153
Member Avatar for xuexue

hello guys, i had a problem with the automatic email sending using php.. the error states: [CODE] Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\edith\email\index.php on line 36 [/CODE] *******index.php *******this is my code [CODE] $to = "juan@yahoo.com"; $subject = "Email testing"; $message …

Web Development php
0
89
Member Avatar for nickles

Hi, I'm getting the error Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\wamp\www\******\include\Database.php on line 294 when I try to run this [CODE]function calcNumActiveUsers() { $query = "SELECT * FROM ".TBL_ACTIVE_USERS; $result = $this->query($query); //just uses mysql_query var_dump($result); $this->num_active_users = mysql_numrows($result); }[/CODE] As far as I …

Web Development mysql php
Member Avatar for nickles
0
107
Member Avatar for xuexue

could you give me a very simple example of autocomplete in php? this should have a connection to the database.. having the keydown() function and highlights the letters which are similar to the one being typed. best regards and thanks in advance..^^

Web Development php
Member Avatar for xuexue
0
143
Member Avatar for FreddieBambino

Hi. I was wondering, is there any way for php to automatically check if links are valid. For example, lets say I have 10 links and I want a cronjob to check if they are valid or not, and if they are invalid I would throw a query statement to …

Web Development php
Member Avatar for FreddieBambino
0
155
Member Avatar for mbarandao

If the following function performs calculation [CODE] <script type="text/javascript"> function updatesum() { document.PaymentForm.newbalance.value = (document.PaymentForm.balance.value -0) - (document.PaymentForm.paymentamount.value -0); } </script> [/CODE] How do I incorporate above function and the one below into one to thus do the calculation and round the number? [CODE] <script type = "text/javascript"> function roundNumber(num, …

Web Development javascript
Member Avatar for mbarandao
0
94
Member Avatar for cableguy31

I have a webpage with a form that collects an ID number. Within the page I have validation with PHP to make sure the number entered is in the right format. What I need to do is, if validation is successful, pass that id number to a new php page …

Web Development first-post php
Member Avatar for cableguy31
0
247
Member Avatar for Helpjava11

Please Help I am trying to make a counter that when i click a button it adds .01 to a running total. Below is the code I have created but when i click on the button it adds one and deletes the bid button [CODE]<html> <form> <input name = "count2" …

Web Development javascript
Member Avatar for Airshow
0
145
Member Avatar for dschuett

Hey everyone, This is my first attempt at pagination. I seem to have everything working pretty well except for one slight problem. Example: If I search for a PO Number containing the number 10. My query returns all the correct information along with the correct pagination links, however, Let's say …

Web Development html-css php ui-ux xml
Member Avatar for dschuett
0
681
Member Avatar for careless_monkey

I'll try my best to explain what it is. I have two tables 'regularplanets' and 'moons'. Idea is, regularplanets can have many moons and moons can have 1 planet. I have included the required variables 'hasMany' and 'belongsTo' in regularplanets and moons model. What I want to do is this …

Web Development php
Member Avatar for careless_monkey
0
103
Member Avatar for puvi

Hi, i have a registration form, where the user enters username, email, designation and organisation. on clicking register button, the data in this form should get saved into database. The code is as follows, when i executed it for the 1st time, data was saved properly, but when executed next …

Web Development php
Member Avatar for puvi
0
137
Member Avatar for mbarandao

Good day to all: Typically, when one pass variables via url, they are received and displayed in a input text box. I'm interested in passing two variables (firstname and lastname) via url; except, I want to be able to get them on another page [key point ], in a select …

Web Development php
Member Avatar for mbarandao
0
210
Member Avatar for kanuri1

hi frnds,,,, here i want to access the data base and showing in the grid view without help of datasourse it will shows the error, the error is "The IListSource does not contain any data sources"" here my coding is as follows..... Protected Sub Page_Load(ByVal sender As Object, ByVal e …

Web Development asp.net dataset vb.net
Member Avatar for jbisono
0
88
Member Avatar for xuexue

how could i add the onkeydown() function in jquery.. this is for the autocomplete.. regards, ^^

Web Development javascript-jquery php
Member Avatar for Stefano Mtangoo
0
157
Member Avatar for kanuri1

how to clear a textbox when enter incorrect than correctdata in integer format then at a time to disply validation in asp.net by using vb.net

Web Development asp.net vb.net
Member Avatar for crishjeny
0
59
Member Avatar for bharanidharanit

Hello sir, I am using 2 dropdownlist on my page. Those 2 are bounded to AccessDataSource. Initially dropdownlist2 is hidden. Wen i select some values on dropdownlist1, the other must be visible. Thankyou

Web Development asp.net
Member Avatar for crishjeny
0
74
Member Avatar for mIssy_ricco

Hi all. i've been wanting to create a validation that user has to key in for e.g: 10/2009. i want it to have the number and the '/' char. i tried "^\d+$" which is only for numbers. ".*[/].*" which is only for '/' "^[0-9a-zA-Z]+$" which doesnt seem to work. can …

Web Development asp.net
Member Avatar for crishjeny
0
101
Member Avatar for kanuri1

hi frnds i had got a problem, i want to increase the serial number automatically when page is loaded and it will be inserted into the database at every time when the page is loaded ....... here my coding in page load event is given below,,,,, [code] Protected Sub Page_Load(ByVal …

Web Development asp.net vb.net
Member Avatar for crishjeny
0
296
Member Avatar for unknowndevil41

Hi friends i want to create an login window. It should be loaded when an login button is clicked. What i want to do is when my login window open background of the website should get blured. In other ways i want to create a window same as daniweb.com when …

Web Development asp.net
Member Avatar for crishjeny
0
74
Member Avatar for kanuri1

hi frnds, i had got a problem,,,,,,, when iam retriving the data from database uising an condition it will shows the data appropriately... if the conditional value not in the database it will doesnot show any error....... here iam acessing the data from database using serial number condition,,,,, if the …

Web Development asp.net vb.net
Member Avatar for crishjeny
0
103
Member Avatar for kanuri1

hi how i can give session expairy time (about 5 min) in vb.net in pageload event,, pls give me code,,,

Web Development asp.net session vb.net
Member Avatar for crishjeny
0
103
Member Avatar for Naters_uk

I am using aspx.vb to create a login page. I would like to create a remember me cookie using a checkbox that will help to remember user ID but will also allow it to be destroy if a different user ID wants to log in with the same computer, but …

Web Development asp.net
Member Avatar for crishjeny
0
958
Member Avatar for mshravs

i have a problem in showing the data in the other page which is saved from one page and should be shown in the other page after immediately saving it. can anyone tell how do it through form collection here is the code [CODE] Protected Sub Page_Load(ByVal sender As Object, …

Web Development asp.net
Member Avatar for crishjeny
0
86
Member Avatar for kdcorp87

[CODE] OleDbDataAdapter o = new OleDbDataAdapter("select * from tblExam1", conn); DataSet ds = new DataSet(); o.Fill(ds, "tblExam1"); DataRow r = ds.Tables["tblExam1"].NewRow(); r["exam1ID"]=324; r["patID"] = patid; r["ypsos"] = 32; ds.Tables["tblExam1"].Rows.Add(r); ds.AcceptChanges(); [/CODE] no error message. execute code normally, but row did not inserted in db what i m missing? its access …

Web Development asp.net dataset
Member Avatar for crishjeny
0
120
Member Avatar for Pari13

Dear All, Have good day, I am trying to attatch file like yahoomail attatchement ,it means displaying name of file and Remove link after Button_click event fire. [CODE] protected void Page_Load(object sender, EventArgs e) { LinkButton1.Visible = false; label2.Visible = false; } [/CODE] [CODE] if (FileUpload1.HasFile) try { FileUpload1.SaveAs("e:\\parimal\\" + …

Web Development asp.net file-system
Member Avatar for crishjeny
0
472
Member Avatar for boonfoo

Actually i am trying to find the author of the article in this link. [url]http://authors.aspalliance.com/articles/dynamicbuttons.aspx[/url] But i failed as the provided email address is invalid. So i hope here can find the solution for it. Here it goes from the article exempted source code show on below -------------------------------- [code] Sub …

Web Development asp asp.net open-source
Member Avatar for crishjeny
0
239
Member Avatar for vvashishta

Hi all.. I need to make my dropdownlist disabled (none can change value or it should be read only)..which property should I use as readonly for dropdownlist is not working for me.. PHMO..

Web Development asp asp.net
Member Avatar for crishjeny
0
2K
Member Avatar for kanuri1

hi iam giving a value in text box as " 2010 - 1 " insted of 2010-1 it shows error, please give me the code to avoid blank spaces within a string as given above, iam using asp.net with vb.net please help me.......

Web Development asp.net vb.net
Member Avatar for crishjeny
0
294
Member Avatar for priyanka_2687

hi all.........:) actually im new to .net.. can we have routing in asp.net 3.5???? if yes, how?

Web Development asp asp.net
Member Avatar for crishjeny
0
322
Member Avatar for kanuri1

hi i wants to create an dll file for removing blankspaces in a given string.......... here iam writing the code but it was not working..... please give me the correct code.... here iam using asp.net with vb.net [CODE]Namespace fillblank Public Class Class1 Private Sub blankspces() Dim a Dim done a …

Web Development asp.net vb.net
Member Avatar for crishjeny
-1
262
Member Avatar for dlannetts

hi, i have to pieces of php code that i need to place into one but am unsure how to do it, firstly i have my peice of php to upload a few statistics: [CODE]<?php include 'mysqlconnect.php'; $db = mysql_select_db("upload_frenzy", $con); if (!$db) { die('Can not Connect to Database: ' …

Web Development file-system php
Member Avatar for Dragonbaki
0
171
Member Avatar for zlegend

I have created a search bar using PHP that pulls from my database by keywords typed in the search bar and displays links and descriptions of URLs' associated with the keywords. Is there a way for robots to randomly type keywords in my search bar on my website to list …

Web Development php seo
Member Avatar for somedude3488
0
106
Member Avatar for phpcode

Good Evening: I am making a transition from ColdFusion to PHP, and I am curious about a code situation I encountered. I am playing around with adding two drop-downs with two different fields from the same query. Wish CFML, it is [CODE=coldfusion] <cfquery name="queryName"> SELECT * FROM food </cfquery> Please …

Web Development coldfusion mysql php
Member Avatar for somedude3488
0
95
Member Avatar for xuexue

hi guys, could you help me with this one? this is about the autocomplete in php using a textbox.. my problem with this code is that when i used KeyDown on my keyboard, it should automatically input in the textbox the data, but mine is different, it displays "undefined" instead. …

Web Development php
Member Avatar for xuexue
0
222
Member Avatar for stephen_UK

If I am loading a page called 'view6.php' with this url: /view6.php?id=24 What code do I need to get the id value 24 passed in the url string into the variable $im_id? I have searched and searched for this info without success. Many thanks in advance Stephen

Web Development php
Member Avatar for stephen_UK
0
77
Member Avatar for diafol

Hi all, I've been developing a GoogleCal app for a month or so in my spare time. I've ended up with a shed full of session variables, just so I can keep all the data alive and create an import file for GoogleCal at the end of the process. I …

Web Development php session storage
Member Avatar for diafol
0
727
Member Avatar for NinjaLink

I am using dijkstra's algorithm to try to gather fake street names and find the shortest path. However, I can only get numbers to work instead of strings... The example of my results is below. [B]Results:[/B] The shortest route from 0 to 1 is : From Street 0 to Street …

Web Development algorithm php
Member Avatar for pritaeas
0
165
Member Avatar for saad749

I am trying to create a Unit Converter. My Idea is to have a select box at the top to select Length/Temp etc. which will populate the two select boxes below with appropriate units. The below code should Work only for Milimieters to Milimeter, Meters and Kilometers. It should show …

Web Development javascript
Member Avatar for saad749
0
218
Member Avatar for shafeequeom

I have a html template.I want to add login php script to my html.Putting frame and taking php to html is making some problem.Plaese help me, how i can take php script to my template

Web Development html-css php
Member Avatar for shafeequeom
0
182
Member Avatar for Dhruv Gairola

this is inside my servlet: [CODE]ArrayList<String> currentCustomer = model.getAllCustomers(); req.setAttribute("currentCustomer", currentCustomer );[/CODE] how do i access this arraylist in my JSP file? I eventually wanna loop over each string element.

Web Development java java-jsp
Member Avatar for Dhruv Gairola
0
248

The End.