Forum: PHP Nov 13th, 2005 |
| Replies: 2 Views: 1,885 You don't have to get really advanced to get the time :) There is already a built-in function for that that can do all of that in one line.
if (date('A') == 'AM')
{
// it is AM
}
else
{
... |
Forum: PHP Nov 13th, 2005 |
| Replies: 2 Views: 3,187 http://ca3.php.net/manual/en/function.asort.php |
Forum: PHP May 6th, 2005 |
| Replies: 5 Views: 2,484 So how about using 'elseif'?
Such as :
if ($choice=="staff publications"){
$query="SELECT * FROM staffpub WHERE match (authors, title, source, keywords, mesh, year, notes) against ('$name'... |
Forum: PHP May 6th, 2005 |
| Replies: 5 Views: 2,484 Your code was missing some quotations as well, so I took the liberty to add them in. You probably just didn't copy and paste the text, right? :) |
Forum: PHP May 6th, 2005 |
| Replies: 5 Views: 2,484 Please use [php] tags next time. I have formatted your post. |
Forum: MySQL Mar 22nd, 2005 |
| Replies: 5 Views: 2,665 Use this code instead: $rebate = mysql_fetch_array($rebate_information['rebate_amount']);
$rebate = $rebate[0];
And now, $rebate is set :)
Let me know if it didn't work; my PHP is a bit on... |
Forum: MySQL Mar 22nd, 2005 |
| Replies: 5 Views: 2,665 I edited code for easier reading. |
Forum: PHP Sep 30th, 2004 |
| Replies: 3 Views: 2,327 Please show a screenshot - a picture is worth a thousand words. |
Forum: DaniWeb Community Feedback Feb 13th, 2004 |
| Replies: 6 Views: 2,729 |
Forum: DaniWeb Community Feedback Feb 11th, 2004 |
| Replies: 6 Views: 2,729 The actual time is how it is right now ;) |