prova a cambiare la riga
Codice PHP:
  <td align= "center">[url='nomepagina.php?id_s=1']<?php echo $x?> </td>[/url]
in

Codice PHP:
<td align= "center">[url='nomepagina.php?id_s=<?php  echo $x?>']</td>[/url]