Hey...I have had this piece of code working for about 3months, and all of a sudden it stopped working (I had it in various forms in 4 different places)...
It is supposed to run a query into my database, and select all items from the project table, in numerical order...but it doesnt like ordering them..
like I said, it has been perfect for the past 3 months, and now the past 2 days it stops working...
let me know if you have any suggestions 🙂
thanks!
<?php
//Query to get all projects in the projects database
$query="SELECT * FROM `pdem_projectss`.`tblProjects` ORDER BY `tblProjects`.`ProjectID` ASC ";
$result=mysql_query($query);
$f='<select class="form_item" name="ProjectID" id="projID" onchange="fetchProjects(\'ajax_ts_project_query.php\',this.value,\'ts\')">';
$f.='<option value=" "></option>';
while ($row = mysql_fetch_array($result)) {
$f.='<option value= "'.$row['ProjectID'].'">'.$row['ProjectID']. '</option>';
}
$f.='</select>';
echo $f;
?>