17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Danny159

Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> …

Web Development php session
Member Avatar for twiss
0
136
Member Avatar for CaffeineCoder

Hello; I'm currently working to convert a classic ASP site to ASP.NET. I am getting the error 'Cannot convert type String to System.Web.UI.HtmlControls.GenericHTMLControls' (I'm associating frontend variable to backend). Unfortunately, Google has not been much help on this. Anyone have any pointers on this? An example of this is: Frontend: …

Web Development asp.net html-css
Member Avatar for CaffeineCoder
0
105
Member Avatar for davecoventry

Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave

Web Development php
Member Avatar for davecoventry
0
68
Member Avatar for klemme

Hi, In have created a smallm cms, and I would like to offer customers to download it, instead of only getting access to it, if I design a website for them, AND "attach" the backend to the site. How can I create a download function, so that the whole "system"/CMS, …

Web Development cms php
Member Avatar for diafol
0
99
Member Avatar for Xufyan

Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page, i have done this with form action but i want the error to be shown …

Web Development php
Member Avatar for Stefano Mtangoo
0
361
Member Avatar for IIM

Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user …

Web Development php
Member Avatar for IIM
0
241
Member Avatar for Xufyan

please look at this code, [CODE]for ($count=$num1; $count<=$num2; $count++){ for ($count1=1; $count1<=2; $count++){ echo $count1; } } [/CODE] why this is never ending loop ? when i run this code my browser hanged, why it is happening ??

Web Development php
Member Avatar for Xufyan
0
98
Member Avatar for Supergrass

Hi there, I've this error "Parse error: syntax error, unexpected T_STRING in /home/content/06/8070006/html/wp-content/themes/veryplaintxt/functions.php on line 512". Could anyone please help me take a look and tell me what's wrong with my code? Thanks heaps in advance! :) Sincerely, Gina [CODE]<?php // Produces links for every page just below the header …

Web Development html-css php wordpress
Member Avatar for Supergrass
0
2K
Member Avatar for krunalkakadia

hi guys, i m displaying news titles & it's contents using repeater control. pictorial representation: news Title 1 news Title 2 news Title 3 news Title 4 now, when i click on news Title 1,it's content should appear from my database in between news title 1 and news title 2.same …

Web Development asp.net
Member Avatar for Atul Dhiman
0
222
Member Avatar for dhruv_arora

I wrote this code and when I run the page I get the parse error :- [CODE]Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\view.php on line 30[/CODE] my code is :- i checked my whole code, i was unable to find the error [CODE]<?php $page_title="View Users"; include("header.html"); include("nav.html"); ?> <div …

Web Development php
Member Avatar for karthik_ppts
0
92
Member Avatar for didi00

Hi everyone. I'm making a shopping cart and I found out that I have a small problem. The currency that I want to use (BGN) is not supported by PayPal. I can use euro but the BGN is almost twice less than the euro. What can I do? This is …

Web Development php
Member Avatar for i-hate-blue
0
126
Member Avatar for rouse

Is there a PHP variable that holds the page title? I would like to get a hold of the title of the page that I at,(The text at the top of the browser) for later storage. Thanks!

Web Development php storage
Member Avatar for rouse
0
168
Member Avatar for dhruv_arora

I wrote this code called delete.php, i have another script called view.php which displays all the users in the database and displays a link to delete that particular record using the get method. In the delete.php file it retrieves the id through get method from the view.php file and deletes …

Web Development mysql php
Member Avatar for dhruv_arora
0
161
Member Avatar for apanimesh061

I was going through a tut on the internet about Cookies in JS. So, they told to use this function "getCookie" ! I used that ..... but I cannot understand the use of regular expressions ie using document.cookie.split !! 'cause as far as I know a cookie is just a …

Web Development javascript
Member Avatar for twiss
0
109
Member Avatar for dhruv_arora

I am learning Javascript, I wrote this JS code and it isn't working as it should be, it is meant to reposition the element square. Here's 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>Untitled Document</title> <script type="text/javascript" src="test.js"> …

Web Development javascript
Member Avatar for twiss
0
278
Member Avatar for bipies

