I keep getting this error, could somebody help?
Parse error: parse error, expecting `']'' in C:\wamp\www\Con tact Database\addent ry.php on line 5
Code:
<?php
if ((!$_POST) || (isset($_GET["master_id])){
//haven't seen the form, so show it
$display_block = "
<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">
if (isset($_GET["master_id"])) {
//connect to database
$mysqli = mysqli_connect("localhost", "test", "test", "houseinsandiego");
??get first, last names for display/tests validity
$get_names_sql = "SELECT concat_ws(' ',f_name, l_name) AS display_name
FROM master_name WHERE id = '".$_GET["master_id"]."'";
$get_names_res = mysqli_query($mysqli, $get_names_sql)
or die(mysqli_error($mysqli));
Comment