• Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in PDO database select not returning expected data

    Ok putting this thread back on topic as to where I am, partially going mad been looking at this all day. $sql = "SELECT * FROM user WHERE username = …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in PDO database select not returning expected data

    EDITED Ok so I get data if I use: $sql = "SELECT * FROM user WHERE username = 'mike'"; $q = $conn->prepare($sql); //$q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetchAll(); print_r($result); But …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in PDO database select not returning expected data

    Yes it does Prit, returns one row, which is all I expect to see. So something on the where must be off...
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in PDO database select not returning expected data

    I did also try `$result = $q->fetchAll();` which again returned an empty array, so I dont think the FETCH_ASSOC is the route cause :(
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in PDO database select not returning expected data

    was just trying it, didnt work without them either. Have also tried $sql = "SELECT userID, username, password FROM user WHERE username = ?)"; $q = $conn->prepare($sql); $q->execute(array($subUsername));
  • Member Avatar for Mike Askew
    Mike Askew

    Edited PDO database select not returning expected data

    I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo …
  • Member Avatar for Mike Askew
    Mike Askew

    Created PDO database select not returning expected data

    I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching PDO database select not returning expected data

    I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Email Alerts Not Working

    Only just got the email for a post update 7 hours ago
  • Member Avatar for Mike Askew
    Mike Askew

    Marked Solved Status for File Upload Query

    Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in File Upload Query

    Issue resolved. upload_max_filesize was 65m post_max_size was 3m upped post_max_size to 70m Kudos to prit also in solving
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in File Upload Query

    Just noticed `[16-Jun-2015 11:10:50 Europe/Paris] PHP Warning: POST Content-Length of 3821214 bytes exceeds the limit of 3145728 bytes in Unknown on line 0` in the error logs when I run …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in File Upload Query

    Just tried this code on my work laptop rather than desktop. It all works as expected on there... something must be messed up with my wamp installation on desktop...
  • Member Avatar for Mike Askew
    Mike Askew

    Created Email Alerts Not Working

    I can't figure out why but at the minute I have no instant emails about thread updates etc. Have I got any settings wrong or is something else amiss under …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Email Alerts Not Working

    I can't figure out why but at the minute I have no instant emails about thread updates etc. Have I got any settings wrong or is something else amiss under …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in File Upload Query

    It also seems to erase any form of echo I have on the page, however if the file upload input isn't involved then echoing works fine... For example if I …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in File Upload Query

    receiving script currently is <?php $target_dir = "imageuploads/"; print_r($_POST); print_r($_GET); print_r($_FILES); ?> which prints `Array ( ) Array ( ) Array ( )` Strange that it works on lps's local. …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Not sure how to approach what I want to do

    I've abandoned this idea and simplified my goals just to get the project done in time. I would rather submit something than nothing at this point... Thanks for the inputs.
  • Member Avatar for Mike Askew
    Mike Askew

    Created File Upload Query

    Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching File Upload Query

    Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> …
  • Member Avatar for Mike Askew
    Mike Askew

    Marked Solved Status for IIS 404 error

    Think I am going mad here.. So I have a working website setup in IIS. This was all configured by a previous developer. We have a set of reports that …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in IIS 404 error

    Nailed it Toby. Was missing some code within the Controller class for the specific report handling certain url actions. Now getting some errors around injection but I can resolve those …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in IIS 404 error

    RouteConfig.cs public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "ConfigJs", url: "DScripts/Config.js", defaults: new { controller = "General", action = "Config" } ); routes.MapRoute( name: …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Phone dialing program

    //The purpose of the program is to simulate dialing a phone number and having it convert to a numeric format with a hyphen. //We're not allowed to set the characters …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Phone dialing program

    Why don't you allow the user to enter the entire number in one go, and then convert it to a `Char[]` You can then look at the `Char[].Length` to see …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in IIS 404 error

    Url rewrite isn't installed on these servers. Will try and debug the routing stuff
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in IIS 404 error

    Haven't a clue where the route config is, I can see a RouteConfig.cs class but nothing of interest in it...
  • Member Avatar for Mike Askew
    Mike Askew

    Created IIS 404 error

    Think I am going mad here.. So I have a working website setup in IIS. This was all configured by a previous developer. We have a set of reports that …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching IIS 404 error

    Think I am going mad here.. So I have a working website setup in IIS. This was all configured by a previous developer. We have a set of reports that …
  • Member Avatar for Mike Askew
    Mike Askew

    Gave Reputation to Violet_82 in Building first MVC application

    Hello guys, I wonder if I could get some help with a project I'm planning to start. As you all probably know, I'm learning MVC and I've followed dozen of …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Not sure how to approach what I want to do

    Hmm still confused. Trying to avoid posting code. I have <script type="text/javascript"> function getPetDetails() { } </script> Which is linked to the onupdate() of <select name="availablePets" id="availablePets" size=10" onchange="getPetDetails()"> But …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Not sure how to approach what I want to do

    I was using a `<select>` with `size=x` to make it into a Listbox I know you can bind the onchange event of that, so just had to figure out how …
  • Member Avatar for Mike Askew
    Mike Askew

    Created Not sure how to approach what I want to do

    So I currently have a listbox which dynamically generates its members from the database. It has name and id set to "availablePets". When one of the items in the list …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Not sure how to approach what I want to do

    So I currently have a listbox which dynamically generates its members from the database. It has name and id set to "availablePets". When one of the items in the list …
  • Member Avatar for Mike Askew
    Mike Askew

    Created IIS WSDL Caching

    Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching IIS WSDL Caching

    Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching The name 'matches' does not exist in the current context

    I have this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace RegexTest { class Program { static void Main(string[] args) { string str = "The quick …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in The name 'matches' does not exist in the current context

    Works fine for me in VS2013 Ultimate running .Net 4.5 console application. I can access the `matches` variable and it contains fox as expected... odd.
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Replacing the for loop, using extensions

    I'm a great fan of extensions in C#. See also this previous [snippet](https://www.daniweb.com/software-development/csharp/code/467292/squaring-an-integer-with-extensions). Extensions are really simple to use. Start with adding a static class containing static methods. Note the …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Replacing the for loop, using extensions

    I like it! But from a readability perspective in my opinion the for-loop is better. Can't skim read over the given extension example and know what it does too easily.
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Lookup from a xml in xslt

    No problem. Is the restructure of the XML acceptable or did you need to keep it as it originally was? Hopefully it was as otherwise I am not sure it …
  • Member Avatar for Mike Askew
    Mike Askew

    Marked Solved Status for Trivial Question...

    ... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Trivial Question...

    Yeah misworded it slightly I believe eventually worked out what I was trying to do with a spot of googling.
  • Member Avatar for Mike Askew
    Mike Askew

    Created Trivial Question...

    ... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Trivial Question...

    ... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Practical Resources

    Hi What would be a good recommendation for a practical resources on using xml, xpath and xquery? By practical I mean. Accessing values, storing files, creating set queries on xml …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Practical Resources

    This would mainly depend on which language you intend to use. A programming language will be the main driver for most of the above tasks and therefore each language will …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Lookup from a xml in xslt

    I have achieved the above using XSL 1.0, however your XML file structures are not the best and so I have done it using a modified structure. Let me know …
  • Member Avatar for Mike Askew
    Mike Askew

    Began Watching Lookup from a xml in xslt

    Hi All, Im new to xsl., In my implementation im converting a language code to a language value by lookup from a xml file. Input: <XML> <Name>shades</Name> <Languagecode>555</Languagecode> <XML> output: …
  • Member Avatar for Mike Askew
    Mike Askew

    Replied To a Post in Lookup from a xml in xslt

    Hi Sorry for the delayed reply. Is there the option to edit the layout of your Lookup file to start with? It could be improved in terms of how you …

The End.