Answered Php Script problem

Liam

BU4
Messages
185
Reaction score
171
Points
818
This works but it inserts a blank character.
148af09aa52f4ef5b9950391321369a5.png

Anyone know why? Hint Hint @thahitcrew
 

thahitcrew

Modder
Messages
219
Reaction score
211
Points
163
This works but it inserts a blank character.
148af09aa52f4ef5b9950391321369a5.png

Anyone know why? Hint Hint @thahitcrew
So all you're trying to do is insert the variable $Skype into Table Skype?
If so, just do this it, will work fine:
PHP:
<?php

$constr = mysqli_connect("localhost", "User", "Pass", "DBNameee");
$Skype = $_POST['Skype'];
if(mysqli_connect_errno()) {
    echo "errrrrrr";
}
else
{
    $sql = "INSERT INTO Skype(Skype) Values('$Skype')";
    $query = mysqli_query($constr, $sql);
    echo "Inserted";
}

?>
 
Top