Skip to content

Instantly share code, notes, and snippets.

@sjoulbak
Created October 5, 2014 18:01
Show Gist options
  • Save sjoulbak/667df38764a9d950435a to your computer and use it in GitHub Desktop.
Save sjoulbak/667df38764a9d950435a to your computer and use it in GitHub Desktop.
Php split value
include'./mysql_config.php';
$check_position=mysqli_query($con, "SELECT `position` FROM `playerdata` WHERE ID = '".$unique_id."'");
$fetch_position=mysqli_fetch_assoc($check_position);
The value of position in the playerdata table is: 1|2|3
I want that the result is:
$x=1;
&y=2;
$rot=3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment