Jump to content

Realtime Value When Selecting In Drowpdown Menu


Muiter

Recommended Posts

This might be an simple question for some people but I don't know how to fix this.The result is displayed in here but it's no good for me. I want to be able to add some tables in the result.Original code

   if($sInfo == '') { 		if($oResult = mysql_query($sQuery) and mysql_num_rows($oResult) > 0) { 			$aValues = mysql_fetch_array($oResult,MYSQL_ASSOC); 			$sInfo = $aValues['klantnaam']."<br />".$aValues['omschrijving']."<br />";		} else { 			$sInfo = "Offertenummer $sID bestaat niet."; 		} 	} 		mysql_close($oLink); ?> 		</head> <body> 	<div id="divInfoToReturn"> <?php echo $sInfo ?> </div>

For example

<td class="hr>"klantnaam"</td><td class="dr>"$aValues['klantnaam']."</td>

And is it possible to have the results displayed in an editble textfield?

Link to comment
Share on other sites

I have changed this original code

$sInfo = $aValues['klantnaam']."<br />".$aValues['omschrijving']."<br />";

to

$sInfo = ' 			  <tr>			  <td class="hr">Klantnaam</td>			  <td class="dr">'.$aValues['klantnaam'].'</td>			  </tr>			  <tr>			   <td class="hr">Omschrijving</td>			   <td class="dr">'.$aValues['omschrijving'].'</td>			   </tr>			';

But now the values are all displayed in one line and there not any tables.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...