PDA

View Full Version : redirecting


bennystromberg
01-09-2004, 08:29 AM
Hi,

I got a little problem and I would appreciate some help. I´m making a web application where administrators and the normal users are going to be redirected to different pages. I have a column called admin in my db that is either 1 or 0. If admin=1, then redirect to adminview.php else redirect to normalview.php. How can I code this in php?

Thanks!

bennystromberg
01-09-2004, 09:29 AM
It works! I finally solved my problem.

bennystromberg
01-09-2004, 09:53 AM
I have another problem that you may be able solve.
I´m fetching information from a mysql db to a web page. The information is long and I would have to get the information on three rows (in one textbox). Is this possible?

Thanks!

raf
01-09-2004, 10:13 AM
You can use a textarea. No? And there you can specify how many rows you need.

Note: textareas don't have a value-attribute. The value is placed between the tags. Like
echo ('<textarea rows="3"...>' . $row['variale'] . '</textarea>');