---
title: "Vill ha datum centrerat på sidan...."
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/42805-vill-ha-datum-centrerat-på-sidan"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "ReDeMeR"
published: "2002-04-30T10:16:30.000Z"
updated: "2002-04-30T10:16:30.000Z"
replies: 0
views: 123
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/42805-vill-ha-datum-centrerat-på-sidan"
---

# Vill ha datum centrerat på sidan....

## #1 — ReDeMeR, 2002-04-30T10:16Z

Tjena!... ja vill få mitt datum i mitten av sidan....

\<?php
$today = getdate(); 
$month = $today\['month'\]; 
$mday = $today\['mday'\]; 
$year = $today\['year'\]; 

if ($month == "January")
{$month = "Januari";}
if ($month == "February")
{$month = "Februari";}
if ($month == "March")
{$month = "Mars";}
if ($month == "May")
{$month = "Maj";}
if ($month == "June")
{$month = "Juni";}
if ($month == "August")
{$month = "Augusti";}

if ($mday == "1" . "2" . "21" . "22" . "31")
{
echo "$mday:a $month $year";
}
else
{
echo "$mday:e $month $year";
}
?\>

\<echo qq\~ \<html\>
\<head\>
\<title\>main\</title\>
\<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"\>
\</head\>

\<body bgcolor="#000000" text="#339933" link="#33FF00" alink="#666600" vlink="#666666"\>
\<div align="center"\>
  \<p\>&nbsp;\</p\>
  \<p\>&nbsp; \</p\>
  \<p\>de_dust4.zip\</p\>
  \<p\>cs_havana.zip\</p\>
\</div\>
\</body\>
\</html\>

vad ska jag göra för att få datumet i mitten på sidan??...

Permalänk: https://www.webforum.nu/p/42805

---

Tråden på webben: https://www.webforum.nu/amne/php/42805-vill-ha-datum-centrerat-på-sidan
