52,566 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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 … ![]() | |
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 = ''; … | |
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 | |
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 … | |
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 | |
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 | |
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 ![]() | |
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, … ![]() | |
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 | |
![]() | 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 … ![]() |
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 | |
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 | |
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 | |
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 | |
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 | |
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 ![]() | |
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 | |
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 … Web Development html-css javascript-jquery legal php | |
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 | |
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 | |
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 | |
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. … | |
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 … | |
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. … | |
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 … Web Development html-css javascript javascript-jquery | |
<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 ![]() | |
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 ![]() | |
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 ![]() | |
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 … ![]() | |
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 | |
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, … | |
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 | |
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 | |
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 ![]() | |
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. ![]() | |
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// … ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 … Web Development html-css javascript javascript-jquery | |
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 | |
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 ![]() |
The End.