1
neda_barna
read data from html file with php file
  • 2008/4/2 7:23

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
how can i raed data from html file with php file and save it into database?????????!!!!!!!!1

2
_metemet_
Re: read data from html file with php file
  • 2008/4/2 14:00

  • _metemet_

  • Just popping in

  • Posts: 62

  • Since: 2008/4/1 2


example:

$con = mysql_connect("localhost","peter","abc123");
mysql_select_db("my_db", $con);
$file = file_get_contents ('YourFile.txt');
mysql_query("INSERT INTO your_table (your_cloumn)
VALUES ('$file')");
mysql_close($con);
?>


try like this ;)
whttp://www.xoops-tr.com
x-tr.sourceforge.net

Login

Who's Online

303 user(s) are online (249 user(s) are browsing Support Forums)


Members: 0


Guests: 303


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits