Jump to content

How to use PHP to read/fetch the database's first attribute/entry?


project168

Recommended Posts

Hello PHPfreaks members,

 

I want my PHP coding to read/fetch my database's first attribute/entry like the first number of the client in that first row and then fetch it to be shown on PHP so that it will show '1'. How would I do that?

 

Here's the table of my example database (MySQL)

2rgjq69.jpg

 

I know the command to select the line via the database is this:

 

SELECT * FROM CUSTOMER WHERE CUST_NO=1;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.