MySQL Forums
Forum List  »  PHP

Re: Select Correct Video Source from Select Dropdown List
Posted by: Peter Brawley
Date: November 17, 2017 04:09PM

A script like that can't be debugged in a form like this (if staring at code were a productive debugging method, there wouldn't be nearly as many bugs as there are). You will need to add into the script stubs revealing variable values at particular line numbers, and walk through it till you find the problem.

What I can say is that ...

> $results = mysqli_query($con, $query);

... is dangerous in that it does not handle errors---you need code for the case that mysqli_query() returns False and mysqli_error($con) returns error info.

Options: ReplyQuote


Subject
Written By
Posted
Re: Select Correct Video Source from Select Dropdown List
November 17, 2017 04:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.