I have the following text example:
MyRelationsPDF001-Cover-Disclaimer-22012017
I want to capture with php regular expressions the texts
"Cover", "Disclaimer" and "22012017".
I'm trying to use the preg_match_all() funct...
How to make a PREG_REPLACE having several search and multiple substitutions at the same time
For example, I want to
('/(BR|BL)/', 'B') if you have BR and BL replace with B and also ('/PH/', 'F') if you have PH replace wi...
I'm passing an ASP page to PHP and found a form where the action attribute had the following value: <form action="./"> . Does this action value work as a <form action="#"> ? In other words, does it point to the same p...
How to limit the number of options selected in a select so that the form is not sent above a maximum amount.
For example, I want a maximum of 3 options to be sent on the form. Above that, I wanted to prevent the user from submitting the form....
I'm calculating in PHP the difference between datetimes (start, end), coming from a POST , need to fill a campo(time) in format(H:i:s) via INSERT in MYSQL .
I get the result of the difference, but I can...
Due to a need of the system we are working on, I need to send 3 fields as an array to a PHP. Example:
<input type="text" name="name[]" />
<input type="text" name="name[]" />
<input type="text" name="name[]" />
What happe...
I'm developing a Site with CMS. It works perfectly just that you would like the last posts to be at the top of the page. What is happening now is that the last posts go to the bottom of the page just wanted the order to be opposite.
PHP Class...
I want to display the results obtained in a form but when saving to DB I did not save as null but saved like this:
Date: 0000-00-00 E Number: 0
Query looks like this:
$sql = mysql_query ("Select *, Count(*) from tabe...