52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for toldav

I need help in troubleshoot my code for reason the if statement is not working. any help please Im new into Javascript/ [CODE] <!doctype html> <html> <head> <meta charset="utf-8"> <title>Grade Calculator</title> <style type="text/css"> body { font-family: Arial, sans-serif; text-align: center; } form { width: 300px; margin: 0 auto; text-align: right; …

Web Development html-css javascript
Member Avatar for Troy III
0
532
Member Avatar for patrick1981

I a form page in an iFrame that when a user submits it brings up a thank you page. But when the thank you page loads, because the initial form page is long users don't get to see the thank you message on the thank you page. So what I …

Web Development php
Member Avatar for diafol
0
116
Member Avatar for pizzipie

I am trying to call a .php or .html file to display an input page for emails. The file ContactDisplay.php contains a <button> to onclick a call to the sendEmail() function which, in turn, sends data to the file ContactEmail.html. The data is retrieved using $_POST and used to populate …

Web Development first-post javascript
Member Avatar for pritaeas
0
204
Member Avatar for afrogfx

I'm Beginner. I need help, please. I am having a small problem in the script I am have in this script ( admin folder) Add contain articles (This page is working to add threads only) My problem in the Page (read_mor.php) i make a query with the database to bring …

Web Development mysql php
Member Avatar for afrogfx
0
6K
Member Avatar for dineshswamy

i tried almost a week to figure out how to insert a hyphen after successful date entry ,in my form validation, but couldnt find appropriate intrinsic event and logic. help me out.. eg: when the user enters 26 the script automatically inserts '-' since 26 is a valid date. Next,when …

Web Development javascript
Member Avatar for dineshswamy
0
105
Member Avatar for drimacus

Hi, this is probably a trivial question but I'm so new to this I would learn a lot from any help... Why does the content in global variable "str" disappear as soon as I unclick the alertbox? How can I keep it? I put the string in a <div> and …

Web Development javascript
Member Avatar for drimacus
0
347
Member Avatar for vlowe

hey, please help me sort this data out. Array ( [0] => Successful response for: set username [1] => Successful response for: set password [2] => Successful response for: set server [3] => Successful response for: services [4] => State Notification acquiring-network [5] => Successful response for: sign-in [6] => …

Web Development client-server php
Member Avatar for vlowe
0
126
Member Avatar for SQLpower

Hello, folks. I do have another issue here, haha. My Cancel script is not working, is not returning the tickets back to the database after I cancel them. I got completely wrong here, some help would be really appreciated. [CODE] <?php session_start(); $tickets = ['tickets']; //$tickets = $_SESSION['tickets']; //$id = …

Web Development php
Member Avatar for Biiim
0
2K
Member Avatar for tukky

Hey guys, I'm doing a project for university and i have hit a wall. I have a gridview that is connected to a database as shown below: [url]http://i40.tinypic.com/fys9i.jpg[/url] (menu is incomplete) I want a drop down box that is populated with the type of food such as (pizzas, burgers etc …

Web Development asp.net
Member Avatar for tukky
0
149
Member Avatar for apa3

Hello everybody - and thanks for fast reply. Well, I have the following need: Once a month I receive a text file with the following content (per line/line content with fixed lenght but different values): 00000035412012013100000000000000000120120131000000000 00000000000000000000000000+0000000002012010000000000200000000000171753-00000000000000000+00000000000000000+00000000000171753-000000000000000000000000000000000000000000+00000000000000000+00000000000000000+00000000000000000+00000000000000000000000LOHN/01 LG 000000000000000000000000000000000000000000000000000+000000000000000000000000000000+000000000000000000000000 0000000000000000000000 0* This is only one line with 480 digits. I …

Web Development php
Member Avatar for apa3
0
248
Member Avatar for bibiki

hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { …

Web Development php
Member Avatar for bibiki
0
112
Member Avatar for spowel4

I need to pass close to 100 variables between pages and I'm not sure of the best way to do it. Any suggestions?

Web Development php
Member Avatar for jstfsklh211
0
144
Member Avatar for SQLpower

Hello, folks. I am facing a really annoying problem here. Well, basically I want my page to check if the user is an admin or not. Whenever I log in and try to access that page i am recieving the error message "You are not admin, leave" [CODE] <?php session_start(); …

Web Development php session
Member Avatar for bibiki
0
236
Member Avatar for kikiritce

I started web application project for online licitation and I use asp.net4.0 Have problem in it’s creation. Those are the conditions I have to realize: -Administrator can add or delete biddings. -Advertiser can add, review, modify and delete biddings. -The user can search biddings, review and participate in them. any …

Web Development asp.net
Member Avatar for seslie
0
119
Member Avatar for simplypixie

I am new to Ajax and have only been learning jQuery on and off for a few months so I apologise if this should be simple. I have followed a tutorial to get shopping cart functionality working using PHP, jQuery and Ajax and it is nearly there but I have …

Web Development javascript php
Member Avatar for AleMonteiro
0
198
Member Avatar for priya500

Hi all . I'm living in India. I hosted my web site in awardspace free hosting plan. can i register my domain name. assign it to my web site ? I like to register my domain name at [url]www.bigrock.in[/url] . is it possible to with free hosting plan like awardspace.

Web Development xml
Member Avatar for gyemen
0
198
Member Avatar for leechang.kevin

Hi, I am building a room availability form that contains a foreign key 'roomNumber' that references the multiple dropdown list that contains the data time starting from 07:00 AM to 09:00 PM from monday to saturday, i can already store the data into the database but my problem now is …

Web Development html-css php
Member Avatar for Biiim
0
798
Member Avatar for ak47carbon

<?php ob_start(); ?> <?php include("connection.php"); //this makes the time in the past to destroy the cookie $aa=$_COOKIE['md']; $bb=$_COOKIE['li']; $h1=$_COOKIE['h']; $m1=$_COOKIE['m']; date_default_timezone_set('GMT'); if (date_default_timezone_get()) { 'date_default_timezone_set: ' . date_default_timezone_get() . '<br />'; date("l, F d, Y h:i" ,time()) .'<br />'; $date_str = date("l, F d, Y h:i" ,time()); //ex:from database $date …

Web Development php
Member Avatar for pritaeas
0
161
Member Avatar for anita_86

Hi all.I found this code on a forum to confirm that the user wants to delete the record from database and that the link has not pressed accidently.But it is not deleting the record even after pressing ok.This is may be because the id is not passed properly. Can anyone …

Web Development javascript
Member Avatar for anita_86
0
173
Member Avatar for feblioz

[code=php] <div id="user-bar"> <div id="user-options"> <div class="notification-container"> <img src="media/gear-faded.png"> </div> <div class="notification-container"> <img src="media/courses-faded.png"> </div> <div class="notification-container"> <img src="media/chat-faded.png"> </div> </div> <span class="profile-container"> <img src="https://openlearning-cdn.s3.amazonaws.com/feblioz-avatar-24-ts1330811171.jpg" alt="" border="0" class="profile-image" align="absmiddle" width="24" height="24" id="myAvatar24"> <span>feblioz</span> </span> </div> [/code] do you know how to make all the images to be in a line?

Web Development cdn php
Member Avatar for karthik_ppts
0
136
Member Avatar for morthea

[COLOR="red"][COLOR="red"]can anyone pls help me im still an IT student, and we have this case study Pizza Delivery system which the user can choose and check all the text box of the pizza size [/COLOR][/COLOR] [CODE]<INPUT TYPE=checkbox NAME="pica10" VALUE="S">10" Php300 <INPUT TYPE=checkbox NAME="pica14" VALUE="M">14" Php450 <INPUT TYPE=checkbox NAME="pica18" VALUE="L">18" Php650 …

Web Development php
Member Avatar for morthea
0
284
Member Avatar for solomon_13000

The code below will add new form elements when ever I click the add button. However when you add more elements the combo box element goes out of alignment. Try it out. Now is there a way to fix this problem?. [U]multientry.js[/U] [CODE] function addValue(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML …

Web Development javascript
Member Avatar for lordjohar
0
797
Member Avatar for tubesnube

Hello. I'm in the middle of updating a site for work and I'm stuck at the moment, so I was wondering could anyone help me out if possible. I'm new to PHP and HTML, been using them for nearly 2 weeks. What I'm doing is that there is 5 forms …

Web Development display email php
Member Avatar for Biiim
0
303
Member Avatar for vizz

[CODE] <div id="navcontainer"> <ul id="navlist"> <li><a href="#" id="current">Item one</a></li> <li><a href="#">Item two</a></li> <li><a href="#">Item three</a></li> <li><a href="#">Item four</a></li> <li><a href="#">Item five</a></li> </ul> </div> [/CODE] This is my code for menus. How to hide "Item two, three, four, five", If "Item one" is clicked (using jquery)?

Web Development javascript
Member Avatar for stbuchok
0
108
Member Avatar for INF-P

I am trying to add pricing to an existing website database, but when I enter a price for an item, it removes it on its own. Please assist me in finding the error? All the files and coding is that of a previous developer.. This is the only file with …

Web Development display php
Member Avatar for INF-P
0
347
Member Avatar for f.sh

actually, i'm developing dynamic template using asp.net and c#. in my usercontrol page i have a listview which is include dynamically created table. once the user edited any of the rows and press the save button before the PageLoad or PageInit i want to execute the ItemUpdating function to save …

Web Development asp.net c# listview
0
122
Member Avatar for Cyre

How can i Transfer my textbox value to the next page? $POST tag creates an error.

Web Development php
Member Avatar for Cyre
0
147
Member Avatar for divsok

[IMG]http://i.imgur.com/UfUjV.png[/IMG] there are more rows on the table and each row has a button.i need to the get first coloum value of each record by clicking the button..

Web Development javascript javascript-jquery
Member Avatar for pritaeas
0
97
Member Avatar for muralibobby2015

Hello, i have a problem with my query. any body give suggestion please. i have two tables named as "users" and "userimages" in the users table there are 1)userid (primary key) 2)name 3)subscription package (Brong or gold) and in the next table "userimages" fields are 1)auto_id 2)userid (foreign key) 3)image …

