Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wolf73
  • Content: Threads
  • Order by date
  1. wolf73

    what is wrong with this code?

    I want to delete all the selected (checkbox checked)items from the bag. I am trying to undersnatd the folowing code. It is suppose to produce URL like https://administration.irfan.dev/integration/delete_multiple_internal_ fields?package_id=114&items=211,212 instead it give me lot of junk...
  2. wolf73

    anyone using edit plus

    I was wondering if anybody using the php editor EditPlus. Is it possible to search for a particular php file or search for a function in your directory in edit plus?
  3. wolf73

    what is wrong here

    I am geting error at $this->playarray();, isn't this how we can call memebr function of a class? <?php class myarray { function playarray() { $temparray= array(); $temparray = array ( 'a' => 'you' , 'b' => 'me', 'c' => 'they' ); foreach ($temparray as...
  4. wolf73

    are these two sql same?

    Are inner joins just regular joins? will these two SQL then the same? and will produce same results SELECT field_mappings.id AS field_mapping_id, internal_fields.id AS internal_field_id, external_fields.id AS external_field_id, internal_fields.field_name AS static_name...
  5. wolf73

    whats wrong with this sql

    I don't where i am making mistake on this sql SELECT field_mappings.id AS field_mapping_id, internal_fields.id AS internal_field_id, internal_fields.field_name AS static_name, FROM field_mappings INNER JOIN internal_fields ON internal_fields.id = field_mappings.id WHERE internal_fields.id...
  6. wolf73

    for loops

    I have never seen these kind a for loops, foreach ($buyers as $buyer=>$weight) what are we doing with in ($buyers as $buyer=>$weight), especially $buyer=>$weight?
  7. wolf73

    what are they doing in line 3

    Hi, I don't understand what they doing in line 3, I did not know one can create object in javascript. and then why they have return with in if statament? function package_validate() { if ($('package_offer_id').value != "" && valid_offer == false) { var url =...
  8. wolf73

    how exceptions work?

    How does exceptions work, are these just error message, or do they stop the program right there. throw new DataInconsistancyException("No of colums in the table do not match number of colums in the array");
  9. wolf73

    is there anything wrong with the code

    Hi, I am trying to learn OO php, is there any thing in the following code, which is totaly wrong. private function get_data($filename,$table_columns) { $return_array; //$row = 1; $handle = fopen(".$filename.", "r"); while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {...
  10. wolf73

    desperate help need

    I am very new to Objected Orientated, I am trying to do something like the following. Create a class called MuzeUpdater. In this class make several functions for updating our db. Have a function for every table, and in turn have a function that calls all the necessary functions to do the...
  11. wolf73

    php syntax question

    I am trying to understand this code. I don't undersnatd the sytax here, we are assigning the value "NO" to what? $GLOBALS['appdata']->statsview[1]['cluster_id'] = "NO";
  12. wolf73

    seting the value for max character?

    i am using phpmyadmin to create my table (not sql but panel), I need to have a field for text, but I want to set it so maximum character could be only 41958, how could I do that?
  13. wolf73

    SQL syntax question

    I want to cretae a relationship between table test3 and test, what am I doing wrong here when I create a foreign key. CREATE test3( order_no BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY , Order_Date date, Customer_SID integer, Amount double, FOREIGN KEY Customer_SID REFERENCES test(id) );
  14. wolf73

    trying to undersnatd OO php code

    I am trying to understand the following code. In the function below. Buyer is a class and , and it has a method find_all that we are calling right? and then $this->sites is a variable, correct, to which we are assingning the value returned by method find_all, correct? But if I print...
  15. wolf73

    ENUM and php admin

    Hi, Creating database in mysql using php admin, if I pick the datatype Enum and the if I have values for enum 'view' and 'url' . Where do i put these values. I mean would it be in Length/Values colum or attributes? Thanks
  16. wolf73

    SQL problem

    I have 3 tables , posted_leads, ctc_log, and duplicate_leads. If I I have one record with 'session_id' '22' and there are 5 records with session_id '22' in table 'duplicate' i get 5 records for session_id '22'. I want to have only one record if there is one record in table posted_leads for...
  17. wolf73

    mixing php and javascript

    the following code works <? $attrib = Array(); $attrib["onclick"] = "javascript:window.location='add'"; ?> the following gives me error, here $s is a php variable, it gives me junk value (disable?id=Object%20id%20#7%3E) <? $attrib = Array(); $attrib["href"] =...
  18. wolf73

    regex ?

    What are they doing here, are they saying it should be a number between 0-9 and first number should not be 5 and 9? array ( 'regex' => '/^[0-9]{5,9}$/', 'method' => 'validate_format_of', 'column' => 'zip', 'message' => 'Invalid zip' ),
  19. wolf73

    $this

    I am trying to learn OO PHP. I get really confused looking at the code. I don't understand what detremine that we will use $this or not. Like in the codde below. if(($check_stage<=$called_stage)&&(!$errors_detected)) { $this->model[$check_stage]->check_required_fields()...
  20. wolf73

    swaping menu images

    I keep geting this error, object not found. I am tryig to swap images on mouse over event, my onclick works fine. http://yespayday2277.irfan.dev/ <script language='javascript'> function MM_swapImgRestore() { //v3.0 //var i,x,a=document.MM_sr...

Part and Inventory Search

Back
Top