Follow the code:
$selbanco = "SELECT * FROM exemplo WHERE id=5";
$querybanco = mysql_query($selbanco);
while($teste=mysql_fetch_array($querybanco)){
$testando = $teste['teste'];
}
<td id="idcampo"> ><?php
if($teste1>$teste2){
echo "$testando";
}
else {
echo "(Agurde)" </td>
<script>var exemplo = $("#idcampo").html();</script>
$exemplo = "<script>document.write(exemplo)</script>";
echo $exemplo;
When displaying this example variable with echo
does it return "example example", would it have any command or something it can use to return only "example" without repeating the word?
Note: The variable I get in the database is duplicated ("example example")