This is my first experience with PHP or SQL.
I make a simple website that hosts applications along with their names, authors, versions, descriptions, etc. The PHP script fetches this information from the MySQL database that I created. Each application has a unique identifier assigned to it. Multiple versions will use the same identifier.
I need to display entries with only one version.
However...
When the updated version of the application is released, I want it to list the old version (s) associated with the link to the old version in the drop-down list next to the newest version. I made a database, assuming that I figure out a way to display it, so when I added the updated version of the application to the database, I left things that did not change empty (for example, name, author, description), gave it the same identifier, as the older version, and added only the new version number and the name of the new version. See here for an example.
However, I was wrong.
I have no idea how to proceed. I have a request:
SELECT * FROM apps WHERE identifier IN ( SELECT identifier FROM apps GROUP BY identifier HAVING count(*) > 1)
, , "". , , / , / ( / ). , //etc , , . , .
, :
$result=mysqli_query($connection,$query);
$num=mysqli_num_rows($result);
$i=0;while ($i < $num) {while ($row = mysqli_fetch_array($result)) {
// do stuff (echo)
} ;$i++;};
, , - ( , ).
?