Okay ...so I have been playing around in PHP ... and have come a long way in one week🙂
I have created my php script that connects to the db and runs a query .... the I'm have is ... the query returns only one complete row of values .... and the other rows only display the 1st 3 values .....
also .... how can i get the query output to display in a table with titles and such ....
here is my php script
$connection = mysql_connect($host,$user,$pass) or die (mysql_errno().": ".mysql_error()."<BR>");
mysql_select_db($dbname);
echo "You are connected to the Db"."<BR>"."<BR>";
echo "This is the query that ran"."<BR>"."<BR>";
$sql = 'SELECT `tickets` . `UPDATED` , `tickets` . `ID` , `tickets` . `OPER` , `tickets` . `C31` , `tickets` . `C32` , `tickets` . `C34` , `tickets` . `C28` FROM tickets ORDER BY `tickets` . `UPDATED` DESC LIMIT 0, 30 ';
echo $sql."<BR>"."<BR>";
$query = mysql_query($sql);
echo "Here is the query output"."<BR>"."<BR>";
while ($row = mysql_fetch_array($query)) { echo "<p>",$row['UPDATED']," ",$row['ID']," ",$row['OPER']," ",$row['C31']," ",$row['C32']," ",$row['C32']," ",$row['C34']," ",$row['C28']; }
?>
Any help is appreciate ...thank you in advance
Arvin