![]() |
|
? |
![]() 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
|
? |
|
|||||||||||||||||||||||||
?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 ">??![]() |