PHP, get data from the database

前端 未结 2 1338
臣服心动
臣服心动 2021-01-22 04:50

I want to retrieve data from a database with PHP and show it on a website.

This code does not work correctly. I want to display all cars that are Chevy on my database

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-22 05:38

    "; 
     while($row= mysql_fetch_array( $data )) 
     { 
     Print ""; 
     Print "Name: ".$row['name'] . " "; 
     Print "ImagePath: ".$row['imagePath'] . " "; 
     Print "Description: ".$row['description'] . " "; 
     Print "Price: ".$row['Price'] . " "; 
     } 
     Print ""; 
     ?> 
    

提交回复
热议问题