Monday, 21 August 2017

How to Check and Repair MySQL The mysql extension is deprecated and will be removed

STEP 1:old way of coding that gives Deprecated Errors:


if(isset($_POST['add_brand'])){

$new_brand = $_POST['new_brand'];

$insert_brand = "insert into brands (brand_title) values ('$new_brand')";

$run_brand = mysql_query($insert_brand); 

if($run_brand){

echo "<script>alert('New Brand has been inserted!')</script>";
echo "<script>window.open('index.php?view_brands','_self')</script>";
}
}


STEP 2: New way of coding and resolving any Deprecated or Missing parameters in codes.

if(isset($_POST['add_brand'])){

$new_brand = $_POST['new_brand'];

$insert_brand = "insert into brands (brand_title) values ('$new_brand')";

$run_brand = mysqli_query($con, $insert_brand);

if($run_brand){

echo "<script>alert('New Brand has been inserted!')</script>";
echo "<script>window.open('index.php?view_brands','_self')</script>";
}
}


NOTE: $con should be your DB connection variables.  $con. in connect.php




















Tuesday, 28 April 2015

President makes statement on #BaltimoreRiots, calls rioters "criminals and thugs"




watch live here:    

https://www.facebook.com/foxandfriends/videos/852427411511523/?fref=nf

Cheating or ‘Self-Service’? Watch OC Ukeje, Ini Edo & More Celebrities Choose What They Would Want Their Spouse to Do






At the recently held Africa Magic Viewer’s Choice Awards, FlytimeTV was on the red carpet with on-air personality Nedu as they put celebrities on the spot by asking a tricky question.

FlytimeTV asked, ‘Would you prefer your spouse to masturbate or cheat on you?’

Watch what OC Ukeje, Femi Branch, Lilian Unachukwu, Charles Novia, Mike Ezuruonye, Nse Ikpe-Etim, Uru Eke, Ini Edo, Gabriel Afolayan, Eucharia Anunobi, Gideon Okeke and more have to say below.

https://youtu.be/I5xNpeW-Sdw

Incredible Deaf Woman Hears Husbands Voice For The Very First Time

 watch here


https://www.facebook.com/video.php?v=1249274975100096&set=vb.199633956730875&type=2&theater


What an incredibly beautiful video. This wife lost her hearing when she was 2 years old & doctors told her family she would never be able to hear or talk.


After struggling with hearing aids for for most of her life, she is finally able to hear clearly for the very first time. Watch the emotional video below.


Grandfather With Cancer Becomes Uber Driver To Pay Off Home For His Family







Broskey, from Livonia, told ABC News today he’s trying to raise as much money as he can so his daughter, 46, and his two grandchildren, ages 13 and nine, have a place to live when he’s soon gone.



“Once I pass away, chances are my daughter, who’s a part-time waitress at a small restaurant in Livonia, will lose the house we live in because she won’t be able to afford it anymore,” Broskey said. “So I’m doing everything for her and my grandkids at this point. When you find out you’re dying, you realize your family and friends are so important.”

And thanks to a fateful Uber ride three weeks ago, Broskey has reached his goal with more than $100,000 raised in less than 1 week!

During that ride, Broskey met Roland Gainer, a 22-year-old student at Washtenaw Community College who needed a ride to downtown Ann Arbor to meet up with some friends. Gainer said he started chatting with Broskey and the casual conversation got deeper when he learned Broskey had terminal cancer — stage four oropharyngeal cancer with lung metastases.

“I was asking him if he liked Uber driving and then he explained how much he loved it because he got to meet new people, and it was also helping him earn extra money before dying because he had head, tongue and throat cancer,” Broskey told ABC News today. “I felt super-compelled to help him.”

Gainer and Broskey traded numbers, and Gainer turned to the owner of a popular eclectic barber shop in Detroit for ideas on how to help Broskey, he said.

Sebastian Jackson, owner of “The Social Club” barber shop, said he got Broskey connected with a communications expert named Karen Dumas in the area, and the three of them worked together to start a GoFundMe account for Broskey this past Monday.

Broskey said though he’s been given an estimated two to 10 weeks left, he feels fine, and he’s going to keep driving with the help of morphine pills.

Gainer and Broskey also continue to chat every day, and they’re “tight friends,” Gainer said.

“I admire him so much,” Gainer said. “Oh my god, his love for his family is limitless. This man is dying of cancer, and yet he’s still out there driving an Uber cab just for his family every day. That’s indescribable love.”




Review: Alice Eve Made Confused, Transphobic Comments About Bruce Jenner on Instagram






Alice Eve, the actress from the Star Trek movies, made some inappropriate—and totally confusing—comments about Bruce Jenner on her Instagram page, saying that he was just "playing" as a woman.

Jenner came out as transgender on a high-profile interview last week. Eve had this to say about it on Instagram:

"If you were a woman no one would have heard of you because women can't compete in the decathlon. You would be a frustrated young athlete who wasn't given a chance. Until women are paid the same as men, then playing at being a "woman" while retaining the benefits of being a man is unfair.

"Do you have a vagina? Are you paid less than men?" Eve asked. "Then, my friend, you are a woman."

Her followers called her out as transphobic and narrow-minded, and Eve tried to defend herself, making things worse:

"I do agree that the struggle for transgenders is unique and horrific. However, I do want to also support a cause I strongly believe in, the right for women to have equal rights to men. The transgender equality struggle is the next one, as we all know. And very real it is, too."

SMH at the idea there's a pecking order for equality movements. She later added:

"I'm not saying by identifying they are negatively impacting feminism, I am saying that we have to refine the language on this topic so all men, women and transgenders are accurately represented in their process of self-identification."

Which makes approximately zero sense. She continued, "Maybe this needs a little thought."

Yeah, maybe. The actress then deleted her posts, and uploaded two new photos with the hashtags #EqualPay, #EqualRights, and #OneLove.

Baltimore Mom Stops Son From Rioting



She spotted him on TV throwing rocks and went after him like a heat-seeking missile.

Baltimore Police Commissioner Anthony Batts also mentioned it when he spoke at a press conference shortly before midnight on Monday.

Batts said: ‘In one scene you had a mother who grabbed a child who had a hood on his head and started smacking him on the head because she was so embarrassed.

‘I wish there were more parents out there who took charge of their kids tonight.

He later added: ‘Take control of your kids. This is our city, let’s make a difference.’