17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LOVE4CODE

I've created a admin center, that has two seperate login permissions. Admin which can edit listings, etc... and Viewer which can only view listings, and edit 1 or 2 of the listings details and not all of them like the admin. I've seen web-sites where certain text input fields are …

Web Development javascript
Member Avatar for benjiei
-1
3K
Member Avatar for aditi_19

Hi, I have a problem. I am storing projectid (varchar) as a field in this format :- DD-NNN where DD is the last two digits of the year and NNN is the next project number within that year (i.e. 09-500 is the 500th project in year 2009). The user has …

Web Development mysql php
Member Avatar for somedude3488
0
101
Member Avatar for chrispaul8676

Hi, there, i have come up with a dropdownlist that takes data from database. A gridview with checkbox to select and a button to submit the selected rows in gridview and selected data in dropdownlist. i am getting errors. I don't know what is the cause. The dropdownlist will have …

Web Development asp.net web-server
Member Avatar for nccsbim071
0
172
Member Avatar for kralco626

I have a gridview on my "second" page with a SqlDataSource. The data source is configured to take the qurry string "arg" from the url and run a stored procedure with it. On the "first" page i have a gridview and one collumn is links. Click on this link and …

Web Development asp.net open-source
Member Avatar for dsweb1017
0
508
Member Avatar for itisnot_me

ok what i am trying to do is see if multiple values are all yes. idk if what i think is right, actually is right. [CODE] $1 = "yes"; $2 = "yes"; $3 = "no"; if ( ($1 && $2 && $3) == "yes" ) { $thing = "you"; } …

Web Development php
Member Avatar for itisnot_me
0
80
Member Avatar for Ana D.

Hi, I'm trying to populate my TreeView based on my Directory Structure. Actually, what I need is just the files and directories present in one folder. I found a lot of pages, blogs and posts about this, but all the solutions require the TreeView to be inside a form. The …

Web Development asp.net
Member Avatar for Ana D.
0
232
Member Avatar for whiteyoh

Hi All, In the following code, the selected row from mysql database it populated in each cell, except for the "Content", where the syntax is slightly different, and obviously incorrect. Please can somebody take a look at it for me and advise where it needs to be changed. Thanks [code] …

Web Development html-css php
Member Avatar for whiteyoh
0
297
Member Avatar for anuj_sharma

Hey Guys, I have added a DetailsView to my page and i have enabled editing but when i click on update all the fields are editable. I want only only one row to be editable and all other rows to be ReadOnly. Please suugest some ideas on how to make …

Web Development asp.net
Member Avatar for nccsbim071
0
87
Member Avatar for k2k

hi, if i left a field blank in my table. when i tried to retrieve all the info out to the form. the text box supposed to have blank (because the corresponding field in the table is blank) appear a "/" ... i have tried to use trim() ... stripslashes() …

Web Development html-css php promotion
Member Avatar for k2k
0
335
Member Avatar for laghaterohan

i have calendar placed on my form i have one textbox n a button("Show date") When the user enters date in the textbox say 29/07/2008 and click on the show date button the calendar should show / reflect that date.. how to achieve this...i knw...it ll b simple but am …

Web Development asp.net
Member Avatar for laghaterohan
0
128
Member Avatar for tones1986

Hey all i have the following code: [code=php] <?php include 'config.php'; ?> <!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> <link href="design.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search for <?php echo "$_POST[boat]" ?></title> </head> <body> <?php $port1 = $_POST[port]; if (isset($port1)) { echo "This …

Web Development database-design html-css php
Member Avatar for tones1986
0
91
Member Avatar for anuj_sharma

Hey Guys, I have a databound dropdownlist which has the following data items: Select Approved Disapproved I want that if the user selects "Select" then he should not be allowed to submit it. Plkease help.

Web Development asp.net
Member Avatar for kameswari
0
101
Member Avatar for ArunRaj.SRM

Hi, I'm having a page like below : [code=jsp]<html><head><body> <FONT COLOR=RED SIZE=5> <%@page import ="com.ui.CTransactionManager"%> <%@page import ="com.ui.CUser"%> <% String UserId = request.getParameter("UserId"); CTransactionManager objmanager = new CTransactionManager(); CUser user = objmanager.getUser(UserId); String m_staff_id = user.getStaffId(); out.print( "Staff Id : " +m_staff_id ); %> </font></body></head></html>[/code] here i want to pass …

