Jump to content

aHMAD_SQaLli

Members
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

0 Neutral

About aHMAD_SQaLli

  • Rank
    Member
  • Birthday 05/24/1997

Profile Information

  • Gender
    Male
  • Location
    Morocco
  • Interests
    PHP, JavaScrip, SQL, Python.
  • Age
    18
  1. aHMAD_SQaLli

    TypeError: event.target is undefined

    Need Help
  2. hello if there is just the first function it run very good but if I add the second I get the message in Firefox " TypeError: event.target is undefined " (function(){ document.getElementById("ta").onclick = function(){ ta(); }; function ta(){ var tav = document.getElementById("ta").value, ta = document.getElementById("ta"); ta.setAttribute('style','height:200px;') } })(); window.onclick = function(event) { var tav = document.getElementById("ta").value, ta = document.getElementById("ta"); if (! event.target.matches('#ta')) { if( tav == "" ){ ta.setAttribute('style','height:25px;'); } else if( tav !== "" ){ ta.setAttribute('style','height:200px;'); } } } (function(){ document.getElementById("close").onclick = function(){hide_notify();}; function hide_notify(){ var notify = document.getElementById("notify"); notify.parentElement.removeChild(notify); } })(); I'm still new in JavaScript so I have no idea what is going on ! thanks.
  3. aHMAD_SQaLli

    mysqli check if 2 value exist

    thanks for the code ! and thank you for highlighting this problem, actually I'm still new in PHP/MySQLi and this test website will not be published, it's just for improve my coding skills.
  4. aHMAD_SQaLli

    mysqli check if 2 value exist

    I need it for a registration script
  5. aHMAD_SQaLli

    mysqli check if 2 value exist

    Hello I'm trying to check if 2 values exist in the database using php, Google didn't help... I need something like this : if($stmt = mysqli_prepare($db_connect,'QUERY TO CHECK IF USERNAME AND EMAIL EXIST')){ mysqli_stmt_bind_param($stmt, "ss", $user,$email); mysqli_stmt_execute($stmt); /* if username exist echo username exist if email exist echo email exist */ } else{/*error*/} thanks !
  6. aHMAD_SQaLli

    How to create a Adaptive design

    Hello The Internet is full with Responsive design tutorials, but a could not find any helpful adaptive design tutorial, so if someone know how to create a adaptive design or a useful tutorial please help. Have a Good Day !
  7. aHMAD_SQaLli

    delete a SQL row after a week

    Thank you very much !
  8. aHMAD_SQaLli

    delete a SQL row after a week

    Thanks, that was helpful, but I should run this manually, is there any way to be 100% auto .
  9. aHMAD_SQaLli

    delete a SQL row after a week

    Hello I want to make a SQL row to be deleted after one day, or week, or every row older than on week automatically, how can it be done ? Have a good day.
  10. Hello I Googled Responsive vs Adaptive design , and almost all results recommend using Responsive design and say that Adaptive design has a lots Cons. But... I noticed that famous websites like Google, Facebook, Yahoo, Youtube and many more use Adaptive Design, so I'm wandering Why they use Adaptive design if the majority say that responsive is better ? Thanks !
  11. aHMAD_SQaLli

    how to create timezone select menu using PHP

    Awesome, Thank you so much sir !
  12. aHMAD_SQaLli

    how to create timezone select menu using PHP

    Thanks, again one more thing, what can I add to the code to display the time offsets, like : (GMT +1:00 hours ) Brussels, Paris ... ? .
  13. Hello How can I create a user friendly timezone select menu using PHP, like the one in General account setting of PHPFreaks. thanks !
  14. aHMAD_SQaLli

    is this AJAX code good enough ?

    Thank you !
  15. aHMAD_SQaLli

    is this AJAX code good enough ?

    Thanks for the detailed explain it really make more sense, and I know about jQuery but I just prefer to use Javascript because I'm still learning. sorry if I'm asking to much but, can you give me a better code example if it's possible, I'll be Very Thankful, still new with JavaScript.
×

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.