Mam od kilku dni zagwozdkę mianowicie, chce z comboboxa wybierać z której tabeli będą wyświetlane informacje.
Zrobiłem
$tableContent = ''; $start = $_POST['start']; $selectStmt = $con->prepare(SELECT * FROM $start);<-- tu jest problem $selectStmt->execute(); $users = $selectStmt->fetchAll();
Próbowałem
$selectStmt = $con->prepare(SELECT * FROM '$start') $selectStmt = $con->prepare('SELECT * FROM' $start) $selectStmt = $con->prepare("SELECT * FROM '$start'") $selectStmt = $con->prepare(SELECT * FROM '.$start.')
Za każdym razem jest ten sam komunikat: Parse error: syntax error, unexpected ''.$start.'' (T_CONSTANT_ENCAPSED_STRING)
Proszę o pomoc