Accounts Link Redirects From Seller To Buyer

Accounts Link Redirects From Seller To Buyer


At my homepage [url removed, login to view], if a user is not logged in and clicks the seller link on the top toolbar, he is asked to login at /login/sellers/. Once the credentials are submitted, if the user has an account but its not a sellers account, I want a script to redirect them to the /accounts/ page which is for buyers. Otherwise, the actual seller with the proper password will login and be able to access the /sellers/ page... as the link on the toolbar indicates.

There is a column in the accounts table called "accesslevel".

buyers = 1 sellers = 2

On my SQL statement at /sellers/ is:


FROM accounts

WHERE [url removed, login to view] = TM_username AND accesslevel = '2'

This works in one way. Because if he's a user (buyer) but not a seller, I have a "Show if Recordset is Empty" showing this message "There is no sellers account setup." ....see sample image. I prefer not to show this message but rather to redirect the buyers (that have an accesslevel of 1) to the accounts page located at /accounts/.

I believe that requires a very small "if statement"

Scripting Language: PHP using Dreamweaver CS4



Above, I have provided what I believe is all the information regarding this project with exception to login information to the FTP & database. Please base your bid on this but I will be happy to answer questions and exchange correspondence through this website's personal message board during the development of this work. Try to keep in mind of time zones differences if responses aren't immediate.


Not required but it is very helpful when the service provider explains in very short detail your approach & end results of the work in completing this project here.

Beceriler: Javascript, Linux, MySQL, PHP, SQL

Daha fazlasını gör: zones, your message from, want a buyer, this seller, t accounts, service link, buyers access, base exception, a seller, an approach to, 3 seller, website seller, seller, buyer, accounts work, personal service provider, account short questions, exchange end, database sellers, php redirects, link sql, recordset, php sample login project, php exchange 2010, sql exchange

İşveren Hakkında:
( 31 değerlendirme ) Antioch, United States

Proje NO: #702172



Please have a look at the PMB.

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(22 Değerlendirme)

Bu iş için 6 freelancer ortalamada $35 teklif veriyor


We are ready to do it. Please check pmb for more details.

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(203 Değerlendirme)

hi, this shouldn't be a problem, check PMB

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(31 Değerlendirme)

I can do exactly what you want , Please sent me your information hosting to fix it

in %bids___i_period_sub_35% gün içinde60%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(4 Değerlendirme)

Plz check PMB...

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(52 Değerlendirme)

Greetings My Name is Abdul Sami and I belong to Pakistan. After studying your project details I think I am capable of doing this project. I will simply use a php function to redirect the coustomer to his account. Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)