52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mona Ali

hi to all i made a code to find the mac number that runs on java and gives me output but when i implement it on applet and link the applet with html then applet links correctly but the logic to find mac number does not execute.....what should i do...here …

Web Development javascript
Member Avatar for johny20
0
243
Member Avatar for Paaat

Hello people.. I have written a code that replaces IMG tags in a text with the HTML <img tag.. However, I faced a problem; Big images spoiled the layout of the page being viewed. Is there anyway to limit the size of the image only when it's more than 300 …

Web Development php
Member Avatar for Pro2000
0
129
Member Avatar for upmuthukumar

Hello all, While upload my resume i'm getting below error, Warning: Cannot modify header information - headers already sent by (output started at /home/abc/public_html/site/resume2.php:1) in /home/abc/public_html/site/resume2.php on line 57 I have attached the code as well.... <? $subject = $_POST[subject]; $Comments = $_POST[Comments]; $name = $_POST[name]; $phone = $_POST[phone]; $mobile …

Web Development php
Member Avatar for elibyy
0
175
Member Avatar for vikaspa

Dear All To conduct online exams we need to set timer for say 60 minutes or 90 minutes after this time the user should be logged of fiocrcefully Please help me for the code in php Can I use session for this ...

Web Development php session
Member Avatar for urtrivedi
0
719
Member Avatar for manzoor.ilahi77

Please help on the multiple textbox as date in mysql [CODE] <input type="text" name="date" class="f_input input1" style="width:32px;" value="D" maxlength="1" onBlur="if(this.value=='') this.value='D'" onFocus="if(this.value =='D' ) this.value=''" > <input type="text" name="date" class="f_input input1" style="width:32px;" maxlength="1" value="D" onBlur="if(this.value=='') this.value='D'" onFocus="if(this.value =='D' ) this.value=''" > <input type="text" name="date" class="f_input input1" style="width:32px;" maxlength="1" value="M" onBlur="if(this.value=='') …

Web Development mysql php
Member Avatar for urtrivedi
0
459
Member Avatar for newcoder310

Hi I'm trying to connect using oracle10g with eclipse but its not able to locate the driver at all . [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="java.sql.*" %> <% String uname="system"; String pwd="*****"; String url = "jdbc:oracle:thin:@localhost:1521:XE"; Connection con = null; Statement stmt = null; ResultSet rst = null; …

Web Development apache java-jsp oracle
Member Avatar for peter_budo
0
132
Member Avatar for elibyy

hey there i've opened the source code of PHPbb and i saw something real wired [CODE=php]<!-- INCLUDE overall_header.html --> <p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p> <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH or …

Web Development html-css php phpbb
Member Avatar for elibyy
0
253
Member Avatar for bhagawatshinde

Hi, I am new in ASP.net. i have create a webform which contains 2 fields textbox1 and textbox2 and two button new and save. i have included the requirefied validator on textbox1. now when i am clicking on new button it will display message i.e enter id. but on new …

Web Development asp.net
Member Avatar for bhagawatshinde
0
126
Member Avatar for klemme

