I'm hosting at Locaweb and it's giving this error.
Warning: Unexpected character in input: '\' (ASCII = 92) state = 1 in
/home/storage/a/b7/b3/reciclaoleovegetal/public_html/public/index.php
online 52
Parse error: syntax...
Could anyone tell me why my insert2 function is returning null after insertion? it should be returning the string with the success message.
<?php
require_once 'conexao.php';
$con = new Conexao();
function insert($dados, $tabela, $campo_uni...
How do I read this JSON file with PHP.
I tried this way, but it does not work.
<?php
$json_str = '{
"numero":"1000",
"log": {
"message": "testing connection to the target URL",
"level": "INFO",
"time"...
I need to add some values to the end of a table as shown below:
HerearethecodesI'musing:Controller:functionindex(){$this->template->set('title','ListadeOrçamentos');$config=array("base_url" => base_url('orcamentos/p'),
"per...
I'm using CodeIgniter in a project but I'm having a hard time sending information, I have a view that contains a form with the registration fields:
<?php
echo form_open_multipart('Contro...
Good afternoon, guys!
How to format Real (br) value for numeric (10,2) of mysql using php number_format?
I tried to use:
$num="89,90"; ou $num="1.089,90";
number_format($num, 2, '.', '');
But it's zeroing the cents.
I'm needing to list in a select the last 10 years. For this, I'm doing it this way:
<select name="AnoInicio" class="form-control">
<option value="">Ano</option>
<?php
for ($anoInicio = date('Y') - 10; $anoInic...
So, I've been banging my head for some time now with a basic scope question, but I could not figure out why.
In the function below, I'm trying to access a position of the object that is running at the time of Foreach, though it is giving the...
Does include with parameter?
I have a page .php that contains the following code:
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#segunda">Segunda-Feira</a></li>
<li>&l...
public function get_client_ip() {
$ipaddress = '';
if (isset($_SERVER['HTTP_CLIENT_IP']))
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])...