Posts by Sergio Barros • 116 points
8 posts
-
0
votes1
answer968
viewsQ: Change APACHE port / TEAMVIEWER
I am using Ubuntu for PHP development, so I have Apache/php/Mysql installed. Now I’m installing teamviewer for customer support, but it can’t connect. I stopped the Apache service and tried again…
-
2
votes1
answer2328
viewsQ: Mysql connection error: Headers and client library minor version Mismatch
When connecting to MYSQL database using mysqli class I am getting error: Warning: mysqli::mysqli(): Headers and client library minor version Mismatch. The error occurs when PHP version 5.4.16 is…
-
1
votes2
answers1547
viewsA: Insert data from an array into a mysql database
You can use a code like this, it’s a template for you to have a basis $campos = implode(', ', array_keys($array)); $valores = '"'.implode('", "', $array).'"'; $query = "INSERT INTO $this->tabela…
-
0
votes1
answer43
viewsA: jQuery adds class, but does not remove
I believe you can use $("#id_campo").removeAttr("class");
-
0
votes2
answers56
viewsA: Function to expedite select
Put everything into one function: include 'include/connection.php'; function select($query) { $result = mysqli_query($link, $query) or die(mysql_error()); while ($row = mysqli_fetch_array($result))…
phpanswered Sergio Barros 116 -
2
votes2
answers205
viewsA: Receive data in Javascript
Grab the URL using: var url = window.location; Then use the split to separate by ?. Separates the domain from the parameters. Then make a split in the result [1], now with & to have each of the…
-
4
votes4
answers345
viewsA: How to select an option with value comparison?
I usually just change the value (value) and the state is selected automatically, would look like this: var estado = 3; $("#estado").val(estado); <script…
-
1
votes1
answer60
viewsA: Facebook SDK with PHP - Link Image
Henry, The FB documentation contains $linkData = [ 'link' => 'http://www.example.com', 'message' => 'User provided message', ]; see more information on…