Jump to content

[SOLVED] data from database lag


bluebyyou

Recommended Posts

 

my little version sorry no more idears sorry m8.

 

<?php

$picid=$_POST['picid'];
$user=$_SESSION($_POST['user']);
$postername=$_POST['postername'];
$striptext = stripslashes(strip_tags($_POST['text'])); 
$finaltext = mysql_real_escape_string($striptext); 
$now = date("Y-m-d H:i:s");

if($_POST['submitcomment']){
$query = "INSERT INTO piccomment (picid,posterid,commentdatetime,postername,comment) 
	  VALUES ('$picid','$user','$now','$postername','$finaltext')";
query_db($query);
}

if(mysql_affected_rows($query)){

$getid = $_POST['picid'];

header("location:pic.php?id=$getid");
exit;
}
?>

  • Replies 52
  • Created
  • Last Reply

Thank you to everyone that helped. I found the problem, and it was neither a mysql issue, or a php issue. Although, I think that my query syntax is definately much better now though, so it wasn't a total waste. The naming I had for some elements in my CSS were contradicting eachother, so the info was coming out of the DB fine, but it wasn't being shown.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.