- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 10
- Posts with Upvotes
- 10
- Upvoting Members
- 10
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
Old bit, been dabbling in code for years
- Interests
- Badminton
- PC Specs
- Win7 laptop, Win XP self-build desktop
55 Posted Topics
Re: The age calculator is not quite right because it does not calculate the months correctly. If the current month is less than the birth month then the years are shown as one too many. The months are calculated as 12 minus the birth months, which is incorrect in most instances. … | |
I am trying to connect to a Microsoft SQL server database using PHP 5.6 and am getting the error "could not find driver". I am initially attempting to use PDO but I could use the procedural version if necessary. I have downloaded the SQL server PHP driver and placed it … | |
Re: C++ might possibly get you a job but I suggest that you specialise a bit more and find a specific application of C++ that you can develop some kind of expertise in. for example finance, gaming or communications. | |
Re: Well I'm still using Windows XP on my home desktop and most of the pcs where I work are still on Windows XP. I must admit that I prefer XP to Windows 7, and I don't like the look of Windows 8 even though I have only read about it. … | |
Re: I think you need to make your question more explicit. For example, what is DC? Are you refering to a particular development environment? | |
Re: Hey. You sound desparate. You must be if you posted in this forum rather than contacting klp directly. I guess you don't have any contact details for whoever it is. I hope that you've resolved your issues. | |
Re: Your 'question' is unanswerable. You need to explain what you are attempting to do and maybe add at least a small amount of code, if you already have some. opencart is not a PHP function so what is it? | |
Re: This is quite a wide ranging question. I guess you will need to determine the 'mechanics' of how the user will select inventory items and how many of each. So you'll need a table for storing the users' orders. Will you provide the user with a drop-down list of inventory … | |
Re: I'm not sure about the time questions but the path exists question may be answered by this:- On Error Goto err_handler Open "c:\test.txt" For Input As #1 err_handler: Select Case Err.Number Case 53: Msgbox "File Not Found" Case 55: Msgbox "File Already Open" Case 71: Msgbox "Disk Not Ready" End … | |
Re: Having the content in a database is a good idea. You could have a separate application to allow the editor to submit new items. That application may, or may not be a web application. That way you can keep the application simple. MySQL and PHP are good for this purpose. | |
Re: are you able to connect to MySQL from a Windows command window using the same user id for the MySQL user? It is recommended that you set a secure password for the root user when setting up MySQL. | |
Re: Since you mention 'safe mode' I assume that you are running a Windows operating system. To resolve the upside down screen try using Ctrl/Alt/up arrow. Are you able to get the boot menu to display by pressing F8 during startup (and before the Windows logo appears)? It could be a … | |
Hello. I have a listbox that I would like to display and I would like to set a default selected item, which I will not be able to determine until run-time. Is it possible to set a default item in the program code? I have looked at the Index property … | |
Hi all. Using VB6: I have an application in which I am programmatically populating a datagrid. When I first drop the datagrid on my form, it has 2 columns by default. I can add further columns to them but I wanted to know if there was a tidy way of … | |
Re: I suggest that you change salary += ((salary / 100) * 10); salary += (salary * 0.10); I suspect that although the variable, salary, was specifically assigned as a double, the type was dynamically changed as a result of the expression, because the expresssion resulted in a whole number. | |
Re: I hear you, and I agree. Here's an HTML form: <html> <head> <title>PHP_Email_Form</title> </head> <body> <h1>PHP Email Form</h1> <form action="EmailFormData.php" method="post" name="mailform"> <table align=center cellpadding=5 cellspacing=0> <tr> <td>First:</td> <td><input type="text" name="data1" size="12"></td> </tr> <tr> <td>Second:</td> <td><input type="text" name="data2" size="12"></td> </tr> <tr> <td>Third:</td> <td><input type="text" name="data3" size="12"> <input type="submit" name="Send" value="Send"> … | |
Re: I think you've just learnt an important lesson. Always remember to paste what you want to save from the paste buffer, especially if it's a large amount of program code. I find that opening a simple text editor and pasting text temporarily to it can be useful. I must admit … | |
![]() | Re: If I was designing something like this, I would do it the other way around. By which I mean that, rather than inserting a row with empty columns, I would only insert rows that have data in each column, especially columns that are keys. When each new row is inserted … ![]() |
Re: I can recommend http://today.java.net/pub/a/today/2005/02/09/j2me1.html as a good starting place. | |
Re: Hi Glenn. I'm not Canadian but I have visited Canada and think it's a lovely country. I hope you enjoy Daniweb. | |
I have a VB.NET application that has a site.master with a navigation menu in landscape format. In my default.aspx I have a multiview component. When I select the second view in my multiview the navigation menu momentarily changes to portrait format and then back to landscape format. Ideally, I would … | |
Re: Firstly, I think that password may have been mistyped where you accept the user's input to the variable, $password. I would suggest using a date type field in your table and construct a variable to contain the date, in the format yyyy-mm-dd. I think that's how I have done it. | |
Re: I think urtrivedi's solution is good. I would suggest changing the user inputs by adding a drop-down list of delete options containing 1. by stu_id, 2. by blood group, 3. by Student name, 4. both Student name and blood group. Then build the sql statement according to the user's selection, … | |
Re: You appear to be comparing the element numbers i and j when I think you intended to compare the contents of those elements (myArray[i] with myArray[j] in the condition: if (j>=i). j is always going to be greater than i because you have defined it as i+1 in the loop … | |
Re: You may wish to decrement the number of attempts at some stage. If you want to decrement it when you have received a valid input then you will need to make the if condition body a multi-statement one. (Your current condition does not enclose the statement in braces so therefore … | |
Re: I'm no great expert in SQL but have you looked at the SELECT INTO statement? A simple version of this is :- [CODE] SELECT Column1, Column2, Column3, INTO Table2 FROM Table1 [/CODE] Obviously, you would need to add the WHERE at the end of it. [QUOTE=billmudry;1728075]Before I really dig in … | |
Re: First determine if you have the permission to create a user. [CODE] USE MYSQL; select user,create_priv from user where user = '<your username>'; [/CODE] If the query fails or if the returned row shows a N in the create_user column, then you don't have the permission. | |
Re: I would be wary of using BETWEEN where the first value is greater than the second value. I'm not sure what would be returned in that instance. The two BETWEEN clauses need to be surrounded by brackets. | |
Re: As Rotton69 said, you need to ask a specific question, otherwise you will not get any answers. I guess that you wish to store information about a number of campaigns and that when a new campaign is created, you would like the database engine to send an email. I think … | |
Re: It looks to me like the country and army are one entity: you can't have an army without a country and you can't have a country without an army. One country's army may have one or many 'Field Armies'. General must be an entity because not all generals head a … | |
Re: I think that something like the following should do the job:- [CODE]SELECT Articles.id as article_id, Tags.id as tag_id INTO Articles_Tags FROM Articles INNER JOIN Tags ON Articles.Name = Tags.Name[/CODE] | |
Re: If you go to [url]http://www.microsoftcourse.com[/url] you will find information that may help you to find out what each course involves. Such as:- 70-431 Microsoft SQL Server 2005 - Implementation and Maintenance This series explains how to install, configure, and use SQL Server 2005. 70-293 Windows Server 2003 Network Planning MCSE … | |
Re: It seems obvious that the statement [CODE] $pdo = new PDO('mysql:host=localhost;dbname=name', 'name', 'password');[/CODE] needs to be changed to one that can be processed by the ODBC driver on the particular client being used to access the database. I'm sorry that I can not tell you the exact change but there … | |
Re: Hey. Look, it's just a convention. All you're saying is that I am creating a variable named i which has a data type of int. The fact that it is so widely used as an example as well as in actual production code just means that it is universally accepted. … | |
Re: You identify which constructor to use by its 'signature'. The signature is the name of the class, plus the number, data type and order of the parameters. Therefore in order to create an object using the constructor of your choice you only need to invoke the correct class name and … | |
Re: It looks like you are just copying your homework question to the forum. This is your home work. Not ours! You will not learn anything by just repeating what others have told you. | |
Re: What type of source media are you using to install Ubuntu? I would have thought that you did not need an internet connection to initially install Ubuntu. I have installed Ubuntu on my netbook without a problem (I can't recall if I used a memory stick or a CD/DVD). I … | |
Re: Beware of changing the values of data entered by the user; you may need to use them more than once in a program run. I've modified your code a little, replacing a couple of Whiles with a for loop, nested in another for loop, to display the rectangle using the … | |
Re: This is one of those tasks that sound so simple but are not so simple when it comes down to it. Since you are posting on an ASP forum and say you have a 'site',we can safely assume that you have a web interface. In order to sort your recordset … | |
Re: If you can get plain HTML pages to load ok, check that your ASP is outputting valid HTML. Also, some web servers will require that ASP pages are stored and executed from a set folder or directory, with the correct security permissions set on it. Ensure that you are complying … | |
Re: I would start by designing the database. You could create a table for just that room with fields for the user id or name of the person booking the room, a start time and an end time. Create a constraint on the table that prevents overlapping start and end times … | |
Re: One thing that I noticed was that you need a comma between each of the columns you wish to retrieve from the table, so change [CODE]SELECT student_id student_name FROM Student[/CODE] to [CODE]SELECT student_id, student_name FROM Student[/CODE] | |
Re: From your description of your problem it looks like you can not serve any web pages at all using IIS. Am I right? I can't remember off the top of my head but I would guess that IIS would have a default web page that would be displayed following a … | |
Re: Try posting your question to the ASP.NET forum. This forum is for classic ASP. If you can not access the DropDownList directly I'm not sure how you are able to populate it. Is it possible to just limit the range of values (i.e. no more than 10) perhaps? [QUOTE=Chris_Vassallo;1534149]Hi, all … | |
Re: [QUOTE=sourabhacooli;1562686]Dear Sir I need your help my question is how we clear a folder.[/QUOTE] I suspect that this thread does not belong in the ASP forum but, assuming that you are using some version of Microsoft Windows; select the folder in Windows Explorer with a single click of the mouse … | |
Hi. I've been trying to populate a <select> option list in HTML by querying a Microsoft SQL Server database. For some reason I can not do this by mixing the scripting code (VBscript) with HTML. If I place the query between the <select> and </select> tags it does not run … | |
Re: [QUOTE=the_mia_team;1394218]anyone here good with php coding and linking databases with mysql through coding itself? If someone can provide me help and fast I can paypal some money. Shoot me a message or reply, thank you[/QUOTE] HI. Here is an example of one of my php scripts. I've changed the database … | |
Re: [QUOTE=Mellopv13;1394268]Given positive intergers a and b, find their greatest common divisor, their least common multiple and intergers s and t such that sa + tb = gcd(a,b)[CODE][/CODE][/QUOTE] Hi there. I don't know the answer to your question but I think you mean integers not intergers. M | |
Re: [QUOTE=progcomputeach;1201749]For starters, mine is C#, closely followed by VB.NET[/QUOTE] A wry smile followed when I read that some one had suggested English. As it happens I used to use the language called Userbase, which is little known but was used on VAX/VMS systems, closely linked with the RMS database format. … |
The End.