Jump to content

Insert data via a url


Xoplex

Recommended Posts

Hi,

 

I have an access database that grabs data from various forms that we submit. It stores the data in a url format. Is there a way to imput the url into my mysql database via a url?

A script of some sorts that will preform the insert based on url instead of relying on a form?

 

 

Partial example of output:

identify=DIRECT&key=548&CONFIRMATION=FB2BP-

6J2BP&AGENT=Sylvia&HotelAgent=Joan&HOTEL=Borgata&

ROOM=Classic20Fiore&ARRIVAL=11/15/03&Departure=11/17/03&

ADULTS=2&NumberOfRooms=1&CHILDREN=0&RatePerRoom=674.00&NI

GHTS=2&bGaveIATA=1&bSentConfirmation=&CANCELNO=&CancelDate=

&CANCELWITH=&CancelAgent=&Smoking=0

Link to comment
Share on other sites

If you know the path of the data you want to retrieve, you could do something like to one below;

 

$uploaddir = \'c:/mysql/data/login/images/\'.$yourfield;

 

mysql_select_db(\"mylogin\",$connect);

 

$sql = \"INSERT INTO `your table` ( `imagefilepath`,`objTxtArea`,) VALUES (\'\" . $uploaddir. \"\',\'\".$synop.\"\',curdate())\";

 

This is part of a code I did. I wanted the user to upload a file which is stored in a directory. Then the path for that file would be stored in the mysql table.

 

This way when reading the table, it will point to that path and display the file.

 

Chelsea

Link to comment
Share on other sites

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.