goma smile Posted July 11, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
Troxy Posted July 11, 2008 Report Share Posted July 11, 2008 nu uz to pusi jav ir a kas tev nav skaidrs?tu jav pac atbildeeju uz savu jautajumu Link to comment Share on other sites More sharing options...
cucumber Posted July 11, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
marcis Posted July 11, 2008 Report Share Posted July 11, 2008 Te tev jau sniedza vairāk kā izsmeļošu atbildi. Link to comment Share on other sites More sharing options...
Recommended Posts