Jump to content

Creating a database system for work


brown2005

Recommended Posts

Hi, I want to have a file on my website that stores paperwork for jobs. so say i have

 

paperwork_file

 

and in this i will have say a file for each customer (using there id)

 

1_file

2_file

3_file

 

then say for customer two (2_file) i would have these items in the file;

 

inventory_item

apprasil_item

jobsheet_item

 

 

if i wanted to be able to view these items can you read what items are in the file and be able to click on them to view them, or would i need to use a  mysql database and <a> to do this?

 

thanks in advance

 

 

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/183709-creating-a-database-system-for-work/
Share on other sites

It would be much simpler and likely more efficient to use a database if thats your question.

 

yeah i meant like query the database then echo out like

 

where(){

 

echo'<a href=''>file name here</a>';

echo'<a href=''>second file name here</a>';

 

}

yeah i meant like query the database then echo out like

Yes, you loop over a result set returned from a database query

$res = mysql_query("SELECT * FROM files WHERE customerId='123'");
while($row = mysql_fetch_assoc($res)) {
  print "<a href=...........
}

You get the idea

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.