Web Development mysql php
Member Avatar for karthik_ppts
0
129
Member Avatar for Trizocy

Hello there. I was wondering if anyone here could help me out of this problem :)? So how do you retrieve a cookie? I have try this : ----------------- (Cookie value = Computer and name user ) This is my what is inside my php $myhyperlink=www.google.com/ $linktosite=$myhyperlink 'search='.$_COOKIE["user"]; header('location:'.$linktosite); ------------------------ …

Web Development php
Member Avatar for gotboots
0
122
Member Avatar for Cyre

i have a dynamic table whose values came from the database. the user will select records from the table then save the result to another table. i have the following code: <?php echo "<form method='post' action='save_result.php'>"; $subjects="table1"; $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb").";"; $conn=odbc_connect($connstr,'','') or die("connect error: …

Web Development microsoft-access php
Member Avatar for karthik_ppts
0
142
Member Avatar for bobgodwin

I'd like to get a list of folders that don't contain certain files. I'm using this to list directories & files: [code=php]$path = "media"; $dir_handle = @opendir($path) or die("Unable to open $path"); function list_dir($dir_handle,$path) { while (false !== ($file = readdir($dir_handle))) { $exclude = array(".","..","_player_thumbs","Thumbs.db"); $dir =$path.'/'.$file; if(is_dir($dir) && !in_array($file, …

