Search results

  1. fomalhaut

    How to sort a html table

    Do not apologize, Deviante, mine is not better: I'm french ! I hav'not understand the javascript side. That are my modifications : <table style="text-align:center; border-color:blue" border='1' > <caption><b>Liste des chants</b></caption> <tr> <th class="tri"...
  2. fomalhaut

    How to sort a html table

    Hello. I've a html table with five column: <table style="text-align:center; border-color:blue" border='1' > <caption><b>Liste des chants</b></caption> <tr> <th class="tri" onclick="<?php $_SESSION['tri']='cote_classement'; ?>; recall()" >C&ocirc;te</th> <th class="tri" onclick="<?php...
  3. fomalhaut

    Form in html/css positionning "search" button for an input type=file

    Hello I've this form (and it works) on my page : <form enctype="multipart/form-data" action="gesChants.php" method="post"> <!-- Création --> <fieldset><legend>Insertion d'un nouveau chant</legend> <input type="hidden" name="MAX_FILE_SIZE" value="200000" /> Nom du fichier partition : <br...
  4. fomalhaut

    Using header

    Have you really written "localtion" or "Location" as it will be better ?
  5. fomalhaut

    php connect to multiple mySql Databases

    Thank you for these precisions. I'll use 2 database, with one connect to default db. Thanks again. All the best.
  6. fomalhaut

    php connect to multiple mySql Databases

    Hello. How many mysql databases can I create on my x10hosting account ? And if that is possible, with php can I connect multiple databases at the same time ? for example, can I have $db1 = user_database11; $db2 = user_database2; $dbconnect1 = new PDO("mysql:host=localhost;dbname=$db1"...
  7. fomalhaut

    Commit / Rollback

    Thanks, Misson, I've just finished my tests, that works fine, doing exactly as you wrote ! It's OK. Thank you very much again.
  8. fomalhaut

    Commit / Rollback

    OK, Misson, I've this : $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); try { $dbh->beginTransaction(); $res1 = $ins1->execute(); // insert on first table } catch(Exception $err); { $dbh->rollback(); echo 'insert 1 KO'; ... code for ending ... } try { $res2 =...
  9. fomalhaut

    Commit / Rollback

    Hello. So, if I've understood, writting that will be correct : try { $dbh->beginTransaction(); $res1 = $ins1->execute(); // insert on first table $res2 = $ins2->execute(); // insert on second table $dbh->commit(); // inserts validated echo 'That is OK'; }...
  10. fomalhaut

    Commit / Rollback

    Hello Thanks for your answer and for the link. But I don't understand how do I do the link between the NEW.column.of.the.second.table ans the PHP variables ? Except the ident of the rows, the other columns can't be calculated from the column of the first table : On my fisrt table, I have...
  11. fomalhaut

    Commit / Rollback

    Hello. In Php/Mysql, I want to insert rows into two inter-dependant tables T1 and T2. That is, when I insert 1 row into T1, I MUST insert the corresponding into T2. I've written two prepare statements for these inserts : $ins1 and $ins2, refering the two tables. $dbh->beginTransaction()...
  12. fomalhaut

    How to announce server is down ?

    Hello My web site is on the Chopin server, that is actually out of service, as you know. So, that's a question for the future : Is it possible (and how to do it) to give a "personnal message" when such a situation occurs such as "The site is temporary closed for work" in place of the actual...
  13. fomalhaut

    javascript: detect window resize

    Hello I think the onresize is supported by the "<body>" HTML tag - ans other (e.g. <div>, <fieldset>, <frame>, ecc...) but ONLY by the JAVASCRIPT object "window" - i.e. window.onresize, as explained at http://www.w3schools.com/jsref/event_onresize.asp I've often use it in the two ways without...
  14. fomalhaut

    Images don't show up in page

    Hello. I'm actually at work. Here, all passes through a fire wall. And I cannot see the image ! When I right-clic and do "Afficher l'image" i.e. "Show the picture", it answers me "Accès interdit - prohibited access (policy denied)". I see your image is not on the same location than your main...
  15. fomalhaut

    testing google analytics - just need a few hits if you all have a second!

    Hello singingingtelegrams, I just clicked the link. I clicked "stop projected" too.
  16. fomalhaut

    How can I test my robots.txt ?

    Hello That's fine... and very simple. (It was long because of hollydays !) Thank you very much and good year.
  17. fomalhaut

    How can I test my robots.txt ?

    Hello. All is in the title. I've created a robots.txt in the public_html directory off my web site. How can I test this robots.txt is ok ? Thanks for your helps... And for all of you... Merry Christmas
  18. fomalhaut

    Security problem with history button

    OK Misson I've found my errors : only includes can be in the protected directory ! And I have worked now in this direction. It's all ok now. It's works fine. That was my error : I had not redirect only to entry points ! That is now corrected. Sorry for the time I make you lost ! And thank...
  19. fomalhaut

    Security problem with history button

    Hello I've made a lot of modifications. I moved all my include files in a directory "inc". I've created in this directory a .htaccess file that contains: Deny from allThat seems to work. When an admin user is connected and call a menu page such as "Gestion des utilisateurs" i.e. "user's...
Top