jeffman Posted January 11, 2009 Share Posted January 11, 2009 Welkom! Link to comment Share on other sites More sharing options...
Muiter Posted January 11, 2009 Author Share Posted January 11, 2009 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 More sharing options...
jeffman Posted January 11, 2009 Share Posted January 11, 2009 Of course. Where are you confused? Link to comment Share on other sites More sharing options...
Muiter Posted January 12, 2009 Author Share Posted January 12, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.