72 Discussion / Question Topics

Remove Filter
Member Avatar for James_43

Hi all, I have a multi-dimensional array. Using a **for** function, I would like to display the information inside the array. This means using a variable $i for the first index of the array, which I think is causing the problem. I am getting the error message: `Undefined offset: 2` …

Member Avatar for James_43
0
4K
Member Avatar for James_43

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++) { $query = 'SELECT * FROM table WHERE column = ?'; $statement = $mySQL_con->prepare($query); try { $statement->execute(array($i)); } catch (PDOException $error) …

Member Avatar for James_43
0
499
Member Avatar for James_43

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 information, and one with the blog information (and with a foreign key referencing the user id). However, I'm stuck for …

Member Avatar for diafol
0
268
Member Avatar for James_43

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);` However, now whenever I try to insert a new row of data, I get the error message "Duplicate entry '0' …

Member Avatar for James_43
0
263
Member Avatar for James_43

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 $user_data['6'] and the format in the mySQL table is set to datetime. The error I'm getting is Call to a …

Member Avatar for James_43
0
254
Member Avatar for James_43

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 returned data into a mySQL table, start a Session, and redirect to the homepage. As a test, I stopped the …

Member Avatar for James_43
0
242
Member Avatar for James_43

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 returns FALSE, but have no idea why? My understanding of PHP is limited, so it might help if I actually …

Member Avatar for James_43
0
277
Member Avatar for James_43

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 on the remote don't appear to be linked to a keyboard button.

Member Avatar for James_43
0
122
Member Avatar for James_43

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 I defined in App.xaml.cs Window 2 then has another timer that is set to .1 of a second after the …

Member Avatar for James_43
0
268
Member Avatar for James_43

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 it. * and a quick Google search suggested that was due to not using Dispatcher.Invoke (they also said it was …

Member Avatar for JOSheaIV
0
142
Member Avatar for James_43

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 trying to get Window1 to open a fullscreen version of the selected image, that changes depending on what image is …

Member Avatar for JOSheaIV
0
329
Member Avatar for James_43

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 elements. Image 1 displays the selected item, Image 2 displays selected item + 1 I have: `int inx = Convert.ToString(ImageList.SelectedIndex);` …

Member Avatar for James_43
0
3K
Member Avatar for James_43

Hi all, I'm very new to software development. My main area is HTML/PHP/JavaScript, but have done a bit of C# before. I don't believe the idea I have is suited for a web development option, so am looking for ideas / a starting point for a solution to the below …

Member Avatar for James_43
0
181
Member Avatar for James_43

Hi all, I'm quite a new developer, and I've spent a long time trying to figure out what is causing this error: "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined" As far as I can tell, all my parameters are defined? My code is below: $mySQL_query = "INSERT INTO vd_users …

Member Avatar for James_43
0
171
Member Avatar for James_43

Hi guys, Weird (maybe silly) isse with a CSS fade property using the following classes: /** CSS3 Animations **/ /* Key Frames ---------------------------------------------------- */ @-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } } @-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } } @-o-keyframes fadeIn …

Member Avatar for pacav69
1
267
Member Avatar for James_43

Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I …

Member Avatar for James_43
0
306
Member Avatar for James_43

Hi there, My PHP is appalling/non-existant. I have a HTML website with a PHP header that I've 'included' on all the pages. The problem is that this header colours red whichever page we are currently on, defined under the CSS as being 'active'. Therefore, from what I see, I need …

Member Avatar for James_43
0
170
Member Avatar for James_43

Hi there, I have a webpage in HTML, strong-links.org, and am tired of having to make changes to every single page when I update the header or footer, and someone suggested I can use PHP to reference the template within the HTML pages. As a test, I have test.strong-links.org/index2.html live …

Member Avatar for James_43
0
235
Member Avatar for James_43

Hi all, I am trying to populate text on my website from data stored in a MySQL database. I have this script before the <head> of my HTML to establish the connection: <?php $username = "USERNAME"; $password = "PASSWORD"; $hostname = "127.0.0.1:3306"; //connection to the database $dbhandle = mysql_connect($hostname, $username, …

Member Avatar for jj.dcruz
0
303
Member Avatar for James_43

Hi everyone, Just after some general advice. I have developed a website that contains several news widgets that will eventually need updating. I am not too fussed about keeping a record of past news events, but that could be nice. Basically my question is, what is the best way to …

Member Avatar for mlesniak
0
199
Member Avatar for James_43

Hi everyone, I am still quite new to HTML and PHP. I have a form in HTML pointing to a PHP script that sends an email. But it doesn't work - please tell me where I am going wrong! The HTML is: <div class="main-content three-fourths"> <h1>Get in touch</h1> <p class="lead">We'd …

Member Avatar for Kyle Wiering
0
479
Member Avatar for James_43

Hi there, I have the following code to define the first article on the website I'm developing Strong-Links.org <article id="me" class="panel"> <img src="/images/Strong-Links.png"> <a href="#work" class="jumplink pic"> <span class="arrow icon fa-chevron-right"><span>See my work</span></span> <img src="images/me.jpg" alt="" /> </a> </article> This basically just places two images on the page, with me.jpg …

Member Avatar for James_43
0
252

The End.