[Solved] PHP Displaying of page issues [closed]

You need closing parenthesis on every line that has one opening. Example: move_uploaded_file($_FILES[“thematicseniorphoto”][“tmp_name”], “uploads/” . $_FILES[“thematicseniorphoto”][“tmp_name”]; should be move_uploaded_file($_FILES[“thematicseniorphoto”][“tmp_name”], “uploads/” . $_FILES[“thematicseniorphoto”][“tmp_name”]); EDIT: Next time use a while() statement and find a pattern of text to search/use. You’ll go from 700 lines to like…20. solved PHP Displaying of page issues [closed]

[Solved] need this item in table and border like this form

this is the way to wrap your already exist php code in table, try it: $e = array(“item1”, “item2”, “item3”, “item4”, “item5”, “item6”, “item7”, “item8”, “item9”, “item10”, “item11”, “item12”); $i = 0; echo “<table border=1><tr>”; //tr to start the 1st row foreach ($e as $value) { $i++; if ($i % 3 != 1) echo “<td>&nbsp;</td>”; … Read more

[Solved] How to show all DB result with PDO

The answer is as follows: <?php $sql = “SELECT * FROM database WHERE id BETWEEN 1 AND 5″; $stmt = $conn->query($sql); $stmt->execute(); while($row = $stmt->fetch(PDO::FETCH_OBJ)){ ?> <tr> <td><b><?php echo $row->hours ?></b></td> <td><a href=”#”></a></td> <td id=”dayhour-1″> <input type=”text” class=”form-control” id=”1″ value=”<?php echo $row->username ?>”> </td> </tr> <?php } ?> This code will do it’s work. Its … Read more

[Solved] Best way to echo variable in PHP [closed]

I don’t think you need 3 queries. One should be fine selecting both values. Queries 2 & 3 are identical anyway. $result1 = mysqli_query($con,”SELECT company_id, closed_state FROM tbl_company WHERE company_id=’$company_id'”) or die(mysql_error()); while($row = mysqli_fetch_array($result1)){ if ($row[‘closed_state’] == “yes”){ echo ‘<a href=”https://stackoverflow.com/questions/30514499/customers_open.php?company_id=”.$row[‘company_id’].'”>Reopen account</a>’; }else{ echo ‘<a href=”customers_close.php?company_id=’.$row[‘company_id’].'”>Close account</a>’; } } 1 solved Best way to … Read more

[Solved] Php Newbie, echo not working?

I suppose that you have forgotten to let the filename end with .php. So everything between the <(?php) and the (?)> is interpreted as a html tag and not visible. See your raw html output, then you may notice what’s going on. 1 solved Php Newbie, echo not working?