?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Re: how do you read data obtained from an other site in to your database
Author:??(---.cpe.net.cable.roger)
Date:???03-26-03 07:43

if (eregi($pattern, $contents, $quote))
{
echo "$symbol was sold at: " ;
echo $quote[1];

//add db connection info here
//
$sql="insert into mytable values($".$quote[1].")";

$result=mysql_query($sql) or die ("Can't connect to db because ".mysql_error());

if ($result){
echo "Data inserted";
}else{
echo "insert unsuccessful";
}

//rest of your code

?Topics Author? Date
?how do you read data obtained from an other site in to your database??new
catty 03-25-03 11:53?
?Re: how do you read data obtained from an other site in to your database??new
bastien 03-26-03 07:43?
?Re: how do you read data obtained from an other site in to your database??new
bastien 03-26-03 07:49?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > if (eregi($pattern, $contents, $quote)) > { > echo "$symbol was sold at: " ; > echo $quote[1]; > > //add db connection info here > // > $sql="insert into mytable values($".$quote[1].")"; > > $result=mysql_query($sql) or die ("Can't connect to db > because ".mysql_error()); > > if ($result){ > echo "Data inserted"; > }else{ > echo "insert unsuccessful"; > } > > //rest of your code ">??

Provided By
Phorum