Det kunne tyde på at du i dinne input felter på rediger siden, mangler gåseøjne rundt om din value værdi. Altså:
<input ... value=<?=$data ?>>
til
<input ... value="<?=$data ?>">
Kunne forestille mig, at det er problemet, og hvis det ikke er det, vil lidt kode fra rediger siden nok hjælpe.
Det er nærmest omvendt. I $text er der ikke " rundtom men det er der i de andre. Jeg har prøvet at fjerne ". og ." fra ".$net." men det virkede stadig ikke. Her er koden:
<html>
<head>
</head>
<body bgcolor="#5D5D5D">
<?if($rediger) {
$conn = mysql_connect("********", "*******", "********");
mysql_select_db("waveline");
$query = mysql_query("select id, nick, navn, alder, sted, vaaben, map, motherboard, mouse, mousepad, headphones, monitor, cpu, ram, grafik, system, sound, net, text from members where id='$id'");
while($r = mysql_fetch_array($query))
{
$nick = $r[nick];
$navn = $r[navn];
$alder = $r[alder];
$sted = $r[sted];
$vaaben = $r[vaaben];
$map = $r[map];
$motherboard = $r[motherboard];
$mouse = $r[mouse];
$mousepad = $r[mousepad];
$headphones = $r[headphones];
$monitor = $r[monitor];
$cpu = $r[cpu];
$ram = $r[ram];
$grafik = $r[grafik];
$system = $r[system];
$sound = $r[sound];
$net = $r[net];
$text = stripslashes(nl2br($r[text]));
$id = $r[id];
echo "<table><tr><td><form action=\\"rediger_member2.php\\">";
echo "Nick:</td><td> <input type=text name=nick value=".$nick."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Navn: </td>";
echo "<td><input type=text name=navn value=".$navn."><input type=hidden name=id value=".$id."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Alder: </td>";
echo "<td><input type=text name=alder value=".$alder."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Bopæl: </td>";
echo "<td><input type=text name=sted value=".$sted."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Fav. våben: </td>";
echo "<td><input type=text name=vaaben value=".$vaaben."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Fav. map: </td>";
echo "<td><input type=text name=map value=".$map."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Bundkort: </td>";
echo "<td><input type=text name=motherboard value=".$motherboard."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Mus: </td>";
echo "<td><input type=text name=mouse value=".$mouse."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Musemåtte: </td>";
echo "<td><input type=text name=mousepad value=".$mousepad."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Headset: </td>";
echo "<td><input type=text name=headphones value=".$headphones."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Skærm: </td>";
echo "<td><input type=text name=monitor value=".$monitor."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Processer (CPU): </td>";
echo "<td><input type=text name=cpu value=".$cpu."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>RAM: </td>";
echo "<td><input type=text name=ram value=".$ram."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Grafikkort: </td>";
echo "<td><input type=text name=grafik value=".$grafik."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Operativ system: </td>";
echo "<td><input type=text name=system value=".$system."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Lydkort: </td>";
echo "<td><input type=text name=sound value=".$sound."></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Internet connection: </td>";
echo "<td><input type=text name=net value=".$net."></td>";
echo "</tr>";
echo "<tr>";
echo "<td valign=top>Fri tekst: </td>";
echo "<td><textarea cols=40 rows=8 name=nyhed class=input>$text</textarea></td>";
echo "</tr>";
echo "<tr>";
echo "<td>";
echo "<input type=submit name=rediger2 value=Rediger>";
echo "</td>";
echo "</tr>";
echo "</form>";
echo "</table>";
}
mysql_close($conn);
}
?>
</body>
</html>
$rediger er en knap fra en form på en forrig side som sender id'et på "memberen" (Det er en cs clan side). Håber du kan hjælpe
Indlæg senest redigeret d. 12.03.2006 12:06 af Bruger #5766