[PHP] Parse Error

2001-01-14 Thread Wade Halsey
Hi Im getting a parse error with this: $sqlCheckLogin = sqlExecute( "Select * from Sky where SkyUName = '".$HTTP_POST_VARS['UserName']."' AND SkyPasswd = '".($HTTP_POST_VARS['Password'])."'" ) ; Help

[PHP] Populating table rows

2001-01-16 Thread Wade Halsey
Hi Ive selected some details from a database and now want to loop through the result and populate a row in a table each time. $sqlCurrentTraces = sqlExecute( "Select * from Sky where No = '$Name'" ); $result = sqlFetchObject( $sqlCurrentTraces ); $SkyDateAss = $result ->DATEASSIGNED; $SkyDate

[PHP] HTTP_POST

2001-01-16 Thread Wade Halsey
AccNo = (Here I want the value of the checkbox) Do I use HTTP_POST_VARS here and if so how?? Thanks Wade Halsey [EMAIL PROTECTED]

[PHP] HTTP_POST???

2001-01-16 Thread Wade Halsey
AccNo = (Here I want the value of the checkbox) Do I use HTTP_POST_VARS here and if so how?? Thanks Wade Halsey [EMAIL PROTECTED]

[PHP] Creating a text file

2001-01-17 Thread Wade Halsey
Hi I have the following code in Delphi: procedure TFormConfirmAllocation.CreateTxt; var TxFile : TextFile; Buffer : string; x : integer; begin AssignFile(TxFile,'\SkyTrac.sky'); Rewrite(TxFile); with FormConfirmAllocation.Query1 do begin open; while not Eof do b

[PHP] HTTP_POST??

2001-01-17 Thread Wade Halsey
Hi I have a while loop which populates rows in a table, in each row is a checkbox which has a unique name: On another page I want to output all the details in a specific table row, how do I check which checkbox has been checked so that specific row can be displayed? Thanks for any help Wa

[PHP] Zip file

2001-01-22 Thread Wade Halsey
Hi Does anyone know how to create a .zip file using php? Thanks in advance! Wade

[PHP] access violation

2001-02-21 Thread Wade Halsey
hi im running iis5 and php 4.04 i get the following error : PHP has encountered an Access Violation at 78003ABF im pretty sure its a server problem, can anyone confirm this or help out? if it is a server error how can it be fixed? this is quite urgent thanks Wade

[PHP] access violation

2001-02-21 Thread Wade Halsey
its a server problem, can anyone confirm this or help out? if it is a server error how can it be fixed? this is quite urgent thanks Wade Wade Halsey [EMAIL PROTECTED] [EMAIL PROTECTED] Cell: 0835560990 Work: (043) 701 4226

Re: [PHP] PostgreSQL vs InterBase

2001-02-27 Thread Wade Halsey
Hi We have been using Interbase for all our php development and have not experienced problems. The oprational database is 4gigs and if we execute large queries on it we recieve sub-second responses so speed is definetly not a problem Interbase is a good way to go if you have need for a relationa

[PHP] Execute sql a number of times

2001-03-14 Thread Wade Halsey
Hi I need to execute an sql statement a certain number of times based on a users input /* number of times to execute $NumCases = $HTTP_POST_VARS['txtNumCases']; /* sql to run $GetDetails = sqlexecute("select b.accno,b.debttype, c.surname, c.initial ,c.firstname, c.id_number, c.maidenname, c.ad

[PHP] Mail

2001-03-14 Thread Wade Halsey
Hi   im having a slight problem with this mail class, it works fine up until the loop runs more than 13 times, is this a looping problem or a mail problem? Ive attatched the mail class and the code is below:     include "./include/mime_mail.inc";$fp=fopen(TestFile.txt, "w"); /*loop certain n

[PHP] write to a file

2001-04-18 Thread Wade Halsey
Hi I have the following code $fp=fopen($agentcode.date("m-d-Y-g-i-s").'CyberTrac.ctr', "w"); fwrite($fp,"$agentcode etc etc"); $fc = fopen($fp, 'rb'); $attachment = fread($fc , filesize($filename)); fclose($fc); $mail = new html_mime_mail('X-Mailer: Html Mime Mail Class'); $mai

[PHP] Whitespace

2001-05-22 Thread Wade Halsey
Hey How can I add a certain number of whitespace chars to a text file? I write variables to a text file and I want to seperate them by certain numbers of whitespace chars eg : $var(40 whitespace)$var2(10 whitespace) TIA Wade

[PHP] sql problem

2001-03-23 Thread Wade Halsey
Hi ppl ("select empname from employer where empno = (select employercode from badclient where pesal = '$Persal')") Could anyone help me out with the syntax? Im running an interbase db and php4.04 Thanks Wade

[PHP] sql looping problem??

2001-04-03 Thread Wade Halsey
Hi I have the following code /*number of times to run*/ $NumCases = $HTTP_POST_VARS['txtNumCases']; /*execute the sql*/ $sqlLargeRequest = sqlexecute($LargeRequest); for ($val = 0; $val < $NumCases; ++$val){ if ($val < $NumCases) { $details = sqlFetchObject( $sqlLargeRequest ); $AccNo = $d

[PHP] apostrophe checks

2001-04-08 Thread Wade Halsey
Hi Ive got a textarea control on a form where a user will enter info, i want to enter this info into an interbase db,ive limited the space to 200 characters in the text area but need to now eliminate any apostrophes and other bad characters, anyone have a function? TIA Wade

[PHP] syntax

2001-04-11 Thread Wade Halsey
Hi I need to name a file like this $fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w"); the file gets named echo $agentcodeCyberTrac.ctr, now I want a real value in $agentcode, there is a value in there so it must be my syntax, anyone help? TIA Wade