- 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
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 … |