Is it possible? I have a php file (and iframe) wich recives a variable from it's main page, then it makes some conversions to this variable to create an URL that should be included in a flv player, I must use html to include the player but I don't know …

Web Development html-css php
Member Avatar for Stefano Mtangoo
0
246
Member Avatar for bipies

Well, all I want is to pass a variable, just one, to an iframe, I know that is something like: [CODE]<iframe src= 'http://blabla.com/bla.php?variable=string'</iframe>[/CODE] and inside the iframe something like: [CODE]$myvar = $_GET['variable'];[/CODE] But my problem is that my variables are URLS, with "?" and "&" so when I parse that …

Web Development php
Member Avatar for diafol
0
871
Member Avatar for jrotunda85

I'm trying to figure out the best way to replace apostrophes in various user input which is all formatted first using [B]mysql_real_escape_string[/B]. Of course this replacement should take place after all input has been sanitized and anything funny removed. :) Any help would be awesome!

Web Development mysql php
Member Avatar for jrotunda85
0
255
Member Avatar for TheNinjaForce

I was looking at this [url]http://www.daniweb.com/web-development/web-design/html-and-css/threads/97183[/url] post and I did everything the guy said, but he did not say how to make up all the files. I made the login, members, and every other file he said make. But now im stuck with a bunch of files and I do …

Web Development html-css php web-design
Member Avatar for maxlipman
0
149
Member Avatar for bipies

