[PHP] Database Stored Procedure Result

2001-08-07 Thread James Stevens
I use ODBC on a Win2K system to connect to a MS-SQL database. I use a stored procedure in the database to add a record to a table. The stored procedure returns a result code that is either the records ID or a -1 indication that the record was not added. How do I check the return result in PHP

[PHP] General Coding Question

2001-06-20 Thread James Stevens
Does it have any effect on performance in either case if a file is completely done in PHP(1) or interspersed with PHP(2). (1) ?php echo html; ... ? (2) html ... ?php echo $forminput; ? ... Also, and this is personal preference, which is easier to read/debug? James -- PHP General Mailing

RE: [PHP] Form security

2001-05-24 Thread James Stevens
Another way to do this is to have a form element with an odd name and value that you can check for before processing the post. This is not too secure if someone knows the name and value though. In that case you can use the referer _and_ a unique element name and value that is related to the