October 23, 2024
Chicago 12, Melborne City, USA
PHP

Using jquery and a PHP variable causes a syntax error


Can anyone see what is wrong with this line of code, I ask because it’s giving an syntax error but it does not say what.

var todate = <?php echo json_encode($TodaysDate); ?>;



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video