Jump to content


  • Posts

  • Joined

  • Last visited


Profile Information

  • Gender
    Not Telling

ReVeR's Achievements


Member (2/5)



  1. Hello. I am saving info into mysql from user input, and then trygin to print it. However when i try to print it i lose the new line, and most of the formating. Any ideas on why i lose that stuff? I had this problem b4, and i think i needed to call a special function b4 i still the infromation into mysql, i print it using the print function. Thx in  advance.
  2. Hello. I just updated all of my soft due to a reformat, and i installaed apache, then php which configured itself. That ran fine. I started to installa mysql, worked fine up until i try to use mysql_connect(). At which point there is no error, but the page refuses to load at all. If i comment out that line it works fine once more. I installed MySQL and it runs fine on the side. I uncommented the extensions dir in php, and uncomment the mysql extensions. I configured the right port in php.ini . I copied the library from MySQl to windows folder and PHP folder. Any ideas what i am missing? php.ini [code] extension_dir = "C:\Program Files\PHP\ext\" extension=php_mysql.dll [MySQL] ; Allow or prevent persistent links. mysql.allow_persistent = On ; Maximum number of persistent links.  -1 means no limit. mysql.max_persistent = -1 ; Maximum number of links (persistent + non-persistent).  -1 means no limit. mysql.max_links = -1 ; Default port number for mysql_connect().  If unset, mysql_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look ; at MYSQL_PORT. mysql.default_port = 3306 ; Default socket name for local MySQL connects.  If empty, uses the built-in ; MySQL defaults. mysql.default_socket = ; Default host for mysql_connect() (doesn't apply in safe mode). mysql.default_host = localhost ; Default user for mysql_connect() (doesn't apply in safe mode). mysql.default_user = ; Default password for mysql_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") ; and reveal this password!  And of course, any users with read access to this ; file will be able to reveal the password as well. mysql.default_password = ; Maximum time (in secondes) for connect timeout. -1 means no limit mysql.connect_timeout = 60 ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and ; SQL-Errors will be displayed. mysql.trace_mode = Off [/code] [EDIT[ Note here is a piece of simplified code that i tried: [code] <?php include 'conf/conf.php'; echo 'test'; $link = mysql_connect('localhost:3306', 'root', 'passhere'); if(!$link){ die("Couldn't connect: ".mysql_error()); } ?> [/code] I get the test output adn after that nothing even thoug i have a page to display afterwards Thanks in advance.
  3. Hello. How can i show/hide parts of the layout with javescript? Say, i have a <div id="hideme">HIde me test </div> How cna i show and hide that with javascript? Thx
  4. Hello. Is there a place where i can download gif smilies? Kind of stuff like you got on ur forums? Thx
  5. yep, that was it. Thx
  6. Hello. I have an image that has a link in it view <a href..but it makes an ugly border around the linked image... i was wondering how can i get rid of that border? [code] a:link, a:visited, a:active{     background: transparent;     color: #dadada;     text-decoration: underline;     border:hidden; } a:hover{     background: transparent;     color: #fefefe; } [/code] Thx
  7. Hello What does @ b4 function name do when the function is called. Thx
  8. Hello. I was wondering why having set $HTTP_POST_VARS['GLOBALS'] is associeated with a hacker attempt on the server. I saw this in a piece of code but it wasn;t explained there. Thx
  9. thx alot,. thats the file i forgot to move. sry that i didn;t find that thread b4 posting.
  10. Hello. I need to connect mysql to php, both are version 5s. I changed the extensions_dir in php.ini to correct path, i uncommented the extension=php_mysql.dll, but php still gives me: [code] Fatal error: Call to undefined function mysql_connect() in C:\Apache\Apache2\htdocs\test.php on line 8 [/code] I think i forgot to move a dll from or to mysql direction, does anyone know what dll i am suppoused to move? Thx
  11. Hello. I was wondering if it was possible to get php code from a remote website? Thx
  12. Hello. I was wondering how can i make a link that when called will set some parameter on the page that can be read by php and interpreted. Thx
  13. Hello. Due to IE's bsesness i need full paths for the iamges in the browser. How can i get my full path to an image, the whole http etc deal from php? Thx
  14. thast basically what i needed. I needed to get files on a dir on the server so user can select one of them. THx
  15. thx alot, thast exectly what i needed. I guess i am still a complete news in this, but at least i am learning from this forum:D
  • 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.