How can I read mysql data in a variable

Codes here !

Moderators: macek, egami, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Jan 02, 2003 5:27 am
Location: Munich / Germany

bash variable

Post by jemy » Thu Jan 02, 2003 8:40 am


is that right?
You are looking for a bash script, which takes a variable out of mysql...
Something like that, maybe:

# database test

test1=(`mysql -uroot -pPassword -DtblTable -e "select groeps from yblTable;"``)
echo "${test1[1]}"

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests