Csami's Posts
Nairaland Forum › Csami's Profile › Csami's Posts
1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 94 pages)
Html 90% CSS 90% PHP 70% Bootstrap 80% UI/Ux |
We here highly resolve that these dead shall not have died in vain. That this nation, under God, shall witness a new birth of freedom. And that a government of the people, by the people, for the people, shall not perish from the earth ~ Lincoln |
Knowing how volatile kaduna is I'll recommend you remain in Lagos. |
Death is what gives life meaning. To know your days are numbered. Your time is short. You'd think after all this time, I'd be ready. But look at me. Stretching one moment out into a thousand... just so that I can watch the snow ~ The Ancient One |
I don't trust society to protect us, I have no intention of placing my fate in the hands of men whose only qualification is that they managed to con a block of people to vote for them ~ Don Vito Corleone |
alexistaiwo:But there was a lot of plot holes in this movie o! |
In all my years of conquest, violence, slaughter, it was never personal. But I'll tell you now, what I'm about to do to your stubborn, annoying little planet, I'm going to enjoy it very, very much ~ Thanos |
Give me a man who is man enough to give himself just to the woman who is worth him. If that woman were me, i would love him alone and forever ~ Francesca Bruni |
This red earth it's in our skin. The Shona say the colour comes from all the blood that's being spilled fighting over the land. This is home. You'll never leave Africa ~ Colonel Coetzee |
I’m bad and that’s good. I will never be good and that’s not bad. There’s no one I’d rather be than me ~ Ralph |
You see, it takes patience to make a man. The patience to watch and wait, to protect all of us quietly, for God and country, without any recognition at all. There are no good aliens or bad aliens, Yeager. It's just us and them and you chose them ~ Harold Attinger |
My momma always said, Life was like a box of chocolates. You never know what you're gonna get ~ Forrest Gump |
Who else noticed her bad written English is almost the same with the text Local man is confused |
I'm just a girl, standing in front of a boy, asking him to love her ~ Anna Scott |
Question for a higher power. Who is more wicked, he who kills evil motherfuckers or he who protects them ~ Darius Kincaid |
Even those two ontop are having their own reaction. Everyone is reacting and the country is getting more fvcked! |
My dearest Sixsmith, I shot myself through the roof of my mouth this morning with Vivian Ayrs' Luger. A true suicide is a paced, disciplined certainty. People pontificate suicide is a coward's act couldn't be further from the truth. Suicide takes tremendous courage. Don't let them say I killed myself for love. Had my infatuations, but we both know in our hearts who is the sole love of my short, bright life ~ Robert Frobisher |
It's not about equal division of labor. It's about an equitable and efficient allocation of resources ~ Zoe |
The man who pulls the lever that breaks your neck, will be a dispassionate man. And that dispassion, is the very essence of justice. For justice delivered without dispassion is always in danger of not being justice ~ Oswaldo Mobray |
They say, Evil prevails when good men fail to act. What they oughta say is, Evil prevails ~ Yuri Orlov |
All the gods, all the heavens, all the hells, are within you ~ Rone |
A CJN that doesn't know that planes are flown not driven |
Hallenjay:Sorry! I just know basic php |
Person no fit use una get hope sha |
Build a lot of sh*t! Build blogs, e-commerce etc. Design stuff |
You're nothing but a relic from a deleted timeline ~ John Connor |
Can someone explain how this debt thing works? |
If you work for a living, why do you kill yourself working ~ Tuco |
i need help with this code I have a form which i collect the input using a post method [i<form method="post" autocomplete="on" enctype="multipart/form-data"> <div class="form-group"> <label for="name" class="mr-sm-2" id="tag"></label> <select class="form-control" id="categoryname" name="category"> <option value="">---SELECT CATEGORY---</option> <?php $sql = "SELECT * FROM category"; $res = mysqli_query($connection, $sql); while ($r = mysqli_fetch_assoc($res)) { ?> <option value="<?php echo $r['id']; ?>"><?php echo $r['categoryname']; ?></option> <?php } ?> </select> <label for="name" class="mr-sm-2" id="tag"></label> <input type="text" class="form-control" id="title" placeholder="Title" name="title" required> <label for="content" class="mr-sm-2" id="tag"></label> <textarea class="form-control" rows="10" id="content" placeholder="content" name="content" required></textarea> <label for="pic" class="mr-sm-2" id="tag">Profile Picture</label> <input type="file" class="form-control" name="pic" id="pic" placeholder="Picture"> <br> <button class="btn btn-info" type="submit">post</button> </div> </form>][/i] Here is the php if (isset($_POST) & !empty($_POST)) { $category = $_POST['category']; $title = mysqli_real_escape_string($connection,$_POST['title']); $content = mysqli_real_escape_string($connection,$_POST['content']); $image = $_FILES['pic']['name']; $target = "uploads/".basename($image); move_uploaded_file($_FILES['pic']['tmp_name'], $target); $sql = "INSERT INTO posts (userid, categoryid, post_title, post_content, post_image) VALUES ('$userid', '$category', '$title', '$content', '$image')"; $result = mysqli_query($connection, $sql); if ($result) { header("location: viewpost.php " ;}else{ $fmsg = "Failed to post"; } } The problem is that the page i'm directing to throws me this errors because i don't know how to capture the id Notice: Undefined index: id in C:\xampp\htdocs\project\viewpost.php on line 14 Notice: Trying to get property of non-object in C:\xampp\htdocs\project\viewpost.php on line 69 <?php $postsql = "SELECT * FROM posts WHERE id = $id"; $postquery = mysqli_query($connection, $postsql); if ($postquery->num_rows > 0) { while($row = $postquery->fetch_assoc()) { $post_title = $row['post_title']; $userid = $row['userid']; $post_date = $row['post_date']; $post_image = $row['post_image']; $post_content = $row['post_content']; ?> The bold is causing the error cause i don't how to capture the id using GET method in a POST form |
Damn! We ain't seen nothing yet! Before buhari is through with this next level sh*t, Yemen will be looking like a nice place to relocate to. We have a clueless president, an unfit CJN and puppets as both Senate president and Speaker. Meaning the 3 arms of government is a disaster. |
Lessons not learned in blood are soon forgotten ~ Clyde Shelton |
Sometimes the truth isn't good enough. Sometimes people deserve more. Sometimes people deserve to have their faith rewarded ~ Batman |
1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 94 pages)
;