I'm using sockets.io, express and php and I was wondering if it is possible to push something of a page (that only a specific user can see at the time) to another page other can see. For example, if an admin has:
<?php $a = $row['test']; //data from test table
$q = '<h2>'.$a.'</h2>';
$b = $row['options']; //data from answers table
$c = '<label"><input type="radio" name="radio" value="'.$b.'" onclick="">'.$a.'</label>
$output = ''.$a.','.$c.',<input type="submit" name="submit" value="submit">';
echo $output
So this outputs as a question with radio buttons as options for the client to choose from. Is it possible for this to be pushed to the client. Like the admin will push first question and then the next, etc. I'm new to webscokets but I'm getting a hang of it but this is really cracking my brain. Any ideas will be really helpful.
Aucun commentaire:
Enregistrer un commentaire