Jump to content

GremlinP1R

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Everything posted by GremlinP1R

  1. Help pleas, I don't know how to do this and I also don't know where to begin. I just want the server to run over a local network.... Help please... Thanx...
  2. Uhmmm help please.... How did you do that? Having the same problem and don't know how to get it working, have been trying for a day or 2 now and still no luck.... Please help....
  3. Okay well lets say its ofline?
  4. LOL now thats an idee.... I forgot it was there...
  5. Hi there Can some one please help me. I'm trying to remove the address bar on the explorer window... I know it can be done and I have a code to do it on a pop-up window but need it for every window they open... Please help... Thanx.
  6. uhmmmm sure thanx Huggie Bear... You dont maybe know where to look. Dont know Javascript at all
  7. Hi there Can some one please help me. I'm trying to remove the address bar on the explorer window... I know it can be done and I have a code to do it on a pop-up window but need it for every window they open... Please help... Thanx.
  8. Thanx that code works, sort of... it makes places for all inmages, counts them and create a blok but its not displaying... Any reason why it would not display?? Thanx..
  9. Hi there... How would I be able to display all pic in on dir on a page?? Can some one please help...
  10. Uhmmm Help again Please.... That is working 100% just have one small problem now with it. Its saving the files where it sould and it names them all as it sould but... In my data base it also have to save the name and currently its only saveing the first  ones name in all the fields. [code]<php // When Submitting   if (isset($_POST['Submit'])) {   include('uploadclass.php');       // Set upload info       for ( $i = 0; $i < sizeof ( $_FILES['pic'] ); $i++ ) {       $upload_class = new Upload_Files;   $upload_class -> temp_file_name = trim($_FILES['pic']['tmp_name'][$i]);   $filename = $name;   $filename .= $nickname;   $filename .= trim(strtolower($_FILES['pic']['name'][$i]));   $var = explode('.',$filename);       $extension = $var[count($var)-1];       if (($extension != jpg) and ($extension != gif) and ($extension != bmp) and ($extension != png)){ echo" file type";}   else {   $upload_class -> file_name = $filename;   $upload_class -> upload_dir = "images/cars/";   $upload_class -> upload_log_dir = "images/uploadlog/";   $upload_class -> max_file_size = 50000000;   $upload_class -> banned_array = array(" ");   $upload_class -> ext_array = array("%.jpg");       // Calling class Functions //      $valid_ext = $upload_class -> validate_extension();   $valid_size = $upload_class -> validate_size();   $valid_user = $upload_class -> validate_user();   $max_size = $upload_class -> get_max_size();   $file_size = $upload_class -> get_file_size();   $upload_directory = $upload_class -> get_upload_directory();   $upload_log_directory = $upload_class -> get_upload_log_directory();   $upload_file = $upload_class -> upload_file_no_validation();   // Conecting to database       $result = mysql_query("SELECT * FROM database")                 or die(mysql_error());       $sql = "INSERT INTO table (`ID` , `Date` , `Name` , `Surname` , `NickName` , `Bdate` , `Residence` , `Occupation` , `Cell` , `CarMake` , `CarModel` , `Registration` , `Motor` ,                                    `Body` , `Interior` , `Sound` , `Pic1` , `Pic2` , `Pic3` , `Pic4` , `Active` )               VALUES ( NULL , NOW( ) , '$name', '$surname', '$nickname', '$bdate', '$residence', '$occupation', '$cell', '$carmake', '$carmodel', '$registration', '$motor', '$body',               '$interior', '$sound', '$filename', '$filename', '$filename', '$filename', '0')";   // Submit data to database    $result = mysql_query($sql) or die (mysql_error());   $count = ($result); }} } ?>[/code] The $filename works fine for saving the file but I'm doing something wrong to save the file name in the database..... Please help.
  11. Hi there. I'm trying to upload a few files, now every thing is working fine for one file.... but how do I loop it for the rest?? [code]<?php // When Submitting   if (isset($_POST['Submit'])) {   include('uploadclass.php');     // Set upload info       $upload_class = new Upload_Files;   $upload_class -> temp_file_name = trim($_FILES['pic1']['tmp_name']);   $filename = $name;   $filename .= $nickname;   $filename .= trim(strtolower($_FILES['pic1']['name']));   $var = explode('.',$filename);       $extension = $var[count($var)-1];       if ($extension != jpg){ echo" file type";}   else {   $upload_class -> file_name = $filename;   $upload_class -> upload_dir = "images/cars/";   $upload_class -> upload_log_dir = "images/uploadlog/";   $upload_class -> max_file_size = 50000000;   $upload_class -> banned_array = array(" ");   $upload_class -> ext_array = array("%.jpg");       // Calling class Functions //      $valid_ext = $upload_class -> validate_extension();   $valid_size = $upload_class -> validate_size();   $valid_user = $upload_class -> validate_user();   $max_size = $upload_class -> get_max_size();   $file_size = $upload_class -> get_file_size();   $upload_directory = $upload_class -> get_upload_directory();   $upload_log_directory = $upload_class -> get_upload_log_directory();   $upload_file = $upload_class -> upload_file_no_validation(); ?>[/code] Thats the code that sould get looped, my field names are pic1, pic2, pic3 and pic4.... No to use foreach() I deed one field name not? Help please...
  12. His error [quote]Fatal error: Call to undefined method web::display_information_games() in /home/wintersw/public_html/games.php on line 40 [/quote]
  13. Hi there all I'm treing to read a file extention but don't know how.... it reads the file name and all but just cant get it to read the .jpg extension. Any idees? Thanx
  14. Can some one please HELP ME....... Okay got it to work but the extention is a problem.... for some reason it does not pick it up.... This is what I have... [code]<?php // Validation of File Extension   function validate_extension() {     // Section #1 - Defining variabels       $file_name = trim($this -> file_name);   $extension = strtolower(strrchr($file_name, "."));   $ext_array = $this -> ext_array;   $ext_count = count($ext_array);     // Section #2 - Validate File Name and Extension       if (!$file_name) {       return false; }   else {     if (!$ext_array){     return true;} else {     foreach ($ext_array as $value) {         $first_char = substr($value, 0, 1);     if ($first_char <> ".") {     $extensions[] = "." .strtolower($value); }     else {       $extensions[] = strtolower($value); }   }     // Section #3 - Loop using right extension - Check for acceptance       foreach ($extensions as $value) {     if ($value == $extension) {     $valid_extension = "TRUE" ;     }   }     // Section #4 -       if ($valid_extension) {     return true; }     else {       return false;}         }         }   } ?>[/code] it keeps on telling me that the extention is undefined.... and the how do I make this loop?? [code]<?php // When Submitting   if (isset($_POST['Submit'])) {   include('uploadclass.php');     // Set upload info       $upload_class = new Upload_Files;   $upload_class -> temp_file_name = trim($_FILES['pic1']['tmp_name']);   $upload_class -> file_name = trim(strtolower($_FILES['pic1']['name']));   $upload_class -> upload_dir = "images/cars/";   $upload_class -> upload_log_dir = "images/uploadlog/";   $upload_class -> max_file_size = 500000000;   $upload_class -> banned_array = array(" ");   $upload_class -> ext_array = array(" .jpg");     // Calling class Functions //      $valid_ext = $upload_class -> validate_extension();   $valid_size = $upload_class -> validate_size();   $valid_user = $upload_class -> validate_user();   $max_size = $upload_class -> get_max_size();   $file_size = $upload_class -> get_file_size();   $upload_directory = $upload_class -> get_upload_directory();   $upload_log_directory = $upload_class -> get_upload_log_directory();   $upload_file = $upload_class -> upload_file_no_validation(); ?>[/code] as I have 4 pics to upload at the same time.... Thanx
  15. Help.... I used that code and it helped a lot thanx, quite a handy tool to have... Sorted all errors out on the class script but now have a new problem.... I'm getting this.... [quote]Notice: Undefined index: upload in C:\wamp\www\P1R\memberspages\addmembers.php on line 339 Notice: Undefined index: upload in C:\wamp\www\P1R\memberspages\addmembers.php on line 340 [/quote] Okay now I think that my problem are here some where and it just don't feel and look right it just look if I'm shorting something.... [code]  // When Submitting   if (isset($_POST['Submit'])){       include('uploadclass.php');   // Set upload info       $upload_class = new Upload_Files;       $upload_class -> temp_file_name = trim($_FILES['upload']['tmp_name']);      // line 339       $upload_class -> file_name = trim(strtolower($_FILES['upload']['name']));    // line 340       $upload_class -> upload_dir = "images/cars/";       $upload_class -> upload_log_dir = "images/uploadlog/";       $upload_class -> max_file_size = 5000000;       $upload_class -> banned_array = array(" ");       $upload_class -> ext_array = array(" .jpg", " .gif", " .jpeg", " .png", " .bmp");     // Calling class Functions       $valid_ext = $upload_class -> validate_extensions();        $valid_size = $upload_class -> validate_size();       $valid_user = $upload_class -> validate_user();       $max_size = $upload_class -> get_max_size();       $file_size = $upload_class -> get_file_size();       $upload_directory = $upload_class -> get_upload_dir();       $upload_log_directory = $upload_class -> get_upload_log_dir();       $upload_file = $upload_class -> upload_file_with_validation();     // Errors       if (!$valid_ext){ $result = "file ext";}   elseif (!$valid_size){ $result = "size";}   elseif (!$valid_user){ $result = "user";}   elseif ($file_exists){ $result = "exists";}   else {$upload_file = $upload_class -> upload_file_with_validation();       if(!$upload_file){ $result = "Not Uploaded";}   else{ $result = "Success";}       }   } [/code] Please help.... Thanx
  16. Hi there all. I have done the file handeling tutorial of PHPFreaks but have a huge problem... As soon as I include() that class file for the file uploading, my script goes blank it just dissapear... And maybe if I can get that sorted I will be able to get the thing to work... Please Help me.... Don't know where to start looking.... Thanx.
  17. I want all data in the database where the colum meets what is searched for. Like lets take all in month september as an example. So I have 300 persons thats in september. Now I pull all out of the data base by a row function that's in september and want to create an id (varible) for all of them after modifying the data with the script (the modifying is working 100%) and then later on I want to display all the varibels... Help I'm stuck here.... Thanx
  18. do you let the session self create the session name or are there a fixed session name.
  19. Are you using sessions or cookies?
  20. Hi there. I have a litle problem, I'm pulling out data from a data base and then modifying it with the script. I use the [color=red]While ($row = $results)[/color] Comand to pull all data from the database thats needed. Now about 100 lines down I want to display that data. But cant get it to work as it should. as I can only get it to display the first line and not the rest. I can remember that you get a comand like this +- [color=red]$Cald [] = data;[/color] and then you can retrive that some how... Can some one please help.  Thanx
  21. Yes thats it Thanx Alot.
×
×
  • 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.