Page 1 of 1

mysql select a single row

Posted: 20 Oct 2016, 22:54
by JanMolendijk
I wanna use this code but only a single row, do you known how to select it ?
https://coursesweb.net/php-mysql/php-mys ... t-order-by

Code: Select all

// SELECT sql query
$sql = "SELECT `id`, `name`, `pass` FROM `users`";

mysql select a single row

Posted: 21 Oct 2016, 02:13
by JanMolendijk
I found the answer i have to do this

Code: Select all

// SELECT sql query
$sql = "SELECT `user_longbio`, `user_id` FROM `user` WHERE `user_id`='10000' ";