Jump to content

[solved]is my coding logic correct.


redarrow

Recommended Posts

[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 message

cheers


[code]
<?php
database 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]
Link to comment
https://forums.phpfreaks.com/topic/20491-solvedis-my-coding-logic-correct/
Share on other sites

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.
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.