Web Development java java-jsp
Member Avatar for ArunRaj.SRM
0
165
Member Avatar for gnarly

Hi, I'm Wyatt, and this is my first post! So I have an idea for a website. I'm decent at C++ and I only know some basic html. Now I want to pick up a new language to code my site. As I googled the functions I needed, PHP came …

Web Development php
Member Avatar for SamSam2020
1
178
Member Avatar for madcour80

Hello all, I have a web form with a submission confirmation message that I would like to display for 10 seconds (after the page returns from the "Submit" event) and then hide after the 10 seconds has elapsed. I decided to use the System.Web.UI.Timer object, set it's interval, enable it, …

Web Development asp.net
Member Avatar for madcour80
0
300
Member Avatar for veledrom

Hi, I use a submit button to go to next page with posting a value. When i click on back (button in the browser) to go back to previous page, it says "Page is expired. Information must be send to display this page erc etc". I don't want to face …

Web Development php
Member Avatar for Airshow
0
114
Member Avatar for 68thorby68

After many frustrating hours and web searching I cannot figure out why the move_uploaded_file is appending the names of already already created files to the name of new files. As you will be able to tell from my code I an pretty new to PHP. However, I have a pretty …

Member Avatar for 68thorby68
0
235
Member Avatar for jbd4d

So this question may be a little hard to follow, but here i go anyway. I am trying to create a table in mysql that is comprised of only the email addresses that show up multiple times in my origianl table. More specifically, the original table has a record for …

Web Development php
Member Avatar for xpartmgr
0
87
Member Avatar for Ana D.

Hi, I'm binding a TreeView using the SiteMap Data. Near to each node, I have a checkbox so that the user can select the node he wants. I need to iterate through the tree checking if the node is checked and if so, write something like: Home - Node1 - …

Web Development asp.net
0
73
Member Avatar for veledrom

Hi, I want to create quick preview window for images listed in my website. For example: if you go to this site [url]http://www.templatemonster.com[/url] there are little images on the right end side. When mouse over on any image, a bit preview window opens. I want something like this. How can …

Web Development javascript
Member Avatar for essential
0
135
Member Avatar for sleign

hey I'm having a problem trying to get some variables passed on a form to another page where the processing is handled. basically what I'm trying to do is display the titles of pages from a website that are stored on a mysql database. those titles are passed thru a …

Web Development first-post php session
Member Avatar for sajif
0
171
Member Avatar for elnuk

how to prevent unauthorised user from accessing a file by typing the URL directly using a servlet as the preventive measure is what has been a sore for me for some time now.i would be very grateful for any opinion.thanks

Web Development java-jsp
Member Avatar for elnuk
0
778
Member Avatar for anuj_sharma

Hey Guys, I have a textbox in which a ID is stored. ID has type int in the database. I want to compare this Textbox ID with the ID in the databse. I tried to use: int ID=Convert.ToInt32("TExtboxID.text") I got an error: NullReference Exception was handled by Usercode Please help.

Web Development asp.net
Member Avatar for anuj_sharma
0
159
Member Avatar for sfrider0

I have created a database. It just contains information about websites. One column has the path to an image, like a rating system(1-5 stars). I just need to display this information on a web page. Everything shows up fine, but I just need it to display the image instead of …

Web Development image php
Member Avatar for sfrider0
0
168
Member Avatar for sanjaypandit

i want to make a form which is shows in following image.(screenshot) in which first field comes from database.echo values. in second fields same value come from database. now in third text field i want to show these values example e.g value of first fields>>>> jaisingh value of second field>>>jairam …

Web Development php
Member Avatar for sanjaypandit
0
112
Member Avatar for ctyokley

I have a select case to chose what is true. THe problem is if the information isn't in the database, it automatically skips to the else however i dont kno why. I have a function that returns an errmessage once it is returned then i use the select case. the …

Web Development asp.net
Member Avatar for ctyokley
0
149
Member Avatar for toXXXic

