04-11-2019
Thank You Neo,
Solved now
Kind regards
Boris
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
Happy New Year to you all!
I have a requirement to read an embedded new-line using KSH's read builtin.
Here is what I am trying to do:
run_sql "select guestid, address, email from guest" | while read id addr email
do
## Biz logic goes here
done
I can take care of any... (6 Replies)
Discussion started by: a_programmer
6 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
3. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
4. Shell Programming and Scripting
Hi, currently I have a script with conditional checking. But it's not flexible to use, because i must create a more conditional script if there are more keyword (see table) required. Question is: Can I create a more smarter script that will be more flexible?
I appreciate any help anyone can give... (8 Replies)
Discussion started by: jazzyzha
8 Replies
5. Shell Programming and Scripting
Hi.
How can I create a history function? (By "read" command or so)
&
How can I configure a read command so that the arrow keys are not displayed so funny? (^[[A)
Thanks in advance. (4 Replies)
Discussion started by: sinnlosername
4 Replies
6. Shell Programming and Scripting
Hello,
I am trying to inject data extracted via php-json to sql database but unable to run it in loop mode. It is working just for one data, then stops.
If it's necessary, I can share the complete php file.
test.php
<?php
include_once 'imdb.class.php';
//mysql config.
$servername =... (4 Replies)
Discussion started by: baris35
4 Replies
7. Shell Programming and Scripting
.... Solved....
..
..
Hello,
I've read couples of similar threads to my question and I strongly believe that I am doing something wrong. What I'm trying to do is to process data with php. It reads data from shell script.
Everything goes well but at the end it does not print what it reads... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT PHP
mssql_select_db
MSSQL_SELECT_DB(3) MSSQL_SELECT_DB(3)
mssql_select_db - Select MS SQL database
SYNOPSIS
bool mssql_select_db (string $database_name, [resource $link_identifier])
DESCRIPTION
mssql_select_db(3) sets the current active database on the server that's associated with the specified link identifier.
Every subsequent call to mssql_query(3) will be made on the active database.
PARAMETERS
o $database_name
- The database name. To escape the name of a database that contains spaces, hyphens ("-"), or any other exceptional characters,
the database name must be enclosed in brackets, as is shown in the example, below. This technique must also be applied when
selecting a database name that is also a reserved word (such as primary).
o $link_identifier
- A MS SQL link identifier, returned by mssql_connect(3) or mssql_pconnect(3). If no link identifier is specified, the last
opened link is assumed. If no link is open, the function will try to establish a link as if mssql_connect(3) was called, and use
it.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
mssql_select_db(3) example
<?php
// Create a link to MSSQL
$link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi');
// Select the database 'php'
mssql_select_db('php', $link);
?>
Example #2
Escaping the database name with square brackets
<?php
// Create a link to MSSQL
$link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi');
// Select the database 'my.database-name'
mssql_select_db('[my.database-name]', $link);
?>
SEE ALSO
mssql_connect(3), mssql_pconnect(3), mssql_query(3).
PHP Documentation Group MSSQL_SELECT_DB(3)