Jump to content

PHP to MYSQL Database back to Site


Scorpion28

Recommended Posts

Some code related to what you are doing usually helps.

 

Displaying data in php with line breaks should use <br />

 

If you have an extremely long paragragh, you can use wordwrap.

http://php.net/manual/en/function.wordwrap.php

 

 

Still need help

 

here is the input method

 

if(isset($_POST['submit'])=="edit")

{

if(isset($_POST['title']) && $_POST['title'] != '')

{$title = trim($_POST['title']);}

else{$title = false;}

 

if(isset($_POST['descr']) && $_POST['descr'] != '')

{$descr = trim($_POST['descr']);}

else{$descr = false;}

 

$M = $_POST['M'];

$F = $_POST['F'];

$T = $_POST['T'];

if($title && $descr)

{

$result=mysql_query("INSERT INTO nsa(ee_id,title,descr,M,F,T,date)VALUES('".$_SESSION["EEID"]."','$title','$descr','$M','$F','$T', now())");

if($result)

 

EX: Testing One Two

 

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.