connect_error) { die("Connection failed: " . $conn->connect_error); } /* change character set to utf8 */ if (!$conn->set_charset("utf8")) { //printf("Error loading character set utf8: %s\n", $conn->error); } else { //printf("Current character set: %s\n", $conn->character_set_name()); } $sql = "SELECT * FROM blog WHERE id='".$_GET["id"]."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { //echo "id: " . $row["id"]. " - Name: " . $row["title"]. " " . $row["content"]. "
"; $title = $row["title"]; $content = $row["content"]; } } else { $title = "לא זמין"; $content = "לא זמין"; } $conn->close(); ?> Yaniv Daniel | Law Office - יניב דניאל | משרד עורכי דין
Loading...

הבלוג שלנו

השאר תגובה