I'm developing an application that will have to send data to a server.
My php source code is this:
connection.php
<?php
$mysql_hostname = "localhost";
$mysql_user = "root";
$mysql_password = "";
$mysql_database = "ap...
I use the SplFileObject class to work with files. The same does not occur with the sockets, when necessary to connect, being necessary to use the function fsockopen or stream_socket_client .
I need a code snippet in case a...
I was needing a personal mini database written in PHP to store some internal data from my site, where I would create new properties, change them and delete later if necessary.
The example below shows how this .txt file would look and how to f...
I have a table called noticias , where every news item has id . I also have a table named comentarios , where there is id of the news that the user commented on. How can I tell the comments for that news?
What exactly does the u modifier in regular expressions from preg_ to PHP ?
Should I use it whenever I process strings that have accented characters?
$valor = 'ãẽi ouã';
preg_match('/\w+/u', $valor, $matches);
$matches;...
How do I get the object id of a list by sending as a parameter to a javascript function. How do I put the id in the send () function?
<?php foreach ($contatos as $contato) {
?>
<!-- Inicio da tabela (Na verdade...
Good afternoon I wondered if some way to change the color of a floating menu in a one page template depending on the section of the page where we are.
As in this example:
link
But without using Bootstrap because I would like to keep my o...
Look, I'm developing the portal to my music label, and I'm having a pretty chatinho problem.
I'm recording the news, album names, artist names and so on.
When I register in the DB I play in a field the original artist name and in the other...
In a virtual store panel that I am building the products have relationships by color and size, where each product color has a size.
This is a part of my database for a better understanding of the problem: link
When the user wants to associate...