redarrow Posted September 12, 2006 Share Posted September 12, 2006 [b]solved[/b]advance thank you.Is my syntex correct i get a phase error cheers.i want if the $recor['value'] empty then echo messagecheers[code]<?phpdatabase connection$query2="select * from members where name='$name' and password='$password'";$result2=mysql_query($query2);while($recor=mysql_fetch_assoc($result2)){if( (empty($recor['email_activated']))&& (empty($recor['paypal_payment_payed']))&& (empty($recor['paypal_status'])) ){echo "sorry acctivate your account via email";}?>[/code] Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 12, 2006 Share Posted September 12, 2006 you may want to use || (or) instead of && (and) if you want the user to respond by email if any of the fields are empty. Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 12, 2006 Author Share Posted September 12, 2006 i didnt ask for a leture on || ors and && i undestand all that i am not stupid JENK i solved the problam i missed a bracket look and see ok.sorry jenk but you dont seem to exsplain all the code you post in this forum i no your good at what you do and probley a real php auther but the guide lines state that all forum helpers should show examples and exsplain the example in plain english.advnce thank you. Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 12, 2006 Share Posted September 12, 2006 I did explain, in plain English too. You did not - You asked for advice on your logic, I gave advice on your logic.Also note, this is a public discussion forum. Hence it being open to discussion.So next time I explain the use of || or && I have to post an example?Ok.[code]<?php$a = 1 || 2;$b = 1 && 2;?>[/code]done. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.