Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Space in table(mysql) : echo value on screen

Codes here !

Moderators: macek, egami, gesf

Postby serge » Fri Oct 25, 2002 4:21 am

Try to use odbc_result:

Code: Select all
$cur=odbc_exec($cx,"select [my own id],pass from table_name");
echo "id:$id,pass:$pass";

More simle: use aliases in SQL query:
"SELECT [my own id] AS id,pass ..."


With best regards,
Serge Bulanov
AlarIT Web developer,
New php-forum User
New php-forum User
Posts: 14
Joined: Mon Sep 16, 2002 1:25 am
Location: Ukraine

Postby DoppyNL » Fri Oct 25, 2002 5:07 am

or use $row['telefone 2']

Greetz Daan

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.