52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anirban1087

Hi, I am working on data entry form using PHP. I have 5 fields, on the 1st field I will entry some data, and a ajax code will populate a list matching the data, on select, next two fields will be automatically field with some data from mysql database. Now …

Web Development php
Member Avatar for Shanti C
0
96
Member Avatar for klemme

Hi everyone, I have pulled data from mysql into an select list in my admin area. [CODE] $query="SELECT id, linklabel FROM pages ORDER BY id ASC"; [I]//I am not sure if the form should be like this...?[/I] '<form name=test id=test action=edit_page.php method=post>'; $result = mysqli_query ($myConnection, $query); echo "<select class=\"boxstyles\" …

Web Development php
Member Avatar for smantscheff
0
134
Member Avatar for abhi10kumar

I searched and did not found enough information on session_name() method. I am using session_name() on some pages but not on all. I am getting problem, if I omit the session_name() method from my code, it will work fine, but if include, it wont work. I have around 100 pages, …

Web Development php
Member Avatar for digital-ether
0
1K
Member Avatar for venkatnams

[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return …

Web Development google-api java java-jsp
Member Avatar for javaAddict
0
174
Member Avatar for McLaren

Hi, I have such js code: [CODE]$(document).ready(function(){ $('#a').click(function() { alert('Handler for .click() called.'); }); });[/CODE] And I have a link in my page [CODE]<a id = "a" href="url">Link text</a>[/CODE] I checked the view source of web page, scripts are loaded, my js file is called bannerUpload: [CODE]<script type="text/javascript" src="/joomla15/media/system/js/mootools.js"></script> <script …

Web Development javascript javascript-jquery
Member Avatar for McLaren
0
325
Member Avatar for bettersaid

Any suggestion what's the best tab to use in loading external pages(html). Im also thinking of adding multiple subtabs within parent tab. I really need expert's opinion on this matter. Thank you

Web Development javascript
Member Avatar for bettersaid
0
158
Member Avatar for tape enterprise

normally to get my items from mysql to an array i use this code [CODE]while($row=mysqli_fetch_array($result)) { $array[] = array('id' => $row['id'] ect...) }[/CODE] anyway I am using some OOP in my code so now I don't know what the row names from mysql are named to use in the while …

Web Development oop php
Member Avatar for diafol
0
90
Member Avatar for lkrvk

Hi bro, this is my frame work of the simple login script. now i want a send the id input to the display.php, without changing this frame work coz i only know this way of making a simple login. [CODE] <?php if (isset($_SESSION['basic_is_logged_in'])) { unset($_SESSION['basic_is_logged_in']); } session_start(); $errorMessage = ''; …

Web Development mysql php session
Member Avatar for lkrvk
0
195
Member Avatar for Casperjames

So.... Pretty strange thing is happening to me. I have a scrolling thumbnail marquee which on click pops up an image box div and replaces the thumbnail with a larger image, sets the src, then re-replaces the thumbnail. This works perfectly on my local machine but when uploaded to the …

Web Development javascript
Member Avatar for Casperjames
0
174
Member Avatar for Verandaguy

I'm currently using Dreamweaver to rework my site. This includes a mix of HTML for most of the content, and a JavaScript menu bar on every page. When I preview the page in my browser, the menu bar is aligned left. Below is the code for my entire page. [CODE]<!DOCTYPE …

Member Avatar for Verandaguy
0
248
Member Avatar for falina2

I'm creating a Dreamweaver CSS site based off a template I purchased. In this site, I want to have page with a gallery of my company's products. So I went to [url]http://smoothgallery.jondesign.net/[/url], used the "Gallery Set" setup, and put it into my web page. It all works GREAT...except the gallery …

Web Development html-css ide javascript
Member Avatar for Taywin
0
107
Member Avatar for infinitus

when i run this in Dreamweaver (website preview) it works perfectly but as soon as i put it into FTP i got this ... [url]http://www.infinit0s.cba.pl/tutorial6/mathgame1.html[/url] here is the code [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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Maths game</title> <script language="JavaScript"> var …

Web Development html-css javascript
Member Avatar for Taywin
0
121
Member Avatar for Fresco Vivir

Greetings everyone i'm working on small project on php and MySQL and i just start to learn them i write a code that allow me to add new field in my table with default value but i wanted to ask can i make the field added to the table with …

Web Development php
Member Avatar for diafol
0
130
Member Avatar for raaboo

Hi, I am trying to generate an sql query to insert several pieces of data, most of which comes from another table, however I have one variable that comes from PHP variables as below: [CODE]insert into scores (AuditID, question_id, available_score, question, question_number, question_section) values ($auditvalue, (SELECT questions.quid, questions.question_value, questions.question, questions.question_number, …

Web Development php sql
Member Avatar for diafol
0
188
Member Avatar for adrianSigamoney

I can resize a textbox at runtime and do other modifications. However I want to move it left or right. I tried textbox1.location = new point (150,200) however the error, location not one of textbox asp... properties appears. Please let me know if there is any help for me. thanks

Web Development asp.net
Member Avatar for adrianSigamoney
0
65
Member Avatar for ShandyElliott

What I have: a. I have a contact.htm page with a form on it. I have a drop down menu in which I have several options the user can choose to select a subject matter. b. a footer (which acts as a site map) on the bottom of all web …

Web Development html-css php
Member Avatar for ShandyElliott
0
199
Member Avatar for BleepyE

Hey guys im looking for an image rotator script with links, so every time the page is refreshed a new random image is displayed. The thing is, i need a script that doesnt have the location of the images in the script. I need a script like the current google …

Web Development google-adsense image javascript
Member Avatar for BleepyE
0
162
Member Avatar for infinitus

i'm having problem displaying number of points scored in a game for every one right answer users scores 2 points... and i'm having little problem in displaying these points in a box below the game :( can any one help me out on that one thank you :) [CODE]<!DOCTYPE html …

Web Development html-css javascript
Member Avatar for infinitus
0
232
Member Avatar for crazycat503

We already have a well-established web based application that runs on php and mysql. Recently, we thought of moving it to desktop application because we need the application to access newly bought scanners. we need to take scan of documents and associate them their respective data/record. before it is moved …

Web Development php
Member Avatar for crazycat503
0
87
Member Avatar for andrewliu

Hello all! I have set up a multidimensional array, and I was wondering how would I update a value within the array? Like how if you update a value in mysql, u use mysql_query("UPDATE.... Simply the same thing I want to achieve in an array. I just wanted to update …

Web Development php
Member Avatar for andrewliu
0
1K
Member Avatar for Julia25

ive been searching for a triple combo dropdown script with go button and cant find one! i found a double combo([url]http://www.javascriptkit.com/script/cut183.shtml[/url]) but im aiming for triple which they can choose country, State and city need help!

Web Development javascript
Member Avatar for Julia25
0
445
Member Avatar for kgizo

Hi what i want to do is pass a php variable in a script i've already got a drop down list now what i want to do is as soon as you click on any province in the drop down menu the cities appear in the text area. what is …

Web Development php
Member Avatar for diafol
0
115
Member Avatar for Kadafiz

i have ID numbers that i want to enter it into my database using filling form by user. so i need to validate this number format. number format should be like this. first 9 numbers and after nine numbers it must have a letter V. (123456789V) i need to validate …

Web Development php
Member Avatar for lyrico
0
2K
Member Avatar for eltonpiko

hi can somebody help me out i have form that the user need to fill and at the end of the form the use have to make a payment via alert pay which they will be taken to the page buy clicking on the alert pay button but haw can …

Member Avatar for Shanti C
0
486
Member Avatar for chris.aaker

I simply want to input some from data into my javascript library. The form has the name "signup" and a link has on onclick property to call the "interface_signup()" function in javascript shown below. This is obviously a ridiculous way to do it, but my attempts to use "this" or …

Web Development javascript
Member Avatar for peter_budo
0
203
Member Avatar for saadi06

Hi I am trying to concatinate anchor tag and it is giving me this error Parse error: syntax error, unexpected T_STRING My code is [CODE]$link.="a href=".test.php/verify_email/$vcode." target=_blank>".Verify email address."</a>"; [/CODE] Can anybody help Thanks in advance

Web Development php
Member Avatar for jigarvyas
0
81
Member Avatar for newbie14

Dear All, I have two .php page. In my main php I call the other via the require_once method. Then in the main .php I declare and assigne variable and I tried to read the value in the require_once php I am not able to see the value. How can …

Web Development php
Member Avatar for jigarvyas
0
93
Member Avatar for newbiecoder

Hello I am trying a code from a book, When I run it at local host and enter a number on the box I get this error : Have requested is not allowed to access the directory. Directory, or to read protected, or can not be read by the server. …

Web Development apache perl php
Member Avatar for happytogether
0
116
Member Avatar for shawtyred74

Hi, I am new to php and I am totally lost on what steps I need to take in order to create a website that will allow a user to login with an email address and password or subscribe or unsubscribe. if they choose to subscribe then they should be …

Web Development php session
Member Avatar for Stefano Mtangoo
0
104
Member Avatar for dave086

Hi, I have searched for this for a long time, but cannot find the answer... sorry if it's simple or is on here already, I did look! Anyway - I'm trying to overlay text from a database on an image using php for use in banner ads for a client. …

Web Development mysql php
Member Avatar for Stefano Mtangoo
0
155
Member Avatar for filch

Hello, I am trying to track down an issue with some content in a couple of popups generated with j-query. If you go to [url]http://streetkids.zuka.net/sandbox/map-new.05.html[/url] and role over and click on ethiopia on the African continent, you will get a map that pops up. On the map you will see …

Member Avatar for filch
0
159
Member Avatar for fazdhli

<html> <head> <style type="text/css"> #apDiv1 { position:absolute; width:595px; height:298px; z-index:1; left: 412px; top: 38px; } --> </style> </head> <title>safarina JavaScript</title> <body align="center"> <div id="apDiv1"> <script type="text/javascript"> function MM_validateForm() { if (document.getElementById){ var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { …

Web Development html-css javascript
Member Avatar for Pnorq
0
330
Member Avatar for hiyatran

I am able to incorporate CSS into the HTML, like this: [CODE]<tr><td [B]style="background-color:#FFFF00;"[/B]>test</td></tr>[/CODE] How can I incorporate CSS into javascript? [CODE]document.writeln("<tr><td [B]style="background-color:#FFFF00;"[/B]>" + "test" + "</td></tr>");[/CODE] The javascript code doesn't work or this is it even possible? Thanks

Web Development html-css javascript
Member Avatar for Pnorq
0
165
Member Avatar for infinitus

i'm having little problem here, i have got timer here that counts down from a set time, but what i want to do now is instead of having timer, i just want to make a counter so if(counter=10) stop the game, and not when time = 0 [CODE]<!DOCTYPE html PUBLIC …

Web Development javascript
Member Avatar for Pnorq
0
195
Member Avatar for showman13

I have a DB table that has a member ID field and a level field... There can be duplicate member IDs because they can have multiple steps There can be duplicate step numbers because multiple members can be on the same step But there should NEVER be a duplicate combination …

Web Development mysql php
Member Avatar for diafol
0
161
Member Avatar for adambeaumont

Good Afternoon, I have been struggling with a minor issue for the past several hours, I need help. ok I know I can use date('Y-m-d', strtotime($date . '+4 day')); for specific days but I need to be able to x amount of days adding to a specific date. Any help …

Web Development php
Member Avatar for adambeaumont
0
97
Member Avatar for MoreBloodWine

First, wasn't sure where to put this so I stuck it here because of the PHP files involved. Any way, what would need to be written into my sites .htaccess file to "ping" a php file when an image is called ? So if I type mysite.com/image.jpg into my browser, …

Web Development image php
Member Avatar for smantscheff
0
276
Member Avatar for 54uydf

I want to put on one of my HTML pages a message box with editing options, just like the one you are using in any forum to post a message (with options like -bold, italic, underline,font color, font size, adding files, etc) where can I get a ready code?

Web Development javascript
Member Avatar for 54uydf
0
121
Member Avatar for showman13

Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked …

Web Development php
Member Avatar for showman13
0
350
Member Avatar for Aser Gado

I am creating a visitor messages system on a member's profile, here is my code so far.. I am using it as an include in the profile page, here is the error I get: [CODE]Error: You have an error in your SQL syntax; check the manual that corresponds to your …

Web Development php
Member Avatar for diafol
0
115
Member Avatar for joshvanslam

Hey, this is my first post here, so greetings lol. Back to the topic, Is it possible to make a text box that can put the text into html code and if so how? Sort of like the box you type your post's with on forums or blogs.

Web Development html-css php
Member Avatar for diafol
0
153
Member Avatar for cliffcc

If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// …

Web Development php unix
Member Avatar for diafol
0
122
Member Avatar for tape enterprise

well I am having a problem with my class I made to connect to my DB ok here is the class[CODE]class database { private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = 'McSteel8'; private $db_database = 'cmte'; public function connect() { $this->link = mysqli_connect($this->db_host, $this->db_user, $this->db_pass); mysqli_select_db($this->link, $this->db_database …

Web Development mysql oop php
Member Avatar for tape enterprise
0
88
Member Avatar for lit108

I am using facebox to display a contact form, however when the user selects submit I would like the action which for this example I shall call action="contact_send.php" to also open in a facebox. Currently it is easy to open a link into a facebox by declaring the rel attribute …

Web Development javascript
Member Avatar for Airshow
0
269
Member Avatar for MDanz

i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // …

Web Development javascript php
Member Avatar for Airshow
0
139
Member Avatar for deucalion0

Hey guys, I have been trying for a few days to create a form on a web page where someone can search my database by keyword, I am having many difficulties figuring this out, and Googling help has probably confused me more. I have a database called links which contains …

Web Development coldfusion
Member Avatar for arrgh
0
648
Member Avatar for filch

Hello all, I am using the zoommap plugin to develop an interactive type map. I am also using the maphilight plugin to create imagemap rollovers/popups. So the functionality is: a world map; rollover a country, it hilites, shows the name of the country. When you click on the country, a …

Member Avatar for Airshow
0
124
Member Avatar for Stefano Mtangoo

I'm doing a project and would like to hear your opinions. I want to make Integrated library system and I want to have these folders 1. classes - where all classes will be stored 2. templates - where all templates will be stored 3. admin - where admin files will …

Web Development php
Member Avatar for Stefano Mtangoo
0
122
Member Avatar for rajandass65

hi, i want to know which framework is best-Zend or yii. rajan

Web Development php
Member Avatar for R0bb0b
0
134
Member Avatar for razerLachesis

im using ajax to load the values into combo box two after the user chose a category from combo box 1. but the contents are not loading in the combo box one. i do know how to do it in php but using html form cant make it work. the …

Web Development javascript
Member Avatar for Pnorq
0
580

The End.