Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
79% Quality Score
Upvotes Received
10
Posts with Upvotes
10
Upvoting Members
10
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
3 Commented Posts
0 Endorsements
Ranked #1K
~79.0K People Reached
About Me

Old bit, been dabbling in code for years

Interests
Badminton
PC Specs
Win7 laptop, Win XP self-build desktop
Favorite Tags

55 Posted Topics

Member Avatar for rajesanthu

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

Member Avatar for Youssef Faisal
-4
44K
Member Avatar for mlesniak

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 …

Member Avatar for mlesniak
0
534
Member Avatar for ckide

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.

Member Avatar for rubberman
0
483
Member Avatar for happygeek

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

Member Avatar for XP78USER
6
10K
Member Avatar for cambalinho

I think you need to make your question more explicit. For example, what is DC? Are you refering to a particular development environment?

Member Avatar for cambalinho
0
112
Member Avatar for StarTrekCafe

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.

Member Avatar for rubberman
0
134
Member Avatar for fireburner29

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?

Member Avatar for mlesniak
0
91
Member Avatar for chevy_1

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 …

Member Avatar for mlesniak
0
294
Member Avatar for johans22

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 …

Member Avatar for mlesniak
0
118
Member Avatar for James_43

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.

Member Avatar for mlesniak
0
199
Member Avatar for andreasbb

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.

Member Avatar for mlesniak
0
308
Member Avatar for bugler

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 …

Member Avatar for toxicandy
0
190
Member Avatar for mlesniak

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 …

Member Avatar for mlesniak
0
166
Member Avatar for mlesniak

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 …

Member Avatar for imBaCodes
0
249
Member Avatar for Violet_82

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.

Member Avatar for Violet_82
0
4K
Member Avatar for b.wickham

My first suggestion would be to add a debugging statement to just display the resulting sql query for the update before you try to execute it. It's surprising how easy it can be to spot the basic errors that way.

Member Avatar for b.wickham
0
1K
Member Avatar for RamiroS

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

Member Avatar for mlesniak
0
255
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
163
Member Avatar for randomkid73

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 …

Member Avatar for randomkid73
0
265
Member Avatar for Yidnekachew.
Re: J2ME

I can recommend http://today.java.net/pub/a/today/2005/02/09/j2me1.html as a good starting place.

Member Avatar for mlesniak
0
92
Member Avatar for glen.persson

Hi Glenn. I'm not Canadian but I have visited Canada and think it's a lovely country. I hope you enjoy Daniweb.

Member Avatar for falkopartey
0
198
Member Avatar for mlesniak

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 …

Member Avatar for JorgeM
0
178
Member Avatar for onofej

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.

Member Avatar for onofej
0
1K
Member Avatar for shihab2555

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

Member Avatar for shihab2555
0
259
Member Avatar for twazzer

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 …

Member Avatar for woodenduck
0
3K
Member Avatar for Kayla1993

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 …

Member Avatar for mlesniak
0
120
Member Avatar for billmudry

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 …

Member Avatar for urtrivedi
1
2K
Member Avatar for phorce

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.

Member Avatar for mlesniak
0
137
Member Avatar for jQueryLover

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.

Member Avatar for mlesniak
0
142
Member Avatar for mangel.murti

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 …

Member Avatar for mlesniak
0
86
Member Avatar for smiley4080

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 …

Member Avatar for smiley4080
0
404
Member Avatar for aaloo

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]

Member Avatar for mlesniak
0
141
Member Avatar for denmarkstan

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 …

Member Avatar for mlesniak
0
123
Member Avatar for 1stoptutorials

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 …

Member Avatar for mlesniak
0
294
Member Avatar for pato wlmc

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

Member Avatar for Tumlee
0
5K
Member Avatar for Limiter

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 …

Member Avatar for Limiter
0
207
Member Avatar for serenaL

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.

Member Avatar for mlesniak
0
146
Member Avatar for victor1244

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 …

Member Avatar for Stefano Mtangoo
0
245
Member Avatar for tedman102

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 …

Member Avatar for mlesniak
0
186
Member Avatar for dwinn

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 …

Member Avatar for dwinn
0
343
Member Avatar for uselessninja

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 …

Member Avatar for mlesniak
0
114
Member Avatar for imolorhe

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 …

Member Avatar for mlesniak
0
143
Member Avatar for and12

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]

Member Avatar for mlesniak
0
280
Member Avatar for fahad100

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 …

Member Avatar for mlesniak
0
143
Member Avatar for Chris_Vassallo

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 …

Member Avatar for mlesniak
0
204
Member Avatar for sourabhacooli

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

Member Avatar for mlesniak
0
118
Member Avatar for mlesniak

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 …

0
61
Member Avatar for the_mia_team

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

Member Avatar for cossay
0
155
Member Avatar for Mellopv13

[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

Member Avatar for mlesniak
0
87
Member Avatar for progcomputeach

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

Member Avatar for MeSam0804
0
152

The End.