Jump to content

scheols

Members
  • Posts

    113
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

scheols's Achievements

Member

Member (2/5)

0

Reputation

  1. I tried this query: <?php include("config.php"); $load_data = mysql_query("LOAD DATA INFILE 'sql.txt' INTO TABLE `loadata`;") or die(mysql_error()); ?> sql.txt INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); INSERT INTO `loadata` (`text`) VALUES('example'); I get access denied: Access denied for user 'scheols_HIDDEN'@'localhost' (using password: YES) My host said they don't restrict it so does anyone know whats up?
  2. Can't seem to find any on google only for HTML 4.0
  3. [code]Yep that is the best way I made one of these about an 2 hours ago. function/inputsettings.php [code] <?php function inputsettings($value,$type,$name){ return '<input type="'.$type.'" value="'.$value.'" name="'.$name.'">'; } ?> [/code] [/code] [code] <?php include("./config.php"); require_once("./functions/inputsettings.php"); if($logged[username] != 5){ echo "Sorry you do not have permissions to view this area"; exit; } $subject = $_POST['subject']; $message = $_POST['message']; $sendmasse = $_POST['massemail']; $uone = mysql_query("SELECT * FROM users WHERE id='1' ") or die(mysql_error()); $adminone = mysql_fetch_array($uone); $admin = $adminone[email]; $adminname = $adminone[username]; if(isset($sendmasse)){ $user_emails = mysql_query("SELECT * FROM users") or die(mysql_error()); while($alluseremails = mysql_fetch_array($user_emails)){ $allusers = $alluseremails[email]; mail($allusers,$subject,$message,"From: "."Webmaster - $adminname"."<".$admin.">\n"); } }else{ ?> <form method='post'> <table border='1' width='100%'> <tr> <td style='text-align: center;'> Send email </td> </tr> </table> <table border='1' width='100%' colspan='2'> <tr> <td> <center>Subject</center> </td> <td> <center><input type='text' name='subject' size='27'></center> </td> </tr> <tr> <td> <center>Message</center> </td> <td> <center><textarea name='message'></textarea></center> </td> </tr> </table> <?php echo "<center>".inputsettings('submit','submit','massemail')."</center>"; ?> </form> <?php } ?> [/code]
  4. when i said "say you have another directory to go up" i ment 3 directories folder>folder2>folder3
  5. so kenrbnsn say you have another directory to go up would i have 3 dots? or just another ../ like this ./../.../ or ./../../
  6. is it possible to get parent directory instead of child directory?(im looking now so dont get mad :()
  7. why you just spam? Im just asking a question. So how does the little dots work between the slashes.
  8. Ok how do you know what directory yuor in? $nevux_root_path = "./../"; I use that if im in a subdirectory how does sub directories work?
  9. close it i dont care no more im out im tired of these type of people.
  10. [quote author=ignace link=topic=103195.msg410809#msg410809 date=1154889446] hearing of it is not enough, its using it that defines you... look, i'm not trying to insult you or anything, but "where can you learn mysqli?" on php.net or read a book, want help with something involving mysqli (a function not working, strange error's, etc...), that's what we are here for, we're not gonna play your teacher.. @scheols if you know mysql, you will be easily picking up with mysqli, because the changes aren't that big... you still connect with your database through mysqli_connect(); the only difference is that mysql_select_db() is left out and an i has been added to the connect function! You also have the ability to directly put your database name in your connect function [/quote]its more then just mysqli_connect kid now if you dont want 2 help fine with me leave this thread as i said i know mysql i want to know more about mysqli do u understand? its a help forum, now im looking forsomeone who can tell me where i can learn this mysqli functions etc..  please stop posting.
  11. thanks benjamin for your support im learning all this so i can open up my PHP site soon and mysqli is just a weekpoint of my coding abilities. Anybody got a quick referrence couldnt find anything on google.
  12. Looking for more of a manual not a tutorial can i ask a question mysqli is way different then regular MySQL and yes i heard of google mysql [code=php:0] <? $uname ="Uname";//Username $upass ="upass";//Userpassword $database="dbname";//Database name mysql_connect("localhost",$uname,$upass); mysql_select_db($database) or die(mysql_error()); ?> [/code] mysqli [code=php:0] <?php /* Connect to a MySQL server */ $link = mysqli_connect(             'localhost',  /* The host to connect to */             'user',      /* The user to connect as */             'password',  /* The password to use */             'world');    /* The default database to query */ if (!$link) {   printf("Can't connect to MySQL Server. Errorcode: %s\n", mysqli_connect_error());   exit; } ?> [/code]
  13. here try looking at this. find the php code and try and learn from it and you should be okay mate. else if you cant try search php on pixel2life.com and search the member system options no the left side of the screen. [attachment deleted by admin]
  14. please point me in some directions thank you.
  15. scheols

    Resolution

    alright im still working on Nevux Ability Boards but in other resolutions besides 800x600 it looks like trash but 800x600 looks perfect how can i get it like a IPB so its stretches with the resolutions http://nevuxv15.xizionz.vectoredhost.com/index.php i took registration off so dont try and join. im close 2 being finished
×
×
  • 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.