Search found 6 matches
- Wed Oct 09, 2002 8:05 am
- Forum: PHP - Code
- Topic: Modify an ADODB resultset before displaying with rs2html()
- Replies: 1
- Views: 930
I found the solution...
If anyone is trying to do this...the complete code would step you through obtaining the ADODBrescordset via SQL query, then move the ADODBrecordset to an array with the GetArray() func., then loop through the array to identify and change the value(s) you wish. <?php /* ADODB syntax to create ...
- Fri Oct 04, 2002 8:11 pm
- Forum: PHP - Code
- Topic: Modify an ADODB resultset before displaying with rs2html()
- Replies: 1
- Views: 930
Modify an ADODB resultset before displaying with rs2html()
OK, I'm doing something a little different now. I'm taking the ADODBrecordset and creating an array from it with the code below: $dbconn->Connect($server, $user, $pass, $db); $sSQL = 'select field1, field2 from table1'; $rs = $dbconn->Execute($sSQL); $rs_array = $rs->GetArray(); Now $rs_array is a s...
- Sun May 19, 2002 10:47 pm
- Forum: PHP - Code
- Topic: Can PHP CLI perform cout/cin type Fuctionality?
- Replies: 4
- Views: 4475
It works!!!
Thanks for the sample! It works perfect! :P Since you've never tried it, I've supplied a working example that can be used from the CLI. Thanks again! <? // Retrieve age from user input $handle = fopen("php://stdin", "r"); echo "\nPlease enter your age: "; fscanf($handle...
- Sun May 19, 2002 8:58 pm
- Forum: PHP - Code
- Topic: Can PHP CLI perform cout/cin type Fuctionality?
- Replies: 4
- Views: 4475
- Sun May 19, 2002 5:07 pm
- Forum: PHP - Code
- Topic: Can PHP CLI perform cout/cin type Fuctionality?
- Replies: 4
- Views: 4475
Can PHP CLI perform cout/cin type Fuctionality?
I would like to request user input from the CLI by prompting for it. Then they type it in and I could assign their input to a variable(s). Does php provide functionality like 'cout <<' & 'cin >>' ? If yes, can anyone tell me how.
- Sat May 18, 2002 12:15 pm
- Forum: PHP - Code
- Topic: Can user input be requested/retrieved from CLI, ie stdin()?
- Replies: 1
- Views: 2957
Can user input be requested/retrieved from CLI, ie stdin()?
I would like to prompt for user input in a php cli script, like stdin(), then assign the input to variables. Is this possible with PHP. I'm running 4.2.1(Windows & Linux x86).
Thanks.
Thanks.