No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
49 Posted Topics
I am creating a web site and have written css postions etc using % so that it will look the same on any monitor size. So when I view the website on my own laptop which resolution is 1366 x 768 it looks perfect however when I view it on … | |
I have a gridview that displays client details and a button to allow the clients details to be edited. A modal pop up is used to edit the client details with the text boxes prefilled. What I was wanting to know is if there is a way to only display … | |
I have an application that uses microsoft access as the database. The application is to allow users to book appointments online. I would like to include an email reminder service so that an email is sent to the user 24 hours or so before their appointment. Not sure how I … | |
Hi I have a webform to allow users to register this information is stored in a Clients tables but I would like some of the information to be stored in another table that will store the username, security question and answer. I tried using two separate insert commands but it … | |
Hi I am creating a database that will help monitor attendance at uni. We were given the following spec. Each course is made up of a number of modules. Students enrol in 6 modules. Each module has a timetable which includes times of classes. Class can be a lecture, tutorial … | |
Hi I am currently creating an appointment system for a hair salon. At the minute clients are able to book an appointment by selecting the neccessary options from drop down lists. However I would like it to be an interactive calendar so clients can see available time slots for a … | |
Hi I have just completed the opnet CSMA/CD tutorial and my lecturer would like us to run additional simulations and then generate graphs. I know how to do that but what im unsure of is that he wants us to include graphical plots for collision count vs transmission attempts, I'm … | |
Hi I have a calendar extender in the edititemtemplate section of a gridview. I need to set the start date to the current day. I did this on another page by writing CalendarExtender1.StartDate = DateTime.Today; However as the extender is in a gridview it isn't appearing in the back end … | |
Hi I have a page for users to edit their details, I've used the following code to prefill the form. protected void loadData() { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = ConfigurationManager.ConnectionStrings["ProjectDatabaseConnectionString"].ConnectionString; conn.Open(); DataTable dt = new DataTable(); DataSet ds = new DataSet(); ds.Tables.Add(dt); OleDbDataAdapter da = new OleDbDataAdapter("SELECT * … | |
Hi I've ran into this error and have been looking at it for about an hour now and can't get it fixed. cmd.CommandText = "INSERT INTO Appointments (ClientName, Period, Time, Treatment, Stylist) VALUES (@cName, @cDate, @cTime, @cTreat, @cStylist)"; cmd.CommandType = CommandType.Text; cmd.Parameters.AddWithValue("@cName", txtCName.Text); cmd.Parameters.AddWithValue("@cDate", txtDate.Text); cmd.Parameters.AddWithValue("@cTime", DDLTime.SelectedValue); cmd.Parameters.AddWithValue("@cTreat", DDLTreat.SelectedValue); cmd.Parameters.AddWithValue("@cStylist", … | |
I keep receiving this error and I'm unsure how to fix it. The code I have is protected void AddUserToDatabase(String username, String Password, String Email) { OleDbConnection conn; OleDbCommand cmd; using (conn = new OleDbConnection(ConfigurationManager.ConnectionStrings["ProjectDatabaseConnectionString"].ConnectionString)) { using (cmd = conn.CreateCommand()) { cmd.CommandText = "INSERT INTO Users(username, password, emailAddress) VALUES(@username, @password, … | |
Hi I am new to using Microsoft Access as a database for Visual Studio (previously I used SQL Server) so I am unsure how to go about the usual tasks such as accessing the database. At the minute I am trying to write code to check if a username already … | |
Hi, I have a gridview that takes information from a MS Access database. The gridview is populated with information that is inserted into the database via a form. I would like to give the user the option to edit the row's if there is a mistake or something needs to … | |
I'm pretty new to coding with Python and I am trying to save a users username in a session variable which should be a new entry in the session dictionary. The code I have is from bottle import route, request, debug, run, template session={'logins':0} def checkLogin(name,password): if name==password: return True … | |
I have the following web crawler code and would like to add a limit as to the depth of the search but unsure how to implement this. import urllib2 def getAllNewLinksOnPage(page,prevLinks): response = urllib2.urlopen(page) html = response.read() links,pos,allFound=[],0,False while not allFound: aTag=html.find("<a href=",pos) if aTag>-1: href=html.find('"',aTag+1) endHref=html.find('"',href+1) url=html[href+1:endHref] if url[:7]=="http://": … | |
I am creating a page scraper and would like to include a text file that contains the words such as 'a', 'the', 'on' etc. But not sure how to do this, i think I have created the file fin=open("ignorelist.txt","w") for line in fin: but not sure how to go about … | |
I am attempting to code an electronic appointment system in C#. What I was hoping to accomplish would be a web page that would display times down the side and dates along the top (3 days at a time). when a user selects a time on a date it will … | |
Hi I am creating a webcrawler and would like to set a limit for how many steps from the original seed can be taken, when the limit is reached the web crawler should terminate. Not sure how or where abouts to add it to my code import urllib2 def getAllNewLinksOnPage(page,prevLinks): … | |
I am creating a php page that allows users to add a new letter to a letter archive that is saved to an XML file. One of the form elements is recipient with a text box. I would like to add a button that when clicked it will bring up … | |
Hi I am beginning by final year project which is an appointment system. I had planned to use Visual Studio and SQL Server for this but at the end of the year I have to submit my system to the uni on a disc, I was just wanting to know … | |
I have a javascript table that displays contents from an XML file(that stores letter details), I have at each row a view button which I would like the user to be able to click and it will display the letter details for them. Is this possible? The javascript I have … | |
In my XML file each record of letter has an ID such as: <letter id="1"> <title>Test</title> <author>X</author> <recipient>X</recipient> <text>testing</text> </letter> <letter id="2"> <title>Test</title> <author>X</author> <recipient>X</recipient> <text>testing</text> </letter> I have an html page or I can change it to PHP whichever is easiest to do this, but I would like to … | |
Hi I have a web application that stores detail about letters in an XML file such as recipient, sender, title etc. On my HTML page for creating a letter I have given an option to include a URL which is then saved to the url element in the XML file. … | |
Having trouble getting my XML schema to work with my xml file. The layout of the xml file is: <catalogue> <nextID>02</nextID> <letters> <letter> <title> </title> <sender> </sender> <recipient> </recipient> <text> </text> </letter> </letters> </catalogue> the xml schema layout I have is: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="catalogue"> <xs:complexType> <xs:sequence> … | |
Hi I have an XML file that is storing numerous books and their details, I then have a PHP page that is to search the XML list by Author. This I can do but I was wondering how I can style the page for when the search button has been … | |
Hi I am starting my final year project and was wanting to know how to connect visual studio to my database. I am using phpmyadmin which is on the uni's server so I can work on it at uni and at home but I am having trouble finding out how … | |
Hi, I am starting my final year project and was looking for some advice on what more experienced coders think the best database for me to use would be? On placement I was using visual studio to code and sql server for stored procs, is this the best way for … | |
Hi, ive a piece of code which i have to modify so that the output is modified to appear as a table. The code is to do with buying songs etc, the output is Beatles Abbey Road Come Togeher Something Revolver Taxman Yellow Submarine Eleanor Rigby Oasis Be Here Now … ![]() | |
Hi have this piece of code to display images of cameras and a caption underneath which states what type of camera it is. However I cant get the caption to change, i posted this piece of code before and some responded stating i need to '==' not just one. I … | |
Hi I have an array $months which holds the months of the year. I have a funcion echoArray($theArray) which contains a for loop to print out the months as month 1 is January, month 2 is February etc. I now have to create another function reverseArray which will output the … | |
Hi so i have a table created and it is to display the users age in column one, then in the second column half of the age and the last column is to display double the age. I know how to do this part, however the next part is to … | |
Using a php funtion to display an array which contains the months of the year. The function echos month number 1 is January etc. However when I run the code it starts with month number 0 is January, month number 1 is February etc. Anyone know how to fix this? … | |
Not sure if i should be using php or JavaScript however i have a form that uses the following checkboxes td>How do you get to work?</td> <td><input type="checkbox" name="vehicle" value="Train" />Train <input type="checkbox" name="transport[]" value="Bus" />Bus <input type="checkbox" name="transport[]" value="Car" />Car <input type="checkbox" name="transport[]" value="Bicycle" />Bicycle <input type="checkbox" name="transport[]" value="Walk" … | |
Trying to validate a form that contains information about a car. Have all the validation completed apart from part for the registration number, the format it has to be entered is two letters, a hyphen, last two digits of the year its from, another hyphen, then 3 letters. eg GT-00-TRE. … | |
Hi, practicing some javascript tasks and need some help with how to use a for loop to go through an array (which has 10 integers entered by the user). The for loop is to check if there are any duplicates of numbers and then i need to remove the duplicates. … | |
I have the following code that I'm trying to modify so that the speed of the ball will slowly increase over time. Never done any JavaScript coding for animations before so it is quite new to me so any help would be great thanks. <html> <head> <title>Interactive Game</title> <script language="JavaScript"> … | |
Hi, so practicing some web development code and the part im stuck on is when a button is clicked it changes to picture and the caption is supposed to change. However no matter what i try the caption remains the same. The following is part of the code i have. … | |
So i need to write or modify javascript code i think, for what i want to do. The web page im developing displays a table with two arrows beneath, one to go show next and one to show previous. I need the show previous arrow to display an alert box … | |
So i need to create a php table that will take the age of the user (entered via a form) it will then show double the age and half the age. The rows should display the user's age +10 +20 etc. I'm new to php so trying to get my … | |
Hi, i have a question about php functions when using arrays. I have the following task to do: 1.Create a Php array $months which contains the months of the year, “January”, “February”, “March”, … “December”. 2.Create a Php function called echoArray() which accepts an array as a parameter and uses … | |
ive got a webpage that has a login page, it displays the 3 users name and then gives the fields to login. When the user logs in they get to vote for 3 people to be 1st 2nd and 3rd. I have to change the following code so that on … | |
Hi does anyone know how i can change the following code so that if theres no checkboxes selected the error message will show. function checkAllArtists() { var checkedValue=document.gridForm.checkAll.checked; for (var i=0; i<document.gridForm.elements.length; i++) if (document.gridForm.elements[i].type=="checkbox") document.gridForm.elements[i].checked=checkedValue; } function countChecked() { if (document.gridForm.checkAll.checked <=0) alert("Please select an artist"); return true; } … | |
Hi i was just wondering if anyone knew how to generate a drop down menu with sql. The section of code i have that has to be changed is <div> <span class="bold">Choose a lecturer:</span><br> <?php // note how the keyword "distinct" in the following query prevents duplicate values from being … ![]() | |
I have a webpage that allows 3 users to login and vote, at the login page it displays the 3 users however ive to change the following code so that at the login page it will only display the users who haven't voted yet. What do i need to change … | |
Hi, so ive various number of files and database tables including artist, album and tracks. On the webpage user's can choose and artist, an album then songs or the album to buy. However ive to write code so that when the user selects to buy the album all the tracks … | |
Hi can anyone tell me how I add a row to a database table (gamescores) that will record a userID and the number of points they have gained. I also have to update two session variables and use them to update values that appear on the screen by adding code … | |
Ive an application that displays tracks from a cd and the user has to select which artist it is, how do i modify the code so that it finishes after 5 albums have been guessed. It should then force the user to login again. | |
Hi was just wanting to know that if your using variables do you write it like this: INSERT INTO table_name VALUES ($name) or do you leave the $ out? | |
$dbQuery="select id, name from artists where name like '$keyword%' order by name asc limit 15"; $dbResult=mysql_query($dbQuery); echo mysql_num_rows($dbResult)."\n"; while ($dbRow=mysql_fetch_array($dbResult)) { // for each artist, return the number of albums belonging to that artist // use a separate query here to obtain the number // return the number after the … |
The End.