Hi everybody! Well my question is as follows, I need to search for a div with a specific ID using php under wordpress, till now I found images and links, but I need to find a specific div ID and copy it, for now tested with this: [CODE] $html->find('$html->find('#divid');'); $html->find('div[id=divid]');[/CODE] …

Web Development html-css php seo
Member Avatar for bipies
0
545
Member Avatar for ashiiiish

How to limit the number of checkboxes to be selected using php???

Web Development php
Member Avatar for ashiiiish
0
129
Member Avatar for ebanbury

Hi I'm currently creating a property website and it allows users to submit upto 7 images/property. Currently on clicking the 'submit' button to Add A Propety my code checks for image size, file type and then moves the file from a tmp location to images/propertyimages file. All the images from …

Web Development image php
Member Avatar for ebanbury
0
216
Member Avatar for asif49

I've been learning php and following the examples on w3schools until I came to this example and now I'm pretty stuck after having tried to make it work for countless hours. This is the bit I'm on: [url]http://www.w3schools.com/php/php_mail.asp[/url] I try to send the email using the following code: [CODE]<?php $to …

Web Development php
Member Avatar for asif49
0
281
Member Avatar for skiabox

I am reading murach's book about jsp and servlets. He uses netbeans(I am using intellij idea) and I am at a point when he uses the META-INF folder that netbeans creates to save a context.xml file there that contains a Resource tag with information about a connection pool. The problem …

Web Development java-jsp
Member Avatar for skiabox
0
290
Member Avatar for programmer12

Hi i just created a website for my church and the IE 9 is displaying it wrong.. Can some1 plz take a look at it and get back with me on why its doing that? [URL="http://www.lgm70.org"]www.lgm70.org[/URL] When i looked at it in IE 8 it shows everything that I created …

Web Development php
Member Avatar for programmer12
0
137
Member Avatar for Dorar

[B]I want to learn by myself any one of web development languages. i dont have an idea about which is best to learn PHP or HTML or CSS or do i need to study each one in order to use each one for some purposes.. what is the difference between …

Web Development html-css php
Member Avatar for twiss
0
2K
Member Avatar for nisrin

im creating a website that deals with the monthly reminders (extracted from Oracle) for my members for a school project. Should I create a login page using JSP or servlets? I am unfamiliar in both the languages. Will I need to establish my connection for each page if I use …

Web Development java-jsp oracle
Member Avatar for javaAddict
0
1K
Member Avatar for rpv_sen

Hi Friends i have some problem in update my dynamic text box value for particular id alone, i want to update only the 2 column fields into my database, i have used the below code. i am not able update the fields into my DB. Please help me to solve …

Web Development mysql php sql
Member Avatar for rpv_sen
0
3K
Member Avatar for PinoyDev

Good day to everyone! I just want anybody to correct my code. The code tells that when i click on the button it will dispay a msg that will confirm if the client really wants to add the information, If yes then he will be redirected to another page, if …

Web Development php
Member Avatar for ivancarrascoq
0
2K
Member Avatar for cjohnweb

I am having trouble with a PHP foreach loop....I know how they work, I think I'm getting unexpected results. A bug perhaps? Am I missing something? [code] if(is_array($array)){ foreach ($array as $k => $v){ echo "<b>#$k</b><br />"; foreach ($v as $kk => $vv){ foreach ($vv as $kkk => $vvv){ if($kkk …

Web Development php programming-construct
Member Avatar for pritaeas
0
244
Member Avatar for apanimesh061

[ICODE] <!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> <title>Events !</title> <script type="text/javascript"> window.onload = function() { document.getElementById('anImage').addEventListener('click', function() { alert('F-15 Tomcat'); }, false); document.getElementById('anImage').addEventListener('click', function() { alert('F-15 Tomcat again !'); }, false); document.getElementById('anImage').addEventListener('click', function() { Alert; }, false); } function Alert() { alert('This is a Two …

Web Development asp.net html-css
Member Avatar for stbuchok
0
129
Member Avatar for heshanm

Hi all, I want to perform cash transactions such as cash deposits and cash withdrawals in my project.Here i have created a page called [B]transaction.php[/B] to fulfill those requirements.But there were few error which i need your help to sought it out.. [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest ) [B]transacion …

Web Development php
Member Avatar for ko ko
0
115
Member Avatar for wickedBlast

Hello community! My first post here. (might probably have been under c#.. filename.asp.cs) I have a web AD management project undergoing as I am currently at testing.. the interface *yay* Extent of the project; pulling a list of employees managed by Mr X. Edit specific fields. I'm building my interface …

Member Avatar for wickedBlast
0
276
Member Avatar for apanimesh061

What is the difference between property1 and property2 in the following code? [ICODE] // create object a var a = {}; // Add property1 to a a.property1 = 1; // Add property2 to a a['property2'] = 2; // Add function 'function3' to a a.function3 = function() { return this['property1'] + …

Web Development javascript
Member Avatar for stbuchok
0
193
Member Avatar for apanimesh061

[ICODE] var a = { one : 1, arr : ['one','two','three'], doThis : function(){return 20;}, two : 2 }; var html = 'a.one = ' + a.one + '<br/>'; html += 'a.arr[0] = ' + a.arr[0] + '<br/>'; html += 'a.doThis() = ' + a.doThis() + '<br/>'; html += 'a.two …

Web Development asp.net javascript
Member Avatar for urtrivedi
0
174
Member Avatar for garromark

Hello, My problem stems from reading an image from the local disk and displaying it. There's a middle step of storing it in a database, but I simplified the problem into this test script that replicates the error: The image "http://example.com/test.php" cannot be displayed, because it contains errors. test.php looks …

Web Development image mysql php
Member Avatar for maxterner
0
308
Member Avatar for knitex

So I'm kinda new to php. I've made a search but i'm looking for some help so that i can add more inputs and it will narrow the results down. for example i search "John" and 100 johns come up. But then i search "john" and then select Canada only …

Web Development mysql php seo
Member Avatar for karthik_ppts
0
152
Member Avatar for iau

inside my database, there is a table name january such as: id | code | 1 | 2 | 3 | 4 2 | 0000 | X | X | O | O when i access the data using PHP and parse it into an array e.g. $array1, It became: …

Web Development mysql php
Member Avatar for urtrivedi
0
69
Member Avatar for atfOnly

Dear all, I need your help :) i have array like this--> $myarray([0]=>a,1 [1]=>b,2 [2]=>a,2 ) i want to split each of the array element, i want to retrieve the part a and b of each array elemet and (maybe) store it in different array like this: $myarray1([0]=>a [1]=>b ) …

Web Development php
Member Avatar for atfOnly
0
137
Member Avatar for cjohnweb

Hello! I've come across a little problem with Regex, I was hoping someone might see the problem off hand. Here is some sample content I am searching through, It's the gameshark codes for PEC: [code] #Ace Combat 3 Electrosphere#SLPS-02021#SLPS-02020 §N Joker Command D00BF32E ???? "Infinite Time for battle D0054332 2442 …

Web Development open-source php regex
Member Avatar for cjohnweb
0
119
Member Avatar for johnbo100

Hi All, I have a page with a PHP insert form that posts relevant info to the SQL database. At the same time the key value "reg_id" is auto incremented by the DB. How do I get new auto incremented value that has been posted so that I can use …

Web Development php
Member Avatar for johnbo100
0
206
Member Avatar for pantera989

Hi, I need help with PHP/javascript/mysql I am fairly new to this so excuse me for my bad programming skills. I have PHP page which has to update mysql table and HTML table onclick. It updates HTML table ok but as soon as I refresh page it updates all data …

Web Development javascript mysql php
Member Avatar for vibhaJ
0
1K
Member Avatar for 68thorby68

Once again foreach lops are driving me mad. I have a simple multiple select list, where ther user can select one or all of the options [CODE] <form name="checkdata" id="checkdata" method="post" action="test.php"> <label> <select name="sport[]" size="6" multiple="multiple"> <option value="FOOTBALL">Football</option> <option value="CRICKET">Cricket</option> <option value="TENNIS">Tennis</option> <option value="SWIMMING">Swimming</option> </select> </label> <input type="submit" name="submit" …

Web Development php
Member Avatar for twiss
0
139
Member Avatar for thomas6188

Hi everyone, I am using netbeans 6.8 version. I was trying to learn servlet by working around.So i created a html file ,in which i placed a form whose action is given as "login.java" which is a servlet file. But when i run the program and click on the button …

Web Development java-jsp java-netbeans
Member Avatar for dresses623
0
156
Member Avatar for manchurianCEO

Hi, I am working on a website and I am having trouble with the index bar. Perhaps this is the way it's supposed to be but I though a PHP meant only having to have one file for all the pages. So, When I click to a link that gets …

Web Development html-css php
Member Avatar for diafol
0
122
Member Avatar for calebcook

Hi. I'm not sure if this is possible or not, but I need to be able to SELECT * FROM all the tables in the database. Is this possible? Thanks!

Web Development mysql php
Member Avatar for oab2003
0
1K
Member Avatar for jrotunda85

Any chance the wonderful people here on daniweb could help me again with a loop? My apologies, loops are not my thing :| Basically what I'm trying to do is add a condition where on the last tweet (that is where the loop = $nooftweets), that tweet gets a different …

Web Development php
Member Avatar for jrotunda85
0
117
Member Avatar for tstory28

[CODE] <?php include("connect.php"); echo "<h1>Register</h1>"; $submit = $_POST['submit']; $name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']); $password = strip_tags($_POST['password']); $confirmpassword = strip_tags($_POST['confirmpassword']); $level = 0; if ($submit) { $namecheck = mysql_query("SELECT email FROM users WHERE username='$username'"); $count = mysql_num_rows($namecheck); if ($count>0) { die("Email address is already taken!"); } else if ($email&&$password&&confirmpassword) { …

Web Development mysql php
Member Avatar for cjohnweb
0
488
Member Avatar for Geertc

Hello, I have installed a site locally (apache 2.2) and I am now adjusting the settings. I have set my include_path like this : [CODE]set_include_path(get_include_path() . PATH_SEPARATOR . PATH_LIBRARY);[/CODE] When I try to include files from directory beneath the include_path, I get a fatal error, and I get the include_path …

Web Development apache php
Member Avatar for Geertc
0
94
Member Avatar for johnbo100

Hi all, I've pulled most of my hair out over the last few days and need some help. Description: I am creating a db application with dreamweaver and using php and mysql server behaviour. My database consists of losts of many to many tables that are necessary. I have created …

Web Development ide php
Member Avatar for ko ko
0
404

The End.