Welcome Guest, Not a member yet? Register   Sign In
Put value to array
#3

(This post was last modified: 12-08-2016, 03:04 AM by Fraps900.)

Can somebody build the codeigniter querry from this:

Code:
$sql = "SELECT estimated_sum FROM burndown_snap WHERE project_id='$sum1' AND name='$sum2'";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
    while($row = $result->fetch_assoc()) {
        $burn_actual = "" . $row["estimated_sum"]. ",";
        echo $burn_actual;
}
}

Or something similar that I could list the values from the database.
Reply


Messages In This Thread
Put value to array - by Fraps900 - 12-07-2016, 02:51 PM
RE: Put value to array - by Paradinight - 12-07-2016, 09:36 PM
RE: Put value to array - by Fraps900 - 12-08-2016, 03:03 AM
RE: Put value to array - by Paradinight - 12-08-2016, 12:07 PM
RE: Put value to array - by PaulD - 12-08-2016, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB