Jump to content

[SOLVED] Counter


SamW

Recommended Posts

Oops, I forgot to add the actual code...silly me.

 

<?php

  mysql_connect("localhost", "Censored", "Censored") or die(mysql_error());

mysql_select_db("runetyco_cms") or die(mysql_error());

 

 

$content = $_POST['content'];

 

  mysql_query("INSERT INTO cms

(content) VALUES('$content' ) ")

or die(mysql_error());

 

$result = mysql_query("SELECT * FROM cms")

or die(mysql_error()); 

 

 

 

while ($row = mysql_fetch_array( $result ))

{

  echo "<br /><br />Post: ".$row['content'];

}

 

?>

Link to comment
https://forums.phpfreaks.com/topic/163463-solved-counter/#findComment-862490
Share on other sites

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.