Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. i followed this up to
  2. Long yet Vague question... Whats the "Problem"
  3. why not add print_r($_POST) at the start so you can debug with ease!
  4. why do you say it won't set the cookie ? the php side in isn't using cookies so i fail to see the cookie problem! Edit: did you read the article correctly i think you should read it again!!!
  5. have you tried wget http://www.yoursite.com/update.php
  6. Can you please click "Topic Solved" at the bottom
  7. whats the exact command line you just used ?
  8. Opps ok Border Same idea but still <style type="text/css"> <!-- .btnav { border: 1px #000000 solid; border-color: #FFFF00; } } --> </style> <table width="200" border="0"> <tr> <td class="btnav" onmouseover="style.borderColor='#FF0000';" onmouseout="style.borderColor='#FFFF00'"> Hover </td> <td>Blar</td> </tr> <tr> <td>Blar</td> <td>Blar</td> </tr> </table>
  9. Na, its been moved:) how about this <style type="text/css"> <!-- .btnav { background-color: #84C1DF; border: 1px #000000 solid;} } --> </style> <table width="200" border="0"> <tr> <td class="btnav" onmouseover="style.backgroundColor='#84DFC1';" onmouseout="style.backgroundColor='#84C1DF'"> Hover </td> <td>Blar</td> </tr> <tr> <td>Blar</td> <td>Blar</td> </tr> </table>
  10. add to the end } else {echo "Error";} echo $error;//<<add to the end ?> EDIT: Also you have a SQL inject problem and over use the Sessions and $_SESSION['Logged In'] = "true"; should really be $_SESSION['Logged In'] = true;
  11. wrong section.. please check the HTML/javascript/css section
  12. erm.. write basic site.. nothing special.. and then add.. or just find a few examle and add to them.. or get a book and follow the chapters!
  13. what command line you using to setup the cronjob?
  14. what about this. $formpassword = "TesT1234"; $valid = (preg_match('/\A(?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9])\S*\z/', $password)>0)?true:false; if (!$valid) { $error .= "<span class='warning'>$formpassword ERROR: Failed check for required symbols in password. Please adhere to the specifications given.</span><br />"; }
  15. your need to have a index of words and count the matches
  16. try http://www.cpanel.net/docs/cpanel/ and http://dev.mysql.com/doc/refman/5.1/en/index.html
  17. this doesn't make sence <?php $c_id = $databaseArray['cards'] ? $databaseArray['cards'] : ''; ?> if it has a value then set $c_id to it, else set $c_id to '', the logic is a little mixed up.. can you explain a little more also some extra code may help ie what is databaseArray['cards'] a list of cards or a selected card where are you pulling from the database ? the subject also doesn't help
  18. do you mean $_POST['set'] is not changing ? can you post some more code please
  19. never mind, solved it used ob_end_clean(); NOTE to self don't code then tired!
  20. quick question.. test.php (yes i know theirs no PHP code its just a test file) <body> Hello World </body> test2.php <?php ob_start(); include "test.php"; ob_clean; echo "bye"; ?> i run test2.php and get but i expected just bye. any ideas ? i'll check for replies in the moring.. night all
  21. WHAT!!! i have no idea.... depends what you want to use it for!! i'm going to bed.. night all!
  22. i think i use CHMOD 755, PHP files are parsed via the server thus the downloaded file will not be the source the output..! as for other files well it depends how the server is setup but a direct like will download or play (depends on client as well)
  23. check the $_POST['set']
  24. Hash is used for secuirty.. and yes md5 is a one way encryption aka hash.. to use sessions see the examples.. ie.. $_SESSION['userid'] = $userid; i think to need to research some more and then plan the design as your not clear on a few keys elements. start small create a simple login script then add to it a little at a time. sessions will be used to keep the user logged in. when your finished you may wish to start again, as you would of learnt a few things please don't take any of that the wrong way..
  25. using preg will be very slow and a loop will kill the server.. use mySQL as it was ment to be used! if you MUST use MySQL REGEXP but its also slower and more limited than preg but how complex are the searches!
×
×
  • Create New...

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.