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

employee_profile SET MailFile= 'mail\\mhelmy'

Codes here !

Moderators: macek, egami, gesf

employee_profile SET MailFile= 'mail\\mhelmy'

Postby Pakcik_Kantin » Thu Jan 23, 2003 1:08 am

I cannot view the mailfile, even stripslahes and addslashes..
How to view the MailFile?

$shortName = $row['ShortName'];
$serverAddress = $row['ServerAddress'];
$mailFile = $row['MaiFile'];
echo $mailFile;

Nothing came out ...PLS help
Pakcik_Kantin
New php-forum User
New php-forum User
 
Posts: 12
Joined: Sun Jan 19, 2003 8:35 pm
Location: Canteen

Postby Joan Garnet » Thu Jan 23, 2003 3:11 am

It should work...
Code: Select all
echo $row['MaiFile'];

Are you keeping values in an array??
because then you'll have to use this:

Code: Select all
while ($row=mysql_fetch_array($result)){
  $shortName[] = $row['ShortName'];
  $serverAddress[] = $row['ServerAddress'];
  $mailFile[] = $row['MaiFile'];
}
echo "<pre>";
print_r ($mailFile);
echo "</pre>";


Does it help??
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars


Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

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

cron