52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lf.gene

Hi! is it possible to put a do while loop in a do while loop? For eg: DO{ CODES DO{ } while } while

Web Development php
Member Avatar for manzarr
0
72
Member Avatar for lf.gene

Hi, i have problem regarding my code. I using alot of for loop and while loop. However, its been to be one of the while loop is hindering the first loop. Here my code. [CODE]Do{ //assigned day 1-9 for ($i=1; $i<=9; $i++){ echo '<option>Hi</option>'; if($assigned_venue['day0'.$i] != ''){ $assigned_date[$i] = $assigned_venue['day0'.$i]; …

Web Development php
Member Avatar for lf.gene
0
74
Member Avatar for marcbe

Hi everyone, I have a problem that I can't get my head around, I dont know much about php. I do know some bits and bobs through experience with it and learning from mistakes. I have elgg installed on my website, a CMS neyworking engine. Some of the guys on …

Web Development cms php
Member Avatar for marcbe
0
220
Member Avatar for SelArom

hello, I'm in the process of upgrading a site's pages from htm static content to a dynamix aspx page. the problem is that I want to redirect users visiting the old pages to the new pages and I want to use the proper 301 "moved permanently" redirect to be search …

Web Development asp.net javascript
Member Avatar for GamersX
0
444
Member Avatar for freiheit

Does anyone know? I dont have experience in jquery , and as far i know by default all panels inherit the height of the 1st panel ,depending of the quantity of the content inside it. In the content of each panel will be dynamic content, of different size thats why …

Member Avatar for freiheit
0
121
Member Avatar for mark2326l

Im listing files in a directory on a web page with links to the files. I'm trying to change the link color to something other than my typical. Below is the php link... [CODE]<?php echo("<a href= '$dirname/$file'>$file </a> ");echo "<br />"; ?>[/CODE] I want to change the class. Below is …

Web Development php
Member Avatar for mark2326l
0
85
Member Avatar for nizuya

My goal is to preload these images for an image swap on the page. It runs on body load but I'm not quite sure why it doesn't work... [CODE] function preload() { imageObj = new Image(); images = new Array(); images[0] = "images/globe2.jpg"; images[1] = "images/stickme2.jpg"; images[2] = "images/monitor2.jpg"; images[3] …

Web Development image javascript
Member Avatar for fxm
0
230
Member Avatar for lf.gene

Hi all, I having this error "Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\FYP\assign_venueTest.php on line 104" in my code. I cant find where does my code went wrong. Need you guys to help me out. [CODE] <?php $class_id = $_GET['id']; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; …

Web Development php
Member Avatar for hielo
0
371
Member Avatar for pietpiraat

Hi everyone, i have a piece of javascript that calculates 2 input fields (price * qty) whenever i type in the input field (qty) that uses this : [CODE]onkeyup="update(this);"[/CODE] Now what i want is to execute this handling when the page loads, because sometimes there are already values (php & …

Web Development javascript php
Member Avatar for hielo
0
226
Member Avatar for raul8

In the code below, I am using QueryString to check the variable status. If it is 'success' then it should display "deletion successful". I am passing url = [url]http://localhost:9999/EmModule/EmpForm.jsp?status=success[/url] But, it is not displaying any alert. Note: I am using JSP page, and am rookie in it. Thank You [CODE]<html> …

Web Development javascript
Member Avatar for hielo
0
107
Member Avatar for johnnyturbo3

Hi, I just want to get the opinions of JSP developers on what they think the future of the platform holds. I'm currently a university student and I have gained a lot of experience in Java, and some in JSP. I'm looking now to concentrate on a single web language …

Web Development asp.net java-jsp
Member Avatar for GujuNilesh
0
770
Member Avatar for lf.gene

Hi all, I've errors in my code and i'm unsure whether the way i loop is in a correct method. Pls give me some guidance as it is very important to me. Thank! Error i got-> Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\FYP\assign_venueTest.php on line 118 …

Web Development php
Member Avatar for chrishea
0
144
Member Avatar for shella

Hi all, i'm newbie with jsp and i'm trying to connect with mysql through a select with a variable passed from an another page... The code i have is what follows: [code] <% // Prendo la variabile dal form String username=request.getParameter("username"); String sql="SELECT * FROM cmascella_users WHERE username = " …

Web Development java-jsp mysql
Member Avatar for sawedd
0
161
Member Avatar for madkat3

I'm using an image as my submit button. I want it to check to ensure all boxes have a value before submitting (I will make the verification more stringent later), and if there is none, to cancel the form submission. I created a readonly input box that changes from white …

Web Development javascript
Member Avatar for madkat3
0
11K
Member Avatar for faizabest

how can I transfer my SQl databese (located on PHPADMIN) to sql server?

Web Development php sql
Member Avatar for Brian Swan
0
91
Member Avatar for frmsasp

Hello there, Currently I am working with the project which needs dynamically generated checkboxes and i have generated dynamic checkboxes but i am facing problem with getting the vaue of selected checkboxes. Problem is described below in detail to easily understood, so please let me know if you come to …

Web Development asp.net
Member Avatar for nathantownsend
0
783
Member Avatar for Dartz654

Hai, i'm new to cookies/sessions, so i'm not sure how to do this. So, theres a row in the user account table called 'online'. When their online, the value is 1. When their offline, the value is 0. I'm not sure how to do this, like to store a cookie …

Web Development php
Member Avatar for mschroeder
0
109
Member Avatar for prussell

I have a simple vb.net webservice which accepts a string parameter. the function appends the passed value to a string, then returns it back. (See code below). My client uses ksoap2 on an android platform to invoke & consume the service. I can connect to the service fine, and while …

Member Avatar for balazs.kelemen
0
184
Member Avatar for jmaddy10

I am trying to set up the code so that the it takes the user from one form to a thank you page, then to another form and have some of the info from the first (last name, first name, email) into the second. I managed to get the code …

Web Development html-css javascript web-browser
Member Avatar for jmaddy10
0
235
Member Avatar for nizuya

I set the min-height of an object on my page based on the size of the window. It works perfectly in all browsers but IE (of course). How can I fix it? [CODE] function resize() { document.getElementById('container').style.minHeight = window.innerHeight + "px"; } [/CODE] The function runs on body load and …

Web Development javascript
Member Avatar for nizuya
0
154
Member Avatar for tonyeveland

To access MySql tables from PHP, I use the PHP code and the function below. If I make these changes, would this code work for SQL Server 2008? mysql_fetch_array to mssql_fetch_array mysql_connect to mssql_connect mysql_select_db to mssql_select_db mysql_query to mssql_query PHP code -------------------------------------------------------------------------------- $sql = "SELECT mast_id FROM district_mast WHERE …

Web Development php sql
Member Avatar for tonyeveland
0
197
Member Avatar for Jesi523

Alright after working on a login page and completing it, the requirements for my project have changed. I am no longer using FormsAuthentication to see if someone is logged in. Instead I am putting a passcode as the query. If the passcode exists then I let them continue to the …

Web Development asp.net
Member Avatar for Jesi523
0
190
Member Avatar for manavsm

I have passed values from one page to another using query but it is not accepting the update i.e When i click on update button nothing happens [CODE] SqlConnection con = new SqlConnection("Data Source=SNSS1\\SQLEXPRESS;Initial Catalog=Employee;User ID=sa;Password=eLog!234"); int empid = Convert.ToInt32(Request.QueryString["ID"].ToString()); string strSQL = " UPDATE Tbl_Employee SET FirstName=@FirstName,LastName=@LastName,EmpID=@EmpID,PhoneNumber=@PhoneNumber,Salary=@Salary WHERE ID="+empid …

Web Development asp.net
Member Avatar for manavsm
0
108
Member Avatar for ekseks

can some tell me what's wrong i tried putting the $date in my textfield from my MySQL. can someone pls correct my code :) thanks [CODE]<?php $username="root"; $password=""; $database="dbdate"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM `cdate` WHERE 1 LIMIT 0 , 30"; $result = …

Web Development php
Member Avatar for katarey
0
107
Member Avatar for raul8

I have 2 java Servlet files EmpRecord & Delete. Employee has a button of delete, on clicking it....page will be redirected to Delete.java Here the record will be deleted. Now, I want to redirect Delete.java back to EmpRecord.java where the message "Record deleted" will be displayed. How can I pass …

Web Development javascript
Member Avatar for fxm
0
104
Member Avatar for ekseks

So basically guys, the datepicker is connected to three fields (drop downs for..) [Month]/[Day]/[Year]-[Datepicker(Calendar)] now I just wanted to get the dropdowns' values and pass it on a textbox (namely: selectedDate - you can see below) having a format of [[U]mm/dd/yyy[/U]] thanks for the help experts. Code from [url]http://keith-wood.name/datepick.html[/url] [CODE]// …

Web Development javascript
Member Avatar for madkat3
0
149
Member Avatar for theighost

Hello, I made a script that fetches the HTML of a remote page, on another server: [CODE=php] // $URL[$i] has the value of a url, ex. http://www.google.com $lines = file($URL[$i]); $the_file=''; if($lines) foreach ($lines as $line) { $the_file .= $line . "<br />\n"; } //if I echo the variable $the_file, …

Web Development client-server php
Member Avatar for theighost
0
196
Member Avatar for R.DanielRaj

it's not connected with DB... in this program for banking transaction application

Web Development java-jsp
Member Avatar for peter_budo
0
490
Member Avatar for just-tam

Hi, I'm having a problem with my login control where whenever I try to login using the correct username and password i set up (in debug mode) and click enter, nothing happens. It doesn't even respond with an error message, its jus like the button doesn't work eventhough the code …

Web Development asp.net
Member Avatar for dnanetwork
0
74
Member Avatar for navi17

Hello friends, I am working on e commerce site these days. Every goes well but now i am stuck on discount functionality. My client wants to have following functionality in the site 1)- i want to offer simple discounts: 10% off, 20% off with voucher or code number 2)- i …

Web Development ecommerce php
Member Avatar for navi17
0
2K
Member Avatar for Varinor

I have an "input" page that allows someone to check a box which activates a datetime function, the page then returns to a display. My problem is that the input page can be relaoded and the box reticked, overwriting the displayed datetime. As the page reloads with the box showing …

Web Development javascript
Member Avatar for madkat3
0
216
Member Avatar for Tenaciousmug

Alright, the register/login system is fully working with sql injection, BUUUT now I want to store their IP Address. WHOLE new function that I've never dealt with before. So I need some help. Am I doing something wrong? I have the IPadd in the database as INT(10) and then I …

Web Development php
Member Avatar for manzarr
0
584
Member Avatar for Designer_101

Hi, Im just starting to use the codeIgniter framework and Im developing a blog application. However I need a textarea where the user can change text to bold or change the colour just by selecting it and clicking a button above the area. Much like the daniweb reply form but …

Web Development php php-codeigniter
Member Avatar for raju_boini525
0
929
Member Avatar for raul8

In the code below, the updates are performing successfully, but the page is not redirecting Please Check: [CODE] out.println("<html>"); out.println("<head>"); out.println("<script>"); out.println("function redirect()"); out.println("{"); out.println("window.location='EmpForm.jsp'"); out.println("}"); out.println("</script>"); out.println("</head>"); Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection("jdbc:mysql://192.168.101.98:5501/TestNJ", "testnj","testnj"); st=con.createStatement(); query="UPDATE emp1 SET E_Name='"+EName+"',E_Address='"+Add+"',E_Dept='"+Dept+"' WHERE E_ID='"+EID+"'"; st.executeUpdate(query); out.println("<body onload='redirect()'>"); out.println("</body></html>");[/CODE]

Web Development java-jsp
0
72
Member Avatar for geoNeo_

hey guys! I'm new at ASP, and I hope that could please ask for some advice. Basically I got a little test website that i am experimenting with, what I would like to to if the main page of the web site loads that in one of the tables that …

Web Development asp.net
Member Avatar for geoNeo_
0
92
Member Avatar for solahere

I want to assign a whole chunk of html content to a php variable. I was wondering if anybody knows of a way other than catenating manually. It's a huge chunk of html full with escape characters so don't want to do '' or "" thing. Any help is appreciated.

Web Development html-css php
Member Avatar for solahere
0
268
Member Avatar for adcodingmaster

Hi every one. i m sending mail in php and facing a problem the problem is when i add some text in the body like this <b>this text is bold</b> then this text is shown as it is in the mail i want to show this text bold The problem …

Web Development php
Member Avatar for adcodingmaster
0
157
Member Avatar for sara nabil

i have a ver starbge problem , i was making a site and was completly correct on the localhost,but when i upload irt to a server to test it something stange happened which is i got that error Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/saraanv/public_html/blog_web/index.php …

Web Development mysql php
Member Avatar for sara nabil
0
359
Member Avatar for musicofthehart

I am sure that this is a silly question for most of you, but I have googled and searched, and I cant find what I am looking for. I have altered an opensource website script. A script that you install on a server and bam... you have a website. like...joomla, …

Web Development php wordpress
Member Avatar for Zagga
0
143
Member Avatar for nizuya

I'm writing a form that will include a place to upload a pdf. I would like the upload section to be a separate form in a popup. After the user successfully uploads a file I want the original form/window to update with a link to the uploaded file and a …

Web Development javascript pdf
Member Avatar for zeah
0
2K
Member Avatar for infosoft

hi as i am new to PHP I am trying to find the name and mobile number from a string. i am using textarea as input format is as 1 - name, mobile(10 digit[9999999999], 11 digit[0-9999999999], 12 digit[91-9999999999]) in a single line 2 - user can input only mobile number …

Web Development php
Member Avatar for diafol
0
145
Member Avatar for priyam1309

Hi, I wish to create my own blog website but the problem is i still am confused about how it is done. I would like to use ASP.NET and C#.net to create the website and HTML & CSS to design the website. The main issue is can i store the …

Web Development asp.net html-css wordpress xml
Member Avatar for Lusiphur
0
102
Member Avatar for valonesal

Is there a way to set tinymce so that the user can post text and html in the same box without having to open the html box to enter code? I have seen on other sites where you can enter text and then some html and it comes out fine …

Web Development html-css javascript
Member Avatar for valonesal
0
90
Member Avatar for bsewell

Hi all, I'm trying to develop a javascript to display a few images in a div. The plan is to get two pictures which will act as next/last image, but I'm stuck for running the script when the page loads, which is using the onLoad function in the body tag. …

Web Development javascript
Member Avatar for fxm
0
270
Member Avatar for pgperez

Hello everybody, I'm having the same problem. I can connect to a SQL server with default instance (no named), but can't connect to a named instance! I tried escaping backslashes, and putting port number, with no success. Examples: $connection = mssql_connect('MYSERVER', 'USER', 'PWD'); --> WORKS OK $connection = mssql_connect('MYSERVER\INSTANCE', 'USER', …

Web Development apache mssql php
Member Avatar for pgperez
0
119
Member Avatar for masoudnia

hi I want to detect input language of client. so i tried in java script with(navigator)it dosent work for my perpose i also used ( HTTP_ACCEPT_LANGUAGE) it return system language not keyboard language? what i must do?

Web Development javascript
Member Avatar for fxm
0
3K
Member Avatar for tito2004

Suffering for hours Trying to fix it by no Hope syntax error, unexpected $end in C:\???????\index.php on line 547 the lines form 511 to 547 are [CODE]<? ContentBlockFoot(); ?> </td> </tr> </table> <? BottomCode(); function error_handler($errno, $errstr, $errfile, $errline) { switch ($errno) { case FATAL: echo "<b>FATAL</b> [$errno] $errstr<br>\n"; echo …

Web Development php
Member Avatar for almostbob
0
170
Member Avatar for BoogyB

i need to make ASP.NET based CMS. Could anyone suggest a good tutorial?

Web Development asp asp.net cms
Member Avatar for jimmyboro
0
194
Member Avatar for canadian_angel

Hi, I am new to php and have to do a project that consists of a joke page, a jokelist page and the front page or index page. My problem is this: I have used the text below in my .htaccess page and the only thing I get when I …

Web Development php
Member Avatar for muralibobby2015
0
167
Member Avatar for EverWebby

I have been trying to figure out how to perform a search and replace in php to create links within the text of paragraphs without having it interfere with any naming conventions in HTML codes, styles, names, and ids. I was considering preg_match or preg_replace, but I am the worst …

Web Development php
Member Avatar for EverWebby
0
148

The End.