Jackal Posted May 6, 2006 Report Share Posted May 6, 2006 Es kaut ko esmu nepareizi sarakstijis nestrādā shitas skripts. Kas tur ar to if nav pareizi? if($users_id = $id){ echo " "; } else { echo '<input type="submit" name="submit" value="Send Message">'; } Link to comment Share on other sites More sharing options...
Gu6ax Posted May 6, 2006 Report Share Posted May 6, 2006 if($users_id == $id){ echo " "; } else { echo '<input type="submit" name="submit" value="Send Message">'; } Link to comment Share on other sites More sharing options...
bubu Posted May 6, 2006 Report Share Posted May 6, 2006 = ir piešķiršanas operators. Tas kreisās puses mainīgajam piešķir labās puses vērtību. == ir salīdzināšanas operators. Tas atgriež true/false atkarībā no tā vai abās puseš esošie mainīgie satur vienādas vērtības. Paskaties tagad uz savu kodu, un pasaki, kuru no abiem operatoriem tu izmanto? Link to comment Share on other sites More sharing options...
Delfins Posted May 8, 2006 Report Share Posted May 8, 2006 paskālisti... gy Link to comment Share on other sites More sharing options...
Recommended Posts