Jump to content

Recommended Posts

Hi,

 

I am looking to create a PHP database website and am wondering if I can link it to Microsoft Excel spreadsheet.  Also, I am looking to create a website whereby users can search for specific things.  E.g.  I need to create a database where I put people's names in such as FIRST NAME - "JOE" SURNAME "BLOGGS" AGE "25".  If a search is done under the FIRST NAME for "JOE", the neccessary details will be displayed on the website.  Any help is much appreciated.

 

Thank you in advance.

Link to comment
https://forums.phpfreaks.com/topic/135842-php-and-excel/
Share on other sites

You could save the excel file as a CSV then import it.. as for your search request that can be done providing you have the fields in your SELECT statment

ie

$query = "SELECT * FROM table WHERE firstname='JOE' ";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
echo "name:".$row['Firstname']."-".$row['Lastname']." - Age".$row['Age'];

Link to comment
https://forums.phpfreaks.com/topic/135842-php-and-excel/#findComment-708188
Share on other sites

Thanks for both replies.  Are there any easy to use guides to create the tables and link it to PHP?  The question that I have asked seems to be fairly simple (as I am only testing things at the moment), but need a good starting point?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/135842-php-and-excel/#findComment-708462
Share on other sites

  • 2 weeks later...
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.