Well, I just started doing php on my own (not editing other people's stuff), and I'm trying to make a small ban script. I think I've done everything properly, but I have this one little parse, T_String error, and I can't find any improper semicolons and what not. I may have done something wrong, but anyways, I was just wondering if any of you could point out the problem in this script:
and, I already have another script set up with the form, and the method='POST'. The first textfield's name is username, and the second one is ipaddress (for the $_POST part).Code:<?php $conn = mssql_connect('*************', 'sa', '**************'); if(!$conn) { die('Error in connecting to the SQL Server.'); } mssql_select_db('****************'); $proc1 = mssql_init('dbo.ipbanningscript1', $conn); $proc2 = mssql_init('dbo.ipbanningscript2', $conn); mssql_execute($proc1); mssql_execute($proc2); mssql_query('INSERT INTO dbo.ipbans('UserID','IP') VALUES ('$_POST["username"]', '$_POST["ipaddress"]')'); ?>
And here's the error quoted:
Code:Parse error: syntax error, unexpected T_STRING in C:\the folder name which you cannot see O_o\post.php on line 18


Reply With Quote![[PHP]Script Help.](http://ragezone.com/hyper728.png)


