Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.