Search found 6 matches
- Tue Oct 13, 2009 7:28 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
Re: 1 img or the other
also... # <tr> <td colspan="3" class="th">My Achievements - (<font color="lime">0</font>/3)</td> </tr> <tr> <td colspan="3"><img src="<?php echo ($player['vResult'] >= 1) ? 'oc2.png' : 'oc1.png'; ?>"/></td> </tr> how would i go about doing more pictu...
- Tue Oct 13, 2009 5:10 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
Re: 1 img or the other
i don't know what you mean by "create table" - i posted the fields.... Field Type Collation Attributes Null Default Extra Action uID int(11) UNSIGNED No Browse distinct values Change Drop Primary Unique Index Fulltext vTime int(11) UNSIGNED No Browse distinct values Change Drop Primary Uni...
- Tue Oct 13, 2009 4:39 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
Re: 1 img or the other
found this on another page - dunno if it will help any... $vault['success'] = mysql_result(mysql_query('SELECT count(0) FROM `logs_vault` WHERE `uID` = '.$uID.' AND `vResult` = 1'), 0); <tr> <td><?= number_format($vault['success']); ?></td> </tr> logs_vault table: uID vTime vResult 1 Succe...
- Tue Oct 13, 2009 4:26 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
Re: 1 img or the other
this works... and had no errors :) <tr> <td colspan="3" class="th">My Achievements - (<font color="lime">0</font>/3)</td> </tr> <tr> <td colspan="3"><img src="<?php echo ($player['vResult'] >= 1) ? 'oc2.png' : 'oc1.png'; ?>"/></td> </tr> but now my...
- Mon Oct 12, 2009 6:43 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
Re: 1 img or the other
Parse error: syntax error, unexpected $end in /home/thecart/public_html/viewprofile.php on line 442 - the error i get.. i put this way up at the top after it connects... $vault['success'] = mysql_result(mysql_query('SELECT count(0) FROM `logs_vault` WHERE `uID` = '.$uID.' AND `vResult` = 1'), 0); i ...
- Mon Oct 12, 2009 12:16 pm
- Forum: PHP - Code
- Topic: 1 img or the other
- Replies: 10
- Views: 450
1 img or the other
hi, i own: http://www.thecartelproject.com and i need some help with a small piece of php (i am not a php coder, i know nothing of it really) - kinda lost my coder.. anyways in a td tag.. i would like to show 1 pic or another ex: $vault['success'] = mysql_result(mysql_query('SELECT count(0) FROM `...