Avatar billede homemicky Nybegynder
28. april 2004 - 12:11 Der er 11 kommentarer

billede nyhedspalte

Hej hej

Er der nogen der kan forklarer mig hvorfor den ikke viser billedet i min nyhedspalte på www.borki.dk. Det det sql eller er det php der noget galt med et eller andet er der ihvertfald galt?

Jeg vil blive rigtig glad hvis der er nogen der gider at hjælpe mig :-)
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:18 #1
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:18 #2
den prøver at finde billedet der og du kan ikke finde billede på c. drev
Avatar billede homemicky Nybegynder
28. april 2004 - 12:19 #3
hvordan retter jeg det ???
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:23 #4
kom med kode fra denne side blank.htm
Avatar billede homemicky Nybegynder
28. april 2004 - 12:24 #5
der ikke noget på blank men du får skriv.htm istedet for. da jeg tror det er den du skal bruge istedet for
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:28 #6
<img src="/Danish/nyhedbilleder/face.gif"> og så skal du skrive havd billeder hedder ud for ve billede i html coden
Avatar billede homemicky Nybegynder
28. april 2004 - 12:31 #7
skrivkatalog.htm
<html>

<head>
<meta http-equiv="Content-Language" content="da">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Ny side 1</title>
</head>

<body bgcolor="#DFD5CA" topmargin="75" leftmargin="85">
        <form action="nyhedgem.php" method="post" id="nyhed">
<table border="1" cellspacing="1" width="1%">
  <tr>
    <td width="100%" colspan="4">
    <p style="margin-top: 0; margin-bottom: 0" align="center">
    <b><font face="Arial">Skriv til Nyhedsdatabasen her!</font></b></td>
  </tr>
  <tr>
    <td width="10%">
    <p style="margin-top: 0; margin-bottom: 0">Emne:</td>
    <td width="41%">
    <p style="margin-top: 0; margin-bottom: 0"><input maxlength="255" size="28" name="emne"></td>
    <td width="10%">
    <p style="margin-top: 0; margin-bottom: 0">Sted:</td>
    <td width="41%">
    <p style="margin-top: 0; margin-bottom: 0">
    <input maxlength="255" size="29" name="sted"></td>
  </tr>
  <tr>
    <td width="50%" colspan="2">
    <p style="margin-top: 0; margin-bottom: 0">Kategori:</td>
    <td width="50%" colspan="2">
    <p style="margin-top: 0; margin-bottom: 0">
    <select name="kategori" style="width: 249; height: 249">
                  <option selected>Fester</option>
                  <option>Rejser / Udflugter</option>
          <option>Venner</option>
          <option>Familie / Far</option>
                  <option>Familie / Mor</option>
                  <option>Familie / Maya</option>
                  <option>Familie / Baby</option>
          <option>Familie / Frida</option>
          <option>Familie / Andre</option>
          <option>Sjov og Spas</option>
                  <option>Den Seriøse</option>
                  <option>Den Useriøse</option>
                  <option>Biler</option>
                  <option>Andre</option>
                  </select></td>
  </tr>
  <tr>
    <td width="50%" colspan="2">
    <p style="margin-top: 0; margin-bottom: 0">Indsæt billede:</td>
    <td width="50%" colspan="2">
    <p style="margin-top: 0; margin-bottom: 0" align="left">
      <input type="file" name="billede" size="20"></p>
    </td>
  </tr>
  <tr>
    <td width="100%" colspan="4">
    <p style="margin-top: 0; margin-bottom: 0">Beskrivelse:</td>
  </tr>
  <tr>
    <td width="100%" colspan="4">
    <p align="center" style="margin-top: 0; margin-bottom: 0"><textarea name="beskrivelse" cols="40" rows="6" style="font-size: 12pt; font-family: Arial; font-weight: normal; font-style: normal; color: Black;"></textarea></td>
  </tr>
    <tr>
    <td width="100%" colspan="4">
    <p style="margin-top: 0; margin-bottom: 0" align="center"><b>
    <font face="Arial">Tryk på knappen for at sende til databasen!</font></b></td>
  </tr>
    <tr>
    <td width="100%" colspan="4">
    <p style="margin-top: 0; margin-bottom: 0"><p align="center"><input type="submit" value="Tilføj"></p></td>
  </tr>
</table>

</body>

</html>



Nyhedgem.php

<?
$conn = mysql_connect("localhost", "aaaaaa", "aaaaaa");
mysql_select_db("nyhedspalten");
$SQL = "insert into nyhed
  (emne, sted, kategori, billede, beskrivelse)
  values ('$emne', '$sted' ,'$kategori', '$billede' , '$beskrivelse')";
mysql_query($SQL) or die(mysql_error());
header("location:nyhedse.php");
?>

Nyhedse.php

<HTML>
<head>

</head>

<span style="height: 100%; width: 604px;
background-color:#DFD5CA;
scrollbar-face-color: #4C5249;
scrollbar-hightlight-#4C5249 ;
scrollbar-shadow-color: #4C5249;
scrollbar-3dlight-color: #4C5249;
scrollbar-arrow-color: #B6950E;
scrollbar-track-color: #4C5249;
scrollbar-darkshadow-color: #4C5249; overflow: auto;">

<?
$conn = mysql_connect("localhost", "aaaaa", "aaaaaa");
mysql_select_db("nyhedspalten");
$SQL = "select * from nyhed order by id desc";
$result = mysql_query($SQL) or die(mysql_error());

while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo"<table border=\"0\" width=\"100%\">
  <tr>
    <td width=\"50%\"><b><blockquote>
    <p style=\"margin-top: 0; margin-bottom: 0\">Emne:</b></td></p>
    <p style=\"margin-top: 0; margin-bottom: 0\">
    <td width=\"50%\">".$line['emne']."</td>
  </tr>
  <tr>
    <td width=\"50%\"><b><blockquote>
      <p style=\"margin-top: 0; margin-bottom: 0\">Sted:</b></td></p>
    <p style=\"margin-top: 0; margin-bottom: 0\">
    <td width=\"50%\">".$line['sted']."</td>
  </tr>
  <tr>
    <td width=\"50%\"><b><blockquote>
        <p style=\"margin-top: 0; margin-bottom: 0\">Kategori:</b></td></p>
    <p style=\"margin-top: 0; margin-bottom: 0\">
    <td width=\"50%\">".$line['kategori']."</td>
  </tr>
  <tr>
    <td width=\"50%\"><b></p>
      <blockquote>
        <p style=\"margin-top: 0; margin-bottom: 0\">Billede:</b></td></p>
    <p style=\"margin-top: 0; margin-bottom: 0\">
    <td width=\"50%\"><img src=\"/Danish/nyhedbilleder/". $line['billede'] ."\"></td>
  </tr>
  <tr>
    <td width=\"50%\"><b></p>
        <blockquote>
        <p style=\"margin-top: 0; margin-bottom: 0\">Beskrivelse:</b></td></p>
    <p style=\"margin-top: 0; margin-bottom: 0\">
    <td width=\"50%\">".$line['beskrivelse']."</td>
  </tr>
</table>
<HR>";}
?>
</span>
</body>
<BODY style="background-color: transparent;">
</html>
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:36 #8
din fejl ligge ved billede du upload ikke billedet men gemmer bare stien til billedet og der for kan du ikke se det
Avatar billede homemicky Nybegynder
28. april 2004 - 12:41 #9
hvordan laver jeg det ??
Avatar billede homemicky Nybegynder
28. april 2004 - 12:42 #10
eller er det en større proces??
Avatar billede technodance.dk Nybegynder
28. april 2004 - 12:54 #11
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester