• Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Php simple error

    What error do you get?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Php simple error

    <?php $con=mysqli_connect("localhost","root","","uplod"); if (mysqli_connect_error()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else{ echo work $sql ="UPDATE tea SET name = ' 8req' WHERE id = '3 …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Php simple error

    You have suspicious looking spaces in ' 8req' WHERE id = '3 '
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in How to get round value after decimal

    Ok I see now you wanted to get the decimal portion!
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Putting a random number generated in an array

    Ok I see. Well first of all I am not a C++ programmer so cannot give you C++ code. I can give you pseudo code though. Generate a random number …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Putting a random number generated in an array

    Hi - give me an example of how this output would look?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Putting a random number generated in an array

    **Hi! How do I put the random number generated in an array so that I can make each number in it unique? Thanks! :)** #include <cstdlib> #include <ctime> #include <iostream> …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Putting a random number generated in an array

    I don't think you need to pass in any arguments to generateRandomNo
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Programming Language

    cloud can be used by python Language?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Programming Language

    You really need to be a bit more specific with your question. It is far too general and doesn't make much sense or read well.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    Ok nice one, glad to help.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Getting MVC project out of GitHub

    I first learned MVC from some excellent videos by David Finley on http://www.learnvisualstudio.net/ They were really good and easy to follow. Plural Sign is also really good - http://www.pluralsight.com Both …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Cannot cash out reward points

    @wojciech1 - please don't hijack my posts as my problems don't get answered as the thread becomes all about you and people forget about my actual question - eg the …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching accessing apache web server with private IP (LAN)

    My static IP and adsl connections are in same broad band line. I have an apache server installed in the lan with private IP. When we access the web server …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in accessing apache web server with private IP (LAN)

    I'm not sure I understand your question as I think it could be worded slighly better but possibly you need loopback enabled. Check out http://opensimulator.org/wiki/NAT_Loopback_Routers
  • Member Avatar for DaveAmour
    DaveAmour

    Created Cannot cash out reward points

    I havec1799 reward points but cannot cash out any. Any ideas?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Cannot cash out reward points

    I havec1799 reward points but cannot cash out any. Any ideas?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in need help creating score calculator with array

    Youre welcome.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    I will struggle with this as I remember vagueley from Maths classes what a Matrix is but my domain knowledge in this area is not good so over to you …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    Is this what you want? using System; using System.Data.SqlClient; namespace DaniWeb.Inheritance { class Program { static void Main(string[] args) { IntegerFactory integerFactory = new IntegerFactory(); StringFactory stringFactory = new StringFactory(); …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    Where in my code do you want the "return this" to go?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    Just realied I have a typo Console.WriteLine("watsit is type {0} and T is {1}", Shoule be Console.WriteLine("aString is type {0} and T is {1}",
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Disable TAB Key in an EXE File

    Yes I know that's what you want but its my pc not yours - what if I want to check my email while I am using your application. What gives …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inconsistent jquery function

    Check this out: http://jsfiddle.net/bipen/dyfRa/
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Inheritance problem in C#

    Is it possible to let an overridden method from a base class to return the type of the derived class? What I mean is: namespace test //with some "pseudo" code …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inheritance problem in C#

    Hi Ok I'm really not clear on what you are asking here. So I took your code and got it to compile - a few typos etc but got something …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in check if raw_input equals a predefinded string

    I can't help you any more. I'm not a python developer and have never written a python program. I am a professional software engineer though and was able to help …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in why am i getting an empty array

    If you don't know why then whey have you marked this as solved?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in How to sum to specific count of rows in Datagridview

    Youre welcome.
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Disable TAB Key in an EXE File

    I managed to disable %, $, #, | in my application using the script below: 101 ACCELERATORS LANGUAGE LANG_KOREAN, 0x1 { VK_F4, 40002, NOINVERT, ALT, VIRTKEY VK_RETURN, 40001, NOINVERT, ALT, …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Disable TAB Key in an EXE File

    Why would you want to do that? What gives you the right to take over someone's pc!?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Shared .exe and Static attribute

    Greetings, I want to know if I am having a shared .exe file and these shared .exe is running by 2 users on different machines but they are running the …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Shared .exe and Static attribute

    Yep Suzie is spot on. I assume by shared place you mean a network share? If so the app doesn't run there, that's just where the file is. The app …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Search in SQL server

    Hello... Im having a problem with "like operator" on SQL database Im using this code to search on database Dim DV As New DataView(dbDataSet) DV.RowFilter = String.Format("ID Like '%{0}%'", TextBox1.Text) …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Search in SQL server

    What data type is ID in your database? Can you debug your code, copy and paste the SQL statement and execute it directly against the database - in SQL Management …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching How to get round value after decimal

    I am facing problem for getting the value of after decimal <?php $a=5.4243423; $c = round($a,1); echo $c; ?> Out put is 5.4 How to get 4 value? Any body …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in How to get round value after decimal

    You already have the 4. Can you reword your quetion, it doesn't make sense.
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching why am i getting an empty array

    function getAllReferrals(){ $sql = "(SELECT r.referral_date,c.lastname,c.middlename,c.firstname,c.gender,r.presenting_problem,e.employee_nickname AS nickname FROM CLIENT c INNER JOIN referral1 r ON c.referral_id = r.referral1_id INNER JOIN assign_psychotherapist ap ON ap.a_referral_id = c.referral_id INNER JOIN employee …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in why am i getting an empty array

    So is the code stepping into line 15 then?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in check if raw_input equals a predefinded string

    Sure, you need to look at loops https://wiki.python.org/moin/WhileLoop
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inconsistent jquery function

    To make it not case sensitive just lower case your search term and your search text. I don't mean lower your seach text in your document but in code.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in check if raw_input equals a predefinded string

    Do you need a semi colon? if x == "yes":
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching check if raw_input equals a predefinded string

    !using python 3! first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand. I was trying to get an input …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in check if raw_input equals a predefinded string

    I think you need speechmarks aroynd yes Eg if x == "yes"
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inconsistent jquery function

    Hmm thats not what I mean by inconsistency. Does it always behave the same for the same search text. If it does not that would be inconsistent and would be …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Inconsistent jquery function

    I don't think this is doing anything inconsistent - the behaviour is always the same right?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching SQLite database table to 2 dimensional string array.

    I was working on this function which was quite specific to my project, so thought I'd make it more generic and share it, since I could find very little on …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in SQLite database table to 2 dimensional string array.

    Looks good. I have some suggestions which are sincerely intended as to be encouraging. Firstly I would always use the using statement rather than manually calling Dispose eg: using (SqlDataReader …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching save xml to a variable c#

    Can you save the entire contents of an xml to one varaible in c#?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in save xml to a variable c#

    Sure - either as a string or as a complex xml type

The End.