Jump to content

syntax error help please


Shadowing

Recommended Posts

I tried everything to make this work

hopefully someone can help me out

 

 

<?php $new = date('m/d/Y/H:i:s', strtotime()$send1['time_offset']); ?>

 

I also tried turning it into a variable $offset = $send1['time_offset'];

 

and using

<?php $new = date('m/d/Y/H:i:s', strtotime()$offset); ?>

Link to comment
https://forums.phpfreaks.com/topic/253648-syntax-error-help-please/
Share on other sites

yah sorry i made a mistake when I posted

i tried both of these

Parse error: syntax error, unexpected T_VARIABLE

 

<?php $new = date('m/d/Y/H:i:s', strtotime()$send1['time_offset']); ?>

 

<?php $new = date('m/d/Y/H:i:s', strtotime()$offset); ?>

$new = date('m/d/Y/H:i:s', time()+$send1['time_offset']);

 

adding a + to it fixed my problem

I dont see the parentheses error :(

 

 

you dont mean this do you? cause it doesnt read the offset this way

 

<?php $new = date('m/d/Y/H:i:s', strtotime($send1['time_offset'])); ?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.