17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for whiteyoh

Hi All, At the minute I have a script, that ill post below, that simple echos out some information via ajax. My question is, how do i get the update without using meta refresh and without clicking anything at all? [code] <html> <head> <script type="text/javascript"> function showHint(str) { if (window.XMLHttpRequest) …

Web Development javascript php
Member Avatar for whiteyoh
0
124
Member Avatar for crackerjacker

hi- currently i have a small (LAN only) web server running on my computer, and i would like to be able to make a web page in which i can run a program on the server computer from another compuer. say, for instance, i click a button on the web …

Member Avatar for crackerjacker
0
3K
Member Avatar for sastudent

I call the getTitle function but it only returns the last DB value. I presume that is because there are many rows in the DB with the same 'code' However when I call the function I want to get all the values for TITLE where code is something in the …

Web Development php
Member Avatar for sastudent
0
123
Member Avatar for mikecronauer

I am trying to set up a web based tool for my wife and I to use to balance our checkbook together. I am using HTML, Javascript (Ajax), PHP and MYSQL. I have read beginner books on all of these subjects, I can get data out of MYSQL, BUT can't …

Web Development javascript mysql php
Member Avatar for mikecronauer
0
150
Member Avatar for shadiadiph

Hi I have been playing with this regex for a few hours now I want to make it so it accepts commas also any ideas? [code] var regname=/^[a-zA-Z\.\-'\s]*$/; [/code] At the moment it works with A-z and - . ' but can't seem to figure out how to include commas …

Web Development javascript regex
Member Avatar for shadiadiph
0
257
Member Avatar for debow

I have a form that get's pre populated from an events_result table. It has fname,lastname,event,results column. I have a link to Update which is an action call to function UpdateResults. I want to be able to use this one form to show the results and be able to update the …

Web Development php
Member Avatar for debow
0
269
Member Avatar for shadiadiph

Hi sorry I am very new to AJAX and javascript probably a silly question but where can I put document.getElementById("loading").innerHTML='loading...'; in the following so it appears when it is loading and disappears when it is loaded? function getstate(){ var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari }catch (e){ try{ …

Web Development javascript
Member Avatar for shadiadiph
0
130
Member Avatar for QWaz

Hi, I am wondering if there is a way to check if a url has an $_GET[] attached to it. I would like to: 1- Send the url from a search option in the site through the url. However the search page can search 3 different things, "X", "Y", "Z". …

Web Development php
Member Avatar for vaultdweller123
0
137
Member Avatar for shadiadiph

Hi I have never really bothered with javascript before but i am having alot of problems with a ajax php form my php code returns [code] if ($states==false) { $result = 'nostates'; $result = trim($result); return $result; exit; } [/code] And my javascript alert returns nostates but always executes the …

Web Development javascript perl php
Member Avatar for shadiadiph
0
112
Member Avatar for dalip_007

hi everyone i am doing this <?php $strXML1 = "<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'>"; echo $strXML1; ?> can anyone please tell me why echo $strXML1; does not out put anything. how can i do this. Thanks in advance.

Web Development php
Member Avatar for dalip_007
0
144
Member Avatar for Lusiphur

I'll preface this by giving a bit of an overview of what I'm trying for here. I'm trying to create a quasi-blog. Something that I can "post" journal type entries directly to a page in my website but without all the luggage that comes with the readily available blog engines …

Web Development asp.net dataset
Member Avatar for Lusiphur
0
164
Member Avatar for cwarn23

Hi all, I have ubuntu and just installed sqlite then edit the php.ini file accordingly but for some reason the class named ¨SQLiteDatabase()¨ reports as undefined. The error is as follows: [CODE]Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct() [<a href='sqlitedatabase.--construct'>sqlitedatabase.--construct</a>]: unable to open database: /var/www/vhosts/cwarn23/base' in /var/www/vhosts/cwarn23/php.php:3 Stack trace: …

Web Development apache php sqlite ubuntu
Member Avatar for cwarn23
0
517
Member Avatar for luskbo

I have a question that I hope someone can help me with. I have a website that I am loading dynamic content from a database. In my files and instruction I reference the contact page, that is only because that is the file I have been testing this on. Here …

Web Development html-css open-source php
Member Avatar for luskbo
0
235
Member Avatar for Inny

my image veiwer has stopped working properly, I dont know why. It resizes as its meant to, but dosent pop the veiwer window. Can you find the problem? [CODE]<script type='text/javascript'> var popbackground="http://i14.photobucket.com/albums/a345/Instar/greenbgfade17oi.jpg"; //specify backcolor or background image for pop window var windowtitle="Image Viewer" ; //pop window title function detectexist(obj){ return …

Web Development javascript wordpress
Member Avatar for Inny
0
483
Member Avatar for Zagga

Hi folks, I have a tiny blog script that is just for personal use. It works fine. I was wondering if it was possible to post entries to this blog via email so I started looking at email parsers. The ones available for purchase are far too overpriced for my …

Web Development email php
Member Avatar for Zagga
0
138
Member Avatar for prem2

Hi daniweb team, I am new to Servlet concepts can any one tell why peoples use doGet and doPost method in the Same program.And What is the difference between doGet and doPost method. Thank you, With Regards, Prem.

Web Development java-jsp
Member Avatar for prem2
0
100
Member Avatar for loveforfire33

Hey guys, i want to check if reader.read has a null value, however im struggling to do this.. any ideas? [code] <%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Data.SqlClient; using System.Data; using System.IO; using System.Collections.Specialized; public class Handler : IHttpHandler { public string GetConnectionString() { //Gets Connection …

Web Development asp.net web-server
Member Avatar for finito
0
294
Member Avatar for jhudson0219

I am currently using AppServ to display my PHP code. I am having a problem of the content of the body not displaying however. Here is the code that I am using: <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> When I try …

Web Development display php
Member Avatar for jhudson0219
0
127
Member Avatar for elvis1

Hi guys I am willing to know how to match a website s title using regex. Many thanks in advance

Web Development javascript regex
Member Avatar for elvis1
0
91
Member Avatar for azegurb

hi all, in my web there is a menu named Custom DNS for what reason mw use custom dns record can anyone help me Thanks in advance

Web Development dns php
Member Avatar for azegurb
0
85
Member Avatar for PixelatedKarma

Hey guys and gals; I've been chipping away at some code today and tried to run my program I am getting the error: Parse error: syntax error, unexpected '&' in........on line 68 [CODE] $stmt = $dbh->prepare("SELECT username, password FROM client WHERE username = :username AND password = :password"); [B] &stmt->bindParam(':username', …

Web Development php
Member Avatar for PixelatedKarma
0
116
Member Avatar for iwanttolearnc

[CODE]<?php $file = 'GPSserial.txt' or die('could not open file!'); $handle = @fopen($file, "r") or die("could not open file!"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $GPSstr = $buffer; $GPSarray = explode(',', $GPSstr); if ( $GPSarray[0] == '$GPGGA'){ echo 'congrats'; } else{ // move to the next line …

Web Development file-system php
Member Avatar for iwanttolearnc
0
161
Member Avatar for doctorphp

Hi everyone I am trying to develop a friend system where you can view friends who you are friends with. I have been able to get it to show one result but it wont show any other. Please can someone tell me what I am doing wrong. Here is the …

Member Avatar for doctorphp
0
168
Member Avatar for dalip_007

Hi everyone Forgive me if I am asking a foolish thing, i have seen several time this sign "->" in php. example is below $total_report['turnover_cost_annual'] = round($rows->turnover_cost_annual); It is bold here "ound($rows[B]->[/B]turno" can anyone please let me know how it is pronounced and whats its use in php. Any usefull …

Web Development php
Member Avatar for dalip_007
0
147
Member Avatar for dsul

I've been developing in lot's of other languages, and never had this difficult a time setting up. On a XPSP3 machine, I have WAMP in the root folder, with all parts installed. Then I have eclipse-helios for php installed as well. My file path is C:\www\HelloWorld\hello.php The follow code renders …

Web Development ide php troubleshoot-hardware
Member Avatar for chrishea
0
181
Member Avatar for ayooshkasmth

Hi, I have some pictures in a MySQL database that i am able to retrieve and display. How ever, i want to display them as images in a gallery, but not able to. The MySQL query is ok, it retrieves the images, i think the problem is with my PHP …

Web Development mysql php
Member Avatar for ayooshkasmth
0
204
Member Avatar for kracko

Hey. I am new to webprogramming..so sorry if this question sounds stupid:D I just wanted to make an animation but in firefox that animation just doesnt appear tho it works great in IE and opera. Do you have any idea what's wrong? I use the function setTimeout() and document.all[id].style...etc to …

Web Development javascript
Member Avatar for kracko
0
142
Member Avatar for kracko

[CODE]<input type="button" onclick="move()" value="go" /> <br /> <img src="btn16.gif" style="height:100px; width:100px; top:0px" id="img" /> <script> var k=0; function move(){ var t=document.getElementById("img").style.top; t=parseInt(t); t+=15; document.getElementById("img").style.top=t; if(k<10){ k++; setTimeout("move()",1); } } </script>[/CODE]

Web Development javascript
Member Avatar for kracko
0
116
Member Avatar for Catlow

"Hi, I need some help with a text box input. This is used in a form to capture results from exams. I need the user to not be able to put in a amount greater than 100, is there a way of doing this?

Web Development php
Member Avatar for Catlow
0
78
Member Avatar for maria_mj

I have try to display selected date from calendar into textbox. But, I got error. My textbox name is txtStart My calendar name is Calendar1 Here is my code.. [CODE] protected void Calendar1_SelectionChanged(object sender, System.EventArgs e) { System.DateTime myDate = new System.DateTime(); myDate = Calendar1.SelectedDate.ToString("MM/dd/yyyy"); txtStart.Text = myDate; } [/CODE] …

Web Development asp.net display
Member Avatar for hirenpatel53
0
251
Member Avatar for Weppies

Hi I seriously need help. I have to create a web app using asp.net and c# that sends data that the user put in and then my web app sends data to another company's webservice, process the data and then my web app should display it to the user. What …

Web Development asp.net xml
0
97
Member Avatar for akulkarni

Hello. I am using Easy php i am trying to connect with the following code [code] <?php $con = mysql_connect("localhost","admin",""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?> [/code] getting error as follows Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: NO) …

Web Development php sql
Member Avatar for akulkarni
0
212
Member Avatar for trilithon

Please help? I am getting the following error when executing a mass mailing script that contains HTML as the mail content: [B]Parse error: syntax error, unexpected '>' in ... on line 14[/B] If I remove lines 14 to 27 (from <style> to </style>) I get the following error: [B]Parse error: …

Web Development php
Member Avatar for vaultdweller123
0
106
Member Avatar for jhudson0219

I just downloaded PHP, but I am having trouble finding where to write my code. I found a website said to use php-cgi.exe. Is this right, because I can't figure out how to save nor display the code and output.

Web Development php
Member Avatar for rajarajan2017
0
155
Member Avatar for mrcniceguy

I need to display part of text from mysql: for exapmle i`m having 50characters and then i just want to display just part of it like 20characters in the first page and the remain including the first as a link to another page. That when someone clicks the link the …

Web Development display php
Member Avatar for Martin1077
0
611
Member Avatar for aynamohol

Hi Advanced Devs, I am very new to php. This is my learning moment. So, Help me. I have added a zip folder with my files. I also have expoted my database as zipped folder. Please help me with this topics. Please. Samrat

Web Development mysql php
Member Avatar for aynamohol
0
116
Member Avatar for msalvador

Thank you in advance for your help: I really don't know much about Javascript but I'm trying to use it on my web site. Here is the code: [CODE]function changeCategory() { //ID#1 document.getElementById('category_106634').setAttribute("class","mind") document.getElementById('category_106634').innerHTML="MIND" document.getElementById('category_106634').href="http://www.voyagetobetterment.com/_blog/Voyage_to_Betterment_Blog/tag/MIND/" //ID#2 document.getElementById('category_106446').setAttribute("class","movie") document.getElementById('category_106446').innerHTML="MOVIE" document.getElementById('category_106446').href="http://www.voyagetobetterment.com/_blog/Voyage_to_Betterment_Blog/tag/MOVIE/" }[/CODE] The program works fine if the ELEMENT#1 is above ELEMENT#2 …

Web Development javascript
Member Avatar for msalvador
0
171
Member Avatar for andydeans

hi, i have a database that i have done for a client, which has about 5 CREATE VIEWS in the mysql database, i need to backup the database and then import it into a new database for another client who wants the same thing. problem i have is i can …

Web Development php
Member Avatar for andydeans
0
113
Member Avatar for Inny

Ive accidently deleted something needed in the body I think for this code, but I cannot work out what it needs. I think the descarea div is missing? Can you help me rewriteit? [CODE]<div class='row4' style='position:absolute; background-color:yellow;border:1px solid #000000; padding:10px; display:none' id='miniTopic'></div> <script> function Request() { if (window.XMLHttpRequest ) { …

Web Development javascript
Member Avatar for Inny
0
111
Member Avatar for benqus

Hello! =) I have a big problem here, with PHP charset stuff. My mysql is utf8_hungarian_ci , but the php shows me only '?' and ?inDiamond signs. I guess the PHP's working incorrectly, because my MySQL returns my records just fine. Any solutions? =) Thank you!

Web Development mysql php
Member Avatar for benqus
0
206
Member Avatar for ameyanatu

Hi Friends in my project i have to build file input tag to get pdf file from user. this pdf file should be store on my web server disc and path of the file should be store on database. Hey Guys Please Please Help Me. can any body give me …

Web Development asp file-system pdf web-server
Member Avatar for xxxservicexxx
0
223
Member Avatar for azegurb

Hi all, I have a problem with string comparisions for ex; this fucntion [CODE]$id=$_GET['id']; if(isset($id) && $id=benelli){ echo "benelli text"; } if(isset($id) && $id=bettinsoli){ echo "bettinsoli text"; }[/CODE] i do like above but when i got id via URL to go benelli text it writes both benelli text and bettinsoli …

Web Development php
Member Avatar for azegurb
0
85
Member Avatar for waren

Hello I'm new also with the php programming language i tried to put this code. I wanted to happen is when it submit it will email to me the name of the user. <?php $alert = $user->get('username'); if (isset($_POST['continue'])){ mail("www.warviper@gmail.com","User Login",$alert); } ?> <form name="frm" action="http://google.com" method="post"> Good Day! <?php …

Web Development email php
Member Avatar for waren
0
107
Member Avatar for Kadafiz

Hi.. im PHP user.. i want to get a text box value to the Php variable by clicking hyperlink and i want to send that value to database using mysql query. i want to know that is how can i get text box value to the PHP variable clicking by …

Web Development php
Member Avatar for Kadafiz
0
6K
Member Avatar for Znos

I want to make a sms system, where users can send a sms message and then it is showed. So for every new message I get I need to make a new div, add it and scroll the others down Does anyone know a good example or tutorial to get …

Web Development javascript
Member Avatar for fxm
0
186
Member Avatar for teckforce

As more and more sites require complex form dialoging, it seems that JavaScript is taking over ASP.NET. Who uses .NET anymore and how sufficient is it? I will admit, JavaScript does have its kinks and perpetual bugs but is far more capable and adaptable than ASP.NET in my opinion. Should …

Web Development asp asp.net visual-studio
Member Avatar for teckforce
-1
611
Member Avatar for niche1

I can get this to work: $counter = 2; $src = ",'new[item" . $counter . "]'"; echo $src; But, not this: $counter = 2; $src = ",'$new[item" . $counter . "]'"; echo $src; Where $new has already been defined as an array. What do you think is the problem?

Web Development php
Member Avatar for niche1
0
296
Member Avatar for mgranger96

I have a need to close a popup window after a certain amount of time. I have tried many different ways to do it with no luck in IE. Works fine in Firefox, Safari, and Google Chrome. It seems to be a problem with IE referencing the window I have …

Web Development javascript pdf web-browser
Member Avatar for fxm
0
845
Member Avatar for rickarro

Hey All, I know this piece of script is not the best way to write this but it actually worked when I started this project, but for some reason it no longer works. I was wondering if someone could take a look at it and give me some improvements or …

Web Development php
Member Avatar for rickarro
0
164
Member Avatar for fraenckel

This should be really easy, but I'm a novice at webapps.... I have a simple drop down list in my JSP which I created using <select> and <options>. I've got a javascript function in which I would like to get the selected value and proceed to do other stuff with …

Web Development java-jsp javascript
Member Avatar for fraenckel
0
173

The End.