goma smile Posted July 11, 2008 Report Posted July 11, 2008 labdien, Man ir tads jautajums ..... man ir registracijas sistema un es gribetu uztaisiit ta ka piemeram izkir adminos un lietotajos man ir ta ka kad tu registrejies tu tavs status taka ir 1. bet adminiem 2 un pie userinfo parada Piemers (nezinu vai pareizs ..... ) mysql_query("SELECT * FROM Users WHERE pakape"); $user=1 { $user="LIetotaajs" } $user=2{ $user="Administrators" } nu kautka ta
Troxy Posted July 11, 2008 Report Posted July 11, 2008 nu uz to pusi jav ir a kas tev nav skaidrs?tu jav pac atbildeeju uz savu jautajumu
cucumber Posted July 11, 2008 Report Posted July 11, 2008 mysql_query("SELECT * FROM Users"); pec shada pieprasijuma vajag rezultatu apstradat un tad uzzinat, kads status lietotajam. izmantot if else, jo tava gadijuma visi bus admini
marcis Posted July 11, 2008 Report Posted July 11, 2008 Te tev jau sniedza vairāk kā izsmeļošu atbildi.
Recommended Posts