Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- ok
- what would happen if your system failed after this?
- i never even knew i had sticky notes! this site is great!
- i like the new feature and don't see why you should remove the options.
- wish you could remove certain words from your results
5 months ago
while($row = mysql_fetch_row):
if($condition = true) { $something = $value }
endwhile;
that works. However, consider the following
while($row = mysql_fetch_row):
$something = ($condition = $true) ? $value : null;
endwhile;
If the condition is met, everything works fine, but on the next iteration of the loop, if the condition is not met, $something is set to null, which is probably not the desired effect 9 times out of 10.
5 months ago
1 month ago
I would advise the following as well
while($row = mysql_fetch_row):
if($condition = true) { $something = $value }
endwhile;
1 month ago