No, just writing the queries would not do the job for you.
The following code will help:
[php:1:1c115473be]<?php
//db variables
$db_host = \"xyz\";
$db_name = \"xyz\";
$db_user = \"xyz\";
$db_pwd = \"xyz\";
$query1 = \"insert into items values(0, \'Tony\', \'Tony blah\', 23.95)\";
$query2 = \"insert into items values(0, \'FI\', \'FI blah\',36.50)\";
//db connection
$link = mysql_connect($db_host, $db_user, $db_pwd)
or die(\"Could not connect : \" . mysql_error());
mssql_select_db($db_name)
or die(\"Could not select database\");
//execute query
mysql_query($query1)
or die(\"Query failed : \" . mysql_error());
mysql_query($query2)
or die(\"Query failed : \" . mysql_error());
?>[/php:1:1c115473be]
However, if you have lots of lines to add, you can try the following algo:
1, save all lines in a file
2, using a PHP script, read the file line-by-line
3, in a manner similar to above, execute each line (query)
There are other ways also, you may wanna have a look at the LOAD DATA INFILE syntax.