Hi all, I have this mail which works fine: But how can I pass the html tags, as html tags so it shows bold in my inbox? As it is now, i recieve the tags as normal letters.. This is what I have: [CODE] if(empty($error_msg)) { // If validated -> …

Web Development email html-css php
Member Avatar for leakbali
0
147
Member Avatar for Madhuphp

hi all, know PHP basics want to learn php frameworks...can u please guide me...

Web Development php
Member Avatar for vaultdweller123
0
136
Member Avatar for chaychie

Hi guys, I have the following code which works well. The code is to display all the data from the database in input text field format. User is able to edit and update the details by clicking the update button at the end of each row to update the specific …

Web Development php
Member Avatar for vaultdweller123
0
122
Member Avatar for megachip04

I have a form in account.php that is prefilled with the user's current info but can be changed and then when you submit, it updates the database. However, when returned to the page after the update, the prefilled text is not updated. It only updates if you re-log in. At …

Web Development mysql php session
Member Avatar for ddymacek
0
8K
Member Avatar for riseguim

Ok so I want people to fill in a form and when they press submit it gets sent to my email address... Everything is working fine I just need to know how to make the checkbox appear in my email, the free script I used didn't have any checkbox and …

Web Development email php
Member Avatar for riseguim
0
206
Member Avatar for rksh

hello friends... i have done it using FileUpload1.PostedFile.FileName .... but the problem is everything is working fine in IE ....but not in mozilla...safari.... actually i want to get the full path of the selected file...not the file name only.......... thank you.....

Web Development asp asp.net
Member Avatar for Shilpakmthn
0
226
Member Avatar for riseguim

Ok so here's the deal... I have mostly French-speaking customers and they'll type-in their name with accents (such as é, à, è, etc.) in the following script [CODE]$string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$prenom)) { $error_message .= 'Invalid name<br />';[/CODE] It will say "invalid name". I know that to fix this I …

Web Development php
Member Avatar for riseguim
0
151
Member Avatar for bharanidharanit

Hello, How to get the full path from fileupload control browsing the path to it? I want to get as this. c:\Images\mine.jpg

Web Development asp.net
Member Avatar for Shilpakmthn
0
205
Member Avatar for cocoll

hello please i nead help with response.redirect to an absolute path,i tried everything i can but with no result so for example: Response.Redirect("file:\\C:\Users\Toshiba\Desktop\4.jpg") so ctrl and click in "file:\\C:\Users\Toshiba\Desktop\4.jpg" it display the image in visuel studio but it doesn't work in the browser. so thank you for help.

Web Development asp.net
Member Avatar for Shilpakmthn
0
2K
Member Avatar for metalix

View the full tutorial at [URL="http://www.effectivewebdesign.co.nz/tutorial.php"]http://www.effectivewebdesign.co.nz/tutorial.php[/URL] I have tested this many times and it works fine. Please don't complain unless you really can't get it working, Just PM me and I'll fill in the blanks Happy Coding :)

Web Development mysql php sql
Member Avatar for Rogueit
0
885
Member Avatar for Rogueit

I found this code [url]http://www.daniweb.com/web-development/php/code/301902[/url] but when I run it I get several \n followed by Count item Name max(ts) then several a href="/testing.php?sort=max(ts)>"2011-07-08 00:00:00 can you tell me what I am doing wrong? [CODE]<?PHP //connect info $hostname = "localhost"; $database = "db"; $username = "user"; $password = "password"; $conn …

Web Development mysql php
Member Avatar for Rogueit
0
168
Member Avatar for webguru07

is there a way that i can check to see if a mysql table exists and if not add the table to the database with a session_id as a table name

Web Development mysql php
Member Avatar for Vonzarovitzch
0
3K
Member Avatar for iamus

Hi, I was wondering if anyone could help me in this aspect. Hope this is the right forum. I'm trying to implement a leave system in php. THe thing is, building one from scratch seems an uneccessary overload. WHat i'm trying to do, is find some sort of structured system …

Web Development php
Member Avatar for felixaduol
0
139
Member Avatar for CaffeineCoder

I'm trying to connect a SQL database to a Classic ASP site. I keep getting the following error message no matter what I do: ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be properly installed. I have an ODBC entry for this database, as well as have the …

Web Development asp sql
Member Avatar for CaffeineCoder
0
4K
Member Avatar for mwenyenia07

I created an application on asp.net using visual studio 2008 and i wanted it to run on IIS(Internet information server). but when you run it in the browser, it brings this error XML Parsing Error: not well-formed Location: [url]http://localhost/Default.aspx[/url] Line Number 1, Column 2:<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %> …

Web Development asp asp.net ide visual-studio
Member Avatar for Netcode
0
204
Member Avatar for Zibo

Hello. I'm trying to add a single test record (a comment item) to my MySQL database. So here are my sources of JSF2 project. - main xhtml page: [code]<h:body> <h:panelGroup id="mainBlock" layout="block"> <h:panelGroup id="header" layout="block"> <h:graphicImage value="resources/logo.jpg" style=""/> </h:panelGroup><br/> <h:panelGroup id="menu" layout="block"> <h:panelGrid columns="1" style=""> <h:outputLabel value="MENU" style=""/> <br/> <h:form> …

Web Development gui javascript
Member Avatar for Zibo
0
133
Member Avatar for sacarias40

is there an existing api for a postal code system? for example, you are at a gas stations website, and you want to find a station nearest you. so you type in your postal code and it returns the result.\ thanks.

Web Development api xml
Member Avatar for gcornejo
0
101
Member Avatar for devindamenuka

hi, I have settup relative paths now work it on localhost properly.THank you for ur upport but I got another problem when I host it 000wbhost server. I configure the passwords and username and other stuff and run the site. then I got this error PHP Error Message Warning: include() …

Web Development php
Member Avatar for broj1
0
169
Member Avatar for megachip04

Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the …

Web Development file-system php
Member Avatar for Insensus
0
580
Member Avatar for vanpersie

Hi I am begginer to jsp I have downloaded apache-tomcat-7.0.19-windows-x86,unzipped it, Added an environmental variable JRE_HOME and it's value is C:\Program Files\Java\jre1.5.0_22 I have started tomcat from startup batch file , a console window appeared for a while then disappeared . when open my browser internet explorer and write address …

Web Development apache display java-jsp
Member Avatar for peter_budo
0
266
Member Avatar for Isti666

[code=php]<?php //first you need to define db info define('mySQL_hostname', 'localhost'); //database IP define('mySQL_database', 's'); //database name define('mySQL_username', 's'); //database user define('mySQL_password', 's'); //database password //connects to mysql $db_link = mysql_pconnect( mySQL_hostname, mySQL_username, mySQL_password ) or die( 'Error connecting to mysql<br><br>'.mysql_error() ); //connects to Database $db_select = mysql_select_db( mySQL_database, $db_link ) …

Web Development php
Member Avatar for leakbali
0
106
Member Avatar for phaedrusGhost

Hi all, This has always confused me to no end and now that I really need a JOIN I need to get this. I am working with a small blogging section of my site here. In one table I have "blogs" and another table I have "comments". My comments table …

Web Development mysql php
Member Avatar for leakbali
0
146
Member Avatar for facarroll

Hi members. I am working on a couple of pages that present me with the same problem. I have set up a log in that puts member data into a session variable. Then the logged in member proceeds to alter some of their own data using a form, and the …

Web Development php session
Member Avatar for vaibhav1983
0
14K
Member Avatar for sirlink99

I would like to learn PHP and I am wondering how to install it. I am planning on using the Eclipse PHP IDE for coding. I have tried a couple of installs for PHP and I could not get any of them to work. I have a vista ^$ bit …

Web Development ide php
Member Avatar for Ezzaral
0
117
Member Avatar for Ralphael

I am relatively new to php and i am having this error "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 '' at line 1" and i cant figure out what is wrong with …

Web Development php queue
Member Avatar for Ralphael
0
108
Member Avatar for AngieS

I am trying to create a plant reference guide where the customer can grab plant description from one table (findplantsdb) and the availability from another table (plantsdb). I am new to PHP and I think I am close, but what is happening is that the plant description is coming up, …

Web Development mysql php sql
Member Avatar for jkon
0
155
Member Avatar for riseguim

Hi, I have a form to email script here and whenever someone puts "à, é, etc" anything with an accent in the name or last name section it says that it is invalid. Also I would like to make the telephone number area required... Might you know how? [CODE]<?php if(isset($_POST['email'])) …

Web Development email php
Member Avatar for riseguim
0
226
Member Avatar for y2kshane

[code]<% String UN=request.getParameter("un"); String pw=request.getParameter("pw"); String FN=request.getParameter("FN"); String LN=request.getParameter("LN"); String L1=request.getParameter("L1"); String L2=request.getParameter("L2"); String L3=request.getParameter("L3"); String ccn=request.getParameter("ccn"); Class.forName("com.mysql.jdbc.Driver").newInstance(); java.sql.Connection myConn; myConn = DriverManager.getConnection ("jdbc:mysql://localhost:3306/train_resev","root", "3866" ); PreparedStatement ps=myConn.prepareStatement("insert into user values('" + un + "','" + pw + "','" + FN + "','" + LN + "','" + L1 + …

Web Development apache java-jsp sql
Member Avatar for pushkar honey
0
125
Member Avatar for felix001

I currently have the following php : <?php system('/usr/bin/whois 4.2.2.2'); ?> What is the easiest way to replace the newlines with <BR>\n. Thanks,

Web Development php
Member Avatar for diafol
0
2K
Member Avatar for oamunoz

Hello! I've got the code below which takes data from my db and displays it to the page listing reports submitted by the user. At the end of each row I have button that is supposed to launch a PDF generator so that the user can view their report. I …

Web Development gui pdf php
Member Avatar for oamunoz
0
696
Member Avatar for katieJane

Hi all I am a little confused with an issue regarding a combo box being displayed on my asp.net webpage. All I want to do it have a blank default value at the top of a list which is bound with a database, which also prevents the user from selecting …

Web Development asp.net
Member Avatar for katieJane
0
185
Member Avatar for KPheasey

I have the following code which should update the total items in a categories list every time that a search filter is changed. However, the function will only run once. [CODE] function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ …

Web Development javascript
Member Avatar for stbuchok
0
449
Member Avatar for johny20

Hello guys, I try to implement a chat application using PHP + MySql. The problem so far is that when I am chatting, I "lose" inputs when a small part of the page goes to be updated. On the other web browsers (Chrome, IE, Opera) I have some delay but …

Member Avatar for johny20
0
86
Member Avatar for Tess James

Am gettin an error msg like this--> The image “[url]http://localhost/linegrph.php”[/url] cannot be displayed, because it contains errors. while tryin 2 run my code on localhost.. Wen I comment d statemnt, $graph->Stroke(), nthng at all displys.. Plseeee do tell me a solution.. Thnks in advance :)

Web Development php
Member Avatar for greensign
0
223
Member Avatar for calebcook

I don't know if this is possible, but I want to submit information using POST with a link. I know I can use GET, and I know I can use a form with a hidden value and submit it with a link, but I don't want either of those. I …

Web Development first-post php seo
Member Avatar for calebcook
0
281
Member Avatar for calebcook

I'm trying to create a message board where members can post messages to other members. I'd like to have a section where it says "4 posts since Jan 2011" just like DaniWeb does. How do I get the date from the [CODE]"first row WHERE user='username'"[/CODE] with PHP & MySQL? Also, …

Web Development mysql php
Member Avatar for calebcook
0
118
Member Avatar for Mona Ali
Member Avatar for Mona Ali
0
81
Member Avatar for sels2005j

I want to email an aspx page, which has database connectivity, from my web application. The page contains submit button and IHttpHandler (ashx) for images. The page images are in my SQL Server database and opening it directly to the image control using ashx file. Can I email the said …

Web Development asp asp.net email
Member Avatar for tjaank
0
151
Member Avatar for jacob21

Hi, I am exporting data of mysql table.Its working fine. In my db some hindi data is also stored.When i download hindi data it come some undesired sequence. Can i export hindi data in cSV. Need suggestion. [CODE]<?php // // establish database connection // $conn = mysql_connect( 'localhost', 'root', '' …

Web Development php
0
586
Member Avatar for ALLNO

Hello, I have recently been working on a custom gui and am having trouble with a section of my code that handles the creation of window-style dialogs: (i appologise in advance but i had to include the whole code as Google Chrome would not pin point the error and only …

Web Development gui javascript
Member Avatar for Luckychap
0
113
Member Avatar for samsons17

HI,..i've been working on this simple project that i need to submit it tomorrow. I really in rushing a little bit. But while i working on this oop project, my program give the strange little fatal error about my query which is this [B]Fatal error: Call to a member function …

Web Development mysql oop php
Member Avatar for aquilax
0
15K
Member Avatar for daz_omega

I have had a look within daniweb and done google searches on this problem so hopefully I am not wasting anybodys time with this. The problem I am facing is that currently I am getting the results from a mysql database using an associative array but i need to be …

Web Development php sql
Member Avatar for daz_omega
0
1K

The End.