How can I read mysql data in a variable

Codes here !

Moderators: macek, egami, gesf

Post Reply
jemy
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

hi,

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

#!/bin/sh
# database test

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests