Jump to content

mysql Paraghraph


Scorpion28

Recommended Posts

I have a form that post the information in the mysql database as a paragraph but I can display or echo the information as a paragraph.

 

<div id="nsa_post_resize">

<form id= "nsa" name="nsa" method="post" action="Process/post.php" onSubmit="return validate()" enctype="multipart/form-data">

 

<div id="nsa_post_holder" class="text1">

<div id="nsa_post">Title:</div>

<input name="title" type="text" id="title" size="75" maxlength="75" />

</div>

 

<div id="nsa_post_holder2" class="text1">

<div id="nsa_post">Message:</div>

<textarea name="descr" id="descr" cols="75" rows="10"></textarea>

</div>

 

 

<div id="nsa_post_holder" class="text1">

<div id="nsa_post">I'm Looking For:</div>

 

<input name="M" type="checkbox" id="1" value="" />

Males

 

<input name="F" type="checkbox" value="2" />

Females

 

<input name="T" type="checkbox" value="3" />

TS/TG/TV

</div>

 

<div id="nsa_post_holder" class="text1">

<div id="nsa_post">

<input type="submit" name="submit" id="submit" value="Submit" />

</div>

</div>

 

 

</form>

</div>

 

 

Display

 

<?

include ("Inc/nsa.config.php");

$Msg=$_GET['msg'];

$ViewInfo = mysql_query("Select * from nsa where id = '".$Msg."'");

if(mysql_num_rows($ViewInfo)==1)

{

$thisView = mysql_fetch_array($ViewInfo);

$viewId = $thisView['id'];

$viewAAID = $thisView['id2'];

$viewTitle = $thisView['title'];

$viewDescr = $thisView['descr'];

$viewTime = $thisView['update_time'];

}

include ("Inc/config.php");

$fromQuery = mysql_query("select * from members_profile where id = '".$viewAAID."'");

$from = mysql_fetch_array($fromQuery);

$nsaUser = $from['eeuser'];

$nsaThumb = $from['prof_pic'];

$nsaCity = $from['city'];

$nsaState = $from['state'];

 

if($nsaThumb == "")

{

$nsaThumb = "profile.png";

}

?>

<div id="nsaview">

 

<div id="nsa_photo_view">

<a href="http://entangledencounters.com/profile.php?ee=view&profile=<? echo"$viewEEID"?>">

<img src="http://entangledencounters.com/Photos/thumbnails/<? echo"$nsaThumb"?>" width="100" height="100" border="0" />

</a>

</div>

 

<div id="nsa_descr_view">

 

<div id="nsa_title_view"><? echo "$nsaTitle"?></div>

<div id="nsa_title_view"><a href="http://entangledencounters.com/profile.php?ee=view&profile=<? echo"$viewEEID"?>" class="text2"><? echo "$nsaUser"?></a></div>

<div id="nsa_title_view" class="text2"><? echo "$nsaCity, $nsaState"?></div>

 

</div>

</div>

 

<div>

<? echo "$viewDescr" ?>

</div>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/254356-mysql-paraghraph/
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.