• Member Avatar for James_43
    James_43

    Replied To a Post in PHP multi-dimensional arrays

    Hey Jkon, Thanks for that - that was my mistake, I forgot to put the quotations round the string. Sorted now. You're right about the for loop. At the time, …
  • Member Avatar for James_43
    James_43

    Replied To a Post in PHP multi-dimensional arrays

    I have created the connection through PHP: //mySQL Credentials $mySQL_username = 'username'; $mySQL_password = 'password'; $mySQL_host = 'localhost'; $mySQL_database = 'database'; //Attempt mySQL Connection try { $mySQL_con = new PDO('mysql:host='.$mySQL_host.'; …
  • Member Avatar for James_43
    James_43

    Created PHP multi-dimensional arrays

    Hi there, I am trying to populate a page with multiple rows from a mySQL database. To grab the data, I am using: for ($i=1; $i < 5; $i++) { …
  • Member Avatar for James_43
    James_43

    Began Watching PHP multi-dimensional arrays

    Hi there, I am trying to populate a page with multiple rows from a mySQL database. To grab the data, I am using: for ($i=1; $i < 5; $i++) { …
  • Member Avatar for James_43
    James_43

    Replied To a Post in C# Image Transition code issue

    You may have a point. I am coding on a i5 Quad Core PC, but running the programme off a laptop (there are two I have tried it on). Both …
  • Member Avatar for James_43
    James_43

    Replied To a Post in C# Image Transition code issue

    Okay, I've added the brackets in. The problem is that I can never seem to replicate the issue. Like I said, when I start it up everything works fine. I've …
  • Member Avatar for James_43
    James_43

    Created C# Image Transition code issue

    Hey there, Over the past few weeks as an excerise I've been trying to create a C# image viewer. At the moment I have one window, with a list of …
  • Member Avatar for James_43
    James_43

    Began Watching C# Image Transition code issue

    Hey there, Over the past few weeks as an excerise I've been trying to create a C# image viewer. At the moment I have one window, with a list of …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for PHP/mySQL Blog - general questions

    Hi there, As an excerise I am trying to create a basic PHP blog. Creating the user login system was pretty straightforward, and I've 2 mySQL tables, one with user …
  • Member Avatar for James_43
    James_43

    Replied To a Post in PHP/mySQL Blog - general questions

    Thanks for that. I took what you said to Google and quickly found some further reading on this topic. The key seems to be passing the data through an HTML …
  • Member Avatar for James_43
    James_43

    Created PHP/mySQL Blog - general questions

    Hi there, As an excerise I am trying to create a basic PHP blog. Creating the user login system was pretty straightforward, and I've 2 mySQL tables, one with user …
  • Member Avatar for James_43
    James_43

    Began Watching PHP/mySQL Blog - general questions

    Hi there, As an excerise I am trying to create a basic PHP blog. Creating the user login system was pretty straightforward, and I've 2 mySQL tables, one with user …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for mySQL - Primary Key

    Hi there, I created a new table and forgot to set the primary key with an auto_increment. I went back and use: `ALTER TABLE table ADD PRIMARY KEY AUTO_INCREMENT (column);` …
  • Member Avatar for James_43
    James_43

    Replied To a Post in mySQL - Primary Key

    Yes. And I just discovered that that is what was causing the error. Because the record I created before I set the auto_increment had a primary key = 0, when …
  • Member Avatar for James_43
    James_43

    Created mySQL - Primary Key

    Hi there, I created a new table and forgot to set the primary key with an auto_increment. I went back and use: `ALTER TABLE table ADD PRIMARY KEY AUTO_INCREMENT (column);` …
  • Member Avatar for James_43
    James_43

    Began Watching mySQL - Primary Key

    Hi there, I created a new table and forgot to set the primary key with an auto_increment. I went back and use: `ALTER TABLE table ADD PRIMARY KEY AUTO_INCREMENT (column);` …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for string to date time -> format

    Hey guys, Using PHP I store a datetime in a mySQL table. I am trying to draw that out and reformat the time. The datetime is contained within the array …
  • Member Avatar for James_43
    James_43

    Replied To a Post in string to date time -> format

    Thanks both for your answers, I understand now :)
  • Member Avatar for James_43
    James_43

    Marked Solved Status for php session issue

    Hi all, I am using the PHP Facebook SDK to login users. A login button validates the user and returns to a callback 'fb-callback.php'. On this page, I dump the …
  • Member Avatar for James_43
    James_43

    Replied To a Post in php session issue

    Yeah I do. The issue was I needed to store the data under a session array, not into the session itself. When I changed: ` $_SESSION = $user;` to ` …
  • Member Avatar for James_43
    James_43

    Created string to date time -> format

    Hey guys, Using PHP I store a datetime in a mySQL table. I am trying to draw that out and reformat the time. The datetime is contained within the array …
  • Member Avatar for James_43
    James_43

    Began Watching string to date time -> format

    Hey guys, Using PHP I store a datetime in a mySQL table. I am trying to draw that out and reformat the time. The datetime is contained within the array …
  • Member Avatar for James_43
    James_43

    Created php session issue

    Hi all, I am using the PHP Facebook SDK to login users. A login button validates the user and returns to a callback 'fb-callback.php'. On this page, I dump the …
  • Member Avatar for James_43
    James_43

    Began Watching php session issue

    Hi all, I am using the PHP Facebook SDK to login users. A login button validates the user and returns to a callback 'fb-callback.php'. On this page, I dump the …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for mysql pdo non object HELP

    Hi guys, I can't get passed this error: Call to a member function bind_param() on a non-object. I have spent hours looking for insights, and can see that my $statement …
  • Member Avatar for James_43
    James_43

    Replied To a Post in mysql pdo non object HELP

    Yeah, that solved everything. Silly mistake. Thanks for your help :)
  • Member Avatar for James_43
    James_43

    Replied To a Post in mysql pdo non object HELP

    Oh wait, I seem to have tried to combine mysqli and PDO. I think I copied some code from a past project, thinking it was in PDO. That will be …
  • Member Avatar for James_43
    James_43

    Replied To a Post in mysql pdo non object HELP

    Thanks for your quick reply! I've update the code as per your recommendations, so it's now: $datetime = new DateTime(); $datetime = $datetime->format('Y-m-d H:i:s'); $query = 'UPDATE vd_users SET lastlogin …
  • Member Avatar for James_43
    James_43

    Created mysql pdo non object HELP

    Hi guys, I can't get passed this error: Call to a member function bind_param() on a non-object. I have spent hours looking for insights, and can see that my $statement …
  • Member Avatar for James_43
    James_43

    Began Watching mysql pdo non object HELP

    Hi guys, I can't get passed this error: Call to a member function bind_param() on a non-object. I have spent hours looking for insights, and can see that my $statement …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Presentation Remotes?

    Does anyone know if it's possible to intercept the button presses off a presentation remote, just like we are able to listen for keyboard strokes? In this case, the buttons …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Presentation Remotes?

    I managed to sort this by using a keyboard reader code, that just told me on screen what button I was pressing. Turns out they were keyboard strokes, just not …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Dispatcher.Timer Sync

    Hi there, I have two WPF windows. The first (Window1) has a timer that moves an item down a list, then passes the new current selection to a global variable …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Dispatcher.Timer Sync

    No, the problem is having a timer that writes to a global variable, and a different timer that reads that variable. Because they are in different windows, I didn't think …
  • Member Avatar for James_43
    James_43

    Created Presentation Remotes?

    Does anyone know if it's possible to intercept the button presses off a presentation remote, just like we are able to listen for keyboard strokes? In this case, the buttons …
  • Member Avatar for James_43
    James_43

    Began Watching Presentation Remotes?

    Does anyone know if it's possible to intercept the button presses off a presentation remote, just like we are able to listen for keyboard strokes? In this case, the buttons …
  • Member Avatar for James_43
    James_43

    Created Dispatcher.Timer Sync

    Hi there, I have two WPF windows. The first (Window1) has a timer that moves an item down a list, then passes the new current selection to a global variable …
  • Member Avatar for James_43
    James_43

    Began Watching Dispatcher.Timer Sync

    Hi there, I have two WPF windows. The first (Window1) has a timer that moves an item down a list, then passes the new current selection to a global variable …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Slideshow

    Hi there, I've created a new C# WPF project. The first MainWindow displays a listbox of images within a folder and displays them inside a larger image object. I am …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Slideshow

    Yeah I've made some progress on this now. DoubleAnimation is fading in the image, and I'm using a variable defined in app.xaml.cs to pass the image path between the MainForm …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for Invoke?

    Could someone please explain to me the purpose or reasons for using Dispatcher.Invoke? I am getting the error: *The calling thread cannot access this object because a different thread owns …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Invoke?

    Sorry, just ignore me. The code does execute each time it's called, I just wasn't seeing the results. Excuse my new-ness to coding.
  • Member Avatar for James_43
    James_43

    Replied To a Post in Invoke?

    Okay so I've done some more research and turns out I had the wrong idea. I now have: ` public async Task<string> WaitAsynchronouslyAsync() { await Task.Delay(1000); return "Finished"; } ` …
  • Member Avatar for James_43
    James_43

    Replied To a Post in Invoke?

    Right, that makes sense. I'm not entirely sure what threads are, and I couldn't find a succinct explanation online, but they seem to be about CPU load handling? Also, from …
  • Member Avatar for James_43
    James_43

    Created Invoke?

    Could someone please explain to me the purpose or reasons for using Dispatcher.Invoke? I am getting the error: *The calling thread cannot access this object because a different thread owns …
  • Member Avatar for James_43
    James_43

    Began Watching Invoke?

    Could someone please explain to me the purpose or reasons for using Dispatcher.Invoke? I am getting the error: *The calling thread cannot access this object because a different thread owns …
  • Member Avatar for James_43
    James_43

    Marked Solved Status for method group to int

    Hi there, trying to do something I thought was pretty basic, but can't get around this error. I have a ListBox, List (AllImages) full of image paths, and two image …
  • Member Avatar for James_43
    James_43

    Replied To a Post in method group to int

    What I mean is that I'm using the selected index of the ListBox to determine which is the next consecutive index of the AllImages List. I've managed to sort it …
  • Member Avatar for James_43
    James_43

    Replied To a Post in method group to int

    It just occured to me that I may be defining the variable inx incorrectly. Is this right? private void inx (object sender, RoutedEventArgs e) { int inx = 0; }
  • Member Avatar for James_43
    James_43

    Replied To a Post in method group to int

    Okay, I've changed that line to: `int inx = ImageList.SelectedIndex;` I'm still getting the same error "cannot convert from 'method group' to 'int'. Is there anything else I could try?

The End.