L
L
Lavrov952018-02-03 17:39:11
PHP
Lavrov95, 2018-02-03 17:39:11

Uncaught SyntaxError: Unexpected identifier for Cote d'ivoire. Any idea?

When $row['country'] equal to Cote d'ivoire

data:[
name:<?= $row['country'] ?>
]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Decadal, 2018-02-03
@Lavrov95

how about name: <?= addslashes($row['country']) ?> ?

A
Anton Shvets, 2018-02-03
@Xuxicheta

data: {
name:"<?= $row['country'] ?>",
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question