marche pas $pdo->prepare("UPDATE users SET avatar=? WHERE id='$sessId' ")->execute([$u]) ; $pdo = null; */ $v='uploads/'.$u; $html=' '.basename($v).' × '; $html=str_replace('"','\\"',$html); die('{"error":false, "html": "'.$html.'"}'); } ?> ```
Html->script('jquery.jDiaporama'); ?> le code de ma vue index
html du dossier ou l'on doit inséré les nouveaux éléments * @return void **/ function treeToHtml(array,id){ $.each(array,function(key, value) { console.log(key + ': ' + value); /* si value est un tableau
html); //remove any HTML tags $message .= "\n"; //==html $message .= "--$boundary2\n"; $message .= "Content-Type: text/html; charset=utf-8\n"; $message .= "Content-Transfer-Encoding: 7bit\n"; $message .= "\n"; $message .= $message_html
Html->link('Activer mon compte',$this->Html->url($link,true)); ?> Alors c'est peut-être juste une faute de frappe mais je ne la vois pas. Au cas ou, voici
Html->script('tiny_mce/tiny_mce.js', array('inline'=>false)); $this->Html->scriptStart(array('inline'=>false)); ?> tinyMCE.init({ mode: 'textareas', theme: 'advanced', plugins: 'inlinepopups,paste,image', theme_advanced_buttons1: 'bold,italic,underline,|,bullist,numlist
HTML de la route const html = await fetch(actualRoute.pathHtml).then((data) => data.text()); // Ajout du contenu HTML à l'élément avec l'ID "main-page" document.getElementById("main-page").innerHTML = html; // Ajout
json', success: function(json) { if(json.isSuccess) { $('#success').fadeIn(); $('#contact-form')[0].reset(); } else { $('#identifiant + .comments').html(json.identifiantError); $('#email + .comments').html(json.emailError); $('#pass + .comments').html(json.passError); $('#pass_confirm + .comments').html(json.passError); } } }); }); }) ```
HTML) : ``` function copyToClipBoard(num) { var content = document.getElementById('content'); content.select(); document.execCommand('copy'); alert("Copie !"); } ``` Mon HTML : ```
Html->scriptStart(); ?> $(document).ready(function() { $(".transition-panel").css("display", "none"); $(".transition-panel").fadeIn(1500); $("a.transition").click(function(event){ event.preventDefault(); linkLocation = this.href; $(".transition-panel").fadeOut(1000, function(){window.location = linkLocation;}); }); });