<?php
$matrix = array();
$matrix[1] = array( 0 => 65.70, 1 => 'Coles', 2 => '34 days', 3 => 14 );
$matstring=implode(",",$matrix[1]);
print "INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')";
print "\n";
$id = NULL;
$id = 31;
$id = (is_null($id)) ? 'NULL' : ;
$table = 'atable';
$values = array('one','two','three','four','five');
$valstring=implode("','",$values);
print "INSERT INTO " . $table
. " VALUES ($id,'$valstring')";
?>
- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected ';' in /in/9igp9 on line 14
Process exited with code 255.
preferences:
196.09 ms | 1395 KiB | 64 Q