Hi, I am trying to load an Rss link and add the data into an array. Here is what I am trying: [ICODE]<?php $doc = new DOMDocument(); $doc2 = new DOMDocument(); $bbcLink='http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml'; $cnnLink='http://rss.cnn.com/rss/edition.rss'; $reutersLink='http://feeds.reuters.com/reuters/scienceNews'; $doc->load($bbcLink); $arrFeeds = array(); foreach ($doc2->getElementsByTagName('item') as $node) { $itemRSS = array ( '<p class="style1">' => …

Web Development php xml
Member Avatar for ShawnCplus
0
233
Member Avatar for Ana D.

Hi, [CODE]I'm trying to allow sorting my gridview writing in the code behind page. My code for Bind the GridView is like this: Private Sub BindMyGridView() Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("MyServer").ConnectionString) Dim adapter As SqlDataAdapter = New SqlDataAdapter Dim selectSQL As String = "SELECT * FROM Clients WHERE id = …

Web Development asp.net
Member Avatar for Ana D.
0
123
Member Avatar for kako13

Hi, I'm was asked to create a search engine. The same search on data in a MySQL service. Right now it work, but the search query is not powerful. How I can improve it and make it a good search engine? [CODE=php] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Web Development html-css php
Member Avatar for kako13
0
162
Member Avatar for keanoppy

[code]echo "<td> <input type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value="; echo $row['name']; echo " /> </td>";[/code] currently,if there is a value in column name,i.e mr john, only mr will be shown in the value.i've check with my mysql_fetch_array and all others,seems like when i echo $row['name'] outside the <td>,mr john will appear,only …

Web Development php
Member Avatar for almostbob
0
115
Member Avatar for khr2003

Hi I have a table which I am trying to pull some data out of. I am trying to select all the data where one field matches two numbers. [CODE]mysql_query ("SELECT articles.*,articles_comments.* FROM articles LEFT JOIN articles_comments ON articles.id= articles_comments.articleid WHERE articles.cat_id='$cat_id' AND articles.status='1');[/CODE] what I want to do is …

Web Development php
Member Avatar for khr2003
0
68
Member Avatar for simplypriti

Hi All, I need information of a better Java hosting service (better in terms of performance, security, storage, reliability). So if any of you know such kind of service provider thn kindly let me know ASAP. It would be great help from your side. :) Thanks, Priti

Web Development java java-jsp storage
Member Avatar for ithelp
0
88
Member Avatar for keanoppy

i wanted to make the input type=text name="" to be incremental i.e. a1,a2,a3 according to the loops generated by sql query the question is,how to specify which name to be read to the next page.code fragments might help better yeah? in one of my .php script,i have this fragment of …

Web Development php
Member Avatar for keanoppy
0
93
Member Avatar for Zurompeta

Hi all, Having an issue with "selectedIndex" (for a select field). Basically I'm creating XML code via a server-side PHP file and retrieving this code through AJAX. Once I retrieve the data, I'm placing it in their appropriate fields. This is the XML output: [CODE='XML']<response> <data> <row> <item>ProductEight</item> </row> <row> …

Web Development javascript xml
Member Avatar for Zurompeta
0
101
Member Avatar for k2k

hi, i selected everything from the table and the direct variable $cResult[3] would give me something like "street address with space as delimiter" ... however, when i tried to use it, it will give me only "street" instead of "street address with space as delimiter". does anyone know how i …

Web Development php
Member Avatar for k2k
0
111
Member Avatar for Zurompeta

Hi all, Having a strange issue here. To help explain my situation, I have some images I'd like to include. This first image is of one of two user input forms. Notice in the top left of the picture, the second tab is selected. [IMG]http://www.abexal.org/image_1.jpg[/IMG] The arrow is pointing to …

Web Development html-css javascript
Member Avatar for Airshow
0
205
Member Avatar for Shuel

Hi, i have installed apache 2.2 and have installed php 5.2.9. The installation has taken place succssfully. However when I try to test my php script with a simple <? phpinfo(); ?> I dont get any output in my browser. I have looked throuh the folurms and have tried a …

Web Development apache php
Member Avatar for djjjozsi
0
128
Member Avatar for kdhare

I'm trying to have a form submit to a url with the users selection input from a dropdown. When I submit the form it goes to the search.html page as in the code but is not picking up the prodMFG from the dropdown. Any ideas how to make it work...a …

Web Development php
Member Avatar for kdhare
0
607
Member Avatar for diafol

Hi all. Have been trying to get my head around a problem in my custom messaging system. This is my msg table: id (PK) datetime_posted (datetime) from_id (FK for user id) to_id (FK for user id) title (the title obviously) msg (the body) status (0 = inbox, 1 - removed) …

Web Development html-css mysql php
Member Avatar for diafol
0
83
Member Avatar for whiteyoh

Hi all, The following code should select all data, grab the highest value row (i.e. the newest), and display that exact rows number, contained text and time/date of creation. It is correctly grabbing the row number, but still only grabbing the contents of the first row. I am not getting …

Web Development display php
Member Avatar for whiteyoh
0
90
Member Avatar for whiteyoh

Hi All, The title of this thread is the error i am recieving when running the script below. Im hoping to get it to show all entried from the selected row. [code] <?php $dbh=mysql_connect ("------", "--------", "-----------") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db …

Web Development php
Member Avatar for Menster
0
209
Member Avatar for Angeline5

I have two arrays, Forms and formsShared. [code] <?php foreach ($Forms as $r): ?> $("#shareform<?=$r['Form']['id'];?>").hide(); $(".Share<?=$r['Form']['id'];?>").click(function(){ $("#shareform<?=$r['Form']['id'];?>").toggle("show"); }); <?php endforeach; ?> [/code] Currently, I have this hide and toggle function for each Form in the Forms array. I want these functions to be enabled for the forms in the formsShared …

Web Development php
Member Avatar for Menster
0
303
Member Avatar for OmniX

I would like to know how to display XML in a browser. Also if possible to maniuplate the XML elements. Havent touched based with XML in awhile and still abit rusty. Thanks, Regards X PS: Below is the listed code and below is the wished output. Code : [code] <?xml …

Web Development display javascript xml
Member Avatar for OmniX
0
2K
Member Avatar for tdeck

I'm trapping the onKeyPress event of a textarea, and I'm wondering if there's a way to prevent the key from also being typed into the textarea if it's a certain key. I have tried stripping off the last character from the value property, but it seems that the character is …

Web Development javascript
Member Avatar for tdeck
0
91
Member Avatar for cheapterp

Is there a way to grab data from alternate records in a ColdFusion query? Essentially, what I am trying to do is this: I am querying my database to grab some data. 2 rows of data are returned here. Now I want to set 2 variables - [I][B]var1 = row1.columnA[/B][/I] …

Web Development coldfusion
Member Avatar for macslayer
0
141
Member Avatar for atrophiedsoul

Ok so basically I am creating a ftp loop, that takes dynamic inputs from a previous page (all variables should be present, but naturally may not be formatted correctly... or i wouldnt be posting) So.. I can get it to loop through a connection just fine, but I seem to …

Web Development file-stream php
Member Avatar for atrophiedsoul
0
128
Member Avatar for smasher

Hi ive got this bit of code, trying to reteach myself stuff about PHP ive forgotten and having a general play. However i can only get this code to half work [CODE]<?php include_once("connect.php"); $username=$_POST['username']; $password=$_POST['password']; $email=$_POST['email']; $existing= "select * from CSLE_User where Username = '$username'"; $exist=mysql_query($existing) or die (mysql_error()); $num=mysql_numrows($exist) …

Web Development mysql php
Member Avatar for smasher
0
200
Member Avatar for atrophiedsoul

I could use some assistance in trying to streamline this jumble of code into maybe a function, or at least slimming this down some. with this code I am counting the amount of images in a folder (4 folders actually) and then getting that result, and supposedly adding one to …

Web Development php
Member Avatar for atrophiedsoul
0
103
Member Avatar for trtcom1

Hi there, I am having problems with editing/updating a record. I have 3 tables: Student (studentNum,firstName,lastName,ClassRoom), course (courseID,courseTotalCapacity), course_allocation (studentNum,courseID). I have 3 courses, MATHS=101,BIOLOGY=102,CHEMISTRY=103. The total number of students allowed for each of the 3 courses is courseTotalCapacity = 20. Meaning that only 20 students can register for MATHS, …

Web Development php
Member Avatar for trtcom1
0
464
Member Avatar for tulipputih

I have error on this line.. what should I change..thank you [code=php] mysql_query("INSERT INTO lesson (subject,year,learningArea,objectives,ability) VALUES ('<?php echo $onrow["subject"]', '<?php echo $onrow["year"]', '<?php echo $onrow["learningArea"]', '<?php echo $onrow["objectives"]', '<?php echo $onrow["ability"]' ") or die(mysql_error());[/code]

Web Development php
Member Avatar for tulipputih
0
188

The End.