Web Development audio php
Member Avatar for bobgodwin
0
243
Member Avatar for patrick1981

Hey fellows, I have three database tables AUCTIONS auction_id name description place date BIDDERS bidder_id firstname lastname email signupdate BIDS bid_id auction_id bidder_id biddate I want to create a drop down menu to select and display BIDDERS signed up for each AUCTIONS. I have coded the following in PHP to …

Web Development php user-interface
Member Avatar for karthik_ppts
0
6K
Member Avatar for teedoff

ok I've tried to work through this myself for several days, but there's something I'm missing. Either my queries are wrong, or my functions are wrong. I'm using Ben Fortas CF AJAX dynamic select drop downs tutorial and everything is working with no errors, but I'm not getting the desired …

Web Development coldfusion
Member Avatar for arrgh
0
481
Member Avatar for jayhall

Hi All I found this code online what need, expandable table we have to reserve two rows for each entity, one that will be master row and another that will show details. Details rows are toggled by clicking on master row. What I am doing is in my table second …

Member Avatar for AleMonteiro
0
2K
Member Avatar for veledrom

Hi, The code below always returns Fail although I send correct username and password. Can anyone spot what I do wrong? Thanks in advance [CODE]<?php $username = htmlspecialchars(trim($_POST['username'])); $password = htmlspecialchars(trim($_POST['password'])); if($username == 1 && $password == 1) { echo json_encode(array('result' => 'success', 'username' => 'myname'); } else { echo …

Web Development javascript javascript-jquery
Member Avatar for AleMonteiro
0
141
Member Avatar for knitex

For my code below i use getElementsByTagName('p') to get the values of the paragraphs that the user enters. but for some reason it when i use textNum[0].value it returns undefined. i tested it with textNum.length and the length keeps increasing which means values are being added to the array. not …

Web Development html-css javascript
Member Avatar for AleMonteiro
0
240
Member Avatar for torbatt
Member Avatar for sality63

I can't figure out while the table rows and columns are not display as intended. I have tried everything I could but no solution yet. I'm new to PHP/Mysql. What I actually wanted to see as the output is something like this: [ICODE][B]$days_of_week_rows['week_day'][/B] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] …

Web Development html-css perl php
Member Avatar for sality63
0
177
Member Avatar for jbennet

How can I get SSL working in Tomcat 6.x under Linux?, ive read the documentation here: [url]http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html[/url] but im not sure how to do it with a certificate I will make myself (its a dev box)

Member Avatar for jbennet
0
215
Member Avatar for softDeveloper

Hi all, In my web application I load data from MySQL database into an iframe. Sometimes files bigger than 1 Mb. I make some changes on the file, and afterwards I send it back to the database. The issue is that with this code below I can't send files bigger …

Web Development java-jsp
Member Avatar for peter_budo
0
105
Member Avatar for rosekrans

Hello all, I'm want to do a PHP redirect within a <DIV>. Currently I have written the folowing code, that allows a database entry to be selected and be deleted. [CODE]<?php //This is from a file named delete.php $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); if(isset($_POST['delete'])) { foreach($_POST['checkbox'] as $id){ mysql_query("DELETE from …

Web Development php
Member Avatar for rosekrans
0
164
Member Avatar for Dingo001

Let me say here at the start I am not a programmer, just interested.. I am trying to load a file to youtube on the first day of the month and set the file name as the lastmonth-thisyear.avi like March-2012.avi I have tried this but get an error: File to …

Web Development file-system php
Member Avatar for diafol
0
135
Member Avatar for pbracing33b

Hello I am trying to do a simple program. But the basics of this program must have buttons like a calculator. So I was just testing my array and for loop and I can't seem to get anything to show up whatsoever I've tried document.write, alert and so forth. and …

Web Development javascript
Member Avatar for Troy III
0
97
Member Avatar for Dingo001

Hi I have a PHP error that only occurs when I have a new router attached. I will post the complete code here but it works fine on one router but not another. I have put the problem on a forum for Hardware people but have had no replies. To …

Member Avatar for pritaeas
0
180
Member Avatar for sammry

lastlogin is getting saved as time() in my mysql table and it is varchar mode. querying the database to send out emails to remind my users that they have not logged in from past 30 days SELECT * FROM members WHERE lastlogin = DATE_SUB(CURDATE(), INTERVAL 30 DAY) i tried with …

Web Development email mysql php
Member Avatar for sammry
0
176
Member Avatar for Resentful

This is something I can't find any data on. I've got two database. Database one has a list in it. Database 2 has a list in it as well. I am needing to delete all the entries from database 1 that database 2 also contains. So if database one had …

Web Development mysql php
Member Avatar for Resentful
0
97
Member Avatar for kewl

im having problem with this 2 pages of code i have.the only problem is when im going to display it in another page called view.php added.php [CODE] <?php $type = $_POST['type']; $size = $_POST['size']; $quantity = $_POST['quantity']; $prize = $_POST['prize']; $file = $_FILES['image']['tmp_name']; if (isset($_POST['submit'])) { include('sql.php'); if (!isset($file)){ echo …

Web Development display html-css image php
Member Avatar for kewl
0
205
Member Avatar for zeeshanmughal

Is this possible to pass the php variable to the url? my code is: [CODE] <?php $array1 = array("iphone", "ipad","iMac"); for($test = 0; $test <= 2; $test++) { echo '<a href="https://www.google.com?$array1[$test]">Click me</a><br />'; } ?> [/CODE] How do i do that when i click on the link it will show …

Web Development ipad iphone php
Member Avatar for karthik_ppts
0
331
Member Avatar for shaan_046

0 down vote favorite share [g+] share [fb] share [tw] I have a class in which i have a method name method() returning a String in the form of JSON string. The output is :: [CODE] [{"ID":1,"Names":"Shantanu"},{"ID":2,"Names":"Mayur"},{"ID":3,"Names":"Rohit"},{"ID":4,"Names":"Jasdeep"},{"ID":5,"Names":"Rakesh"}] [/CODE] Now this in the form of data that i want to Populate …

Web Development javascript json vb.net
0
132

The End.