Devam Ediyor

Accounts Link Redirects From Seller To Buyer

Accounts Link Redirects From Seller To Buyer

Scenario

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:

SELECT *

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

-----------------------------------------------------------------------------------------------------------------------

INFORMATION PROVIDED:

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.

SELECTION PROCESS:

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ün: 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

Seçilen:

h114

Please have a look at the PMB.

1 gün içinde 30$ USD
(22 Değerlendirme)
6.0

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

websree

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

in 0 gün içinde30$ USD
(203 Değerlendirme)
8.0
pegla

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

1 gün içinde 30$ USD
(31 Değerlendirme)
5.4
duyduy

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

in 2 gün içinde60$ USD
(4 Değerlendirme)
3.8
sat12345

Plz check PMB...

1 gün içinde 30$ USD
(52 Değerlendirme)
3.9
starstechnology

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 fazlası

1 gün içinde 30$ USD
(0 Değerlendirme)
0.0