Jump to content

timmyd

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by timmyd

  1. i dont quite understand. The content comes from MySQL, so its easy to create an PDF with FPDF and such. why would want to use another program?
  2. hi, whats the best way to print labels. I have already tried the script from fpdf.de but i can not get my dot matrix printer (dot matrix is needed for this purpose) the correct layout. Its continuous paper, with size 110 height x 62mm width (for each label). I am not able to select a self-adjustable paper-size. so i hope to solve this with PHP / PDF if possible. anyone have experience with this? cheerz!!
  3. if i want to INSERT unless it already exists than i want to update for this INSERT ON DUPLICATE can be used INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1; but what if i don't know the KEY which is in my opinion in most cases the isue since it start off with and INSERT, can is still use this function differently for example: INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE b=2 AND a=1 UPDATE c=c+1; or something like this?
  4. loop on mysql INSERT ends up in uploading only 1 row function link_id() { return $this->Link_ID; } function query_id() { return $this->Query_ID; } function query($Query_String) { $this->Query_ID = @mysql_query($Query_String,$this->Link_ID); } function connect($Database,$Host,$User,$Password) { if ( 0 == $this->Link_ID ) { $this->Link_ID=mysql_connect($Host, $User, $Password); if (!$this->Link_ID) { } if (!@mysql_select_db($Database,$this->Link_ID)) { $this->halt("cannot use database ".$this->Database); return 0; } } return $this->Link_ID; } $db=new db_connect; $x = "SELECT * FROM table1"; $db->query($x); while($db->next_record()){ $id =$db->f("id"); $y= "INSERT INTO table2 (id2) values('".$id."')"; $db->query($y); } whats stopping the loop?
  5. i have this array: [76] => Array ( [463] => 11154 [464] => 11155 [679] => 11634 ) [77] => Array ( [469] => 11172 [586] => 11427 [588] => 11429 [883] => 11981 [886] => 11987 [891] => 11997 [893] => 11999 [894] => 12000 [895] => 12001 [3078] => 15405 [3079] => 15406 ) [74] => Array ( [606] => 11466 [632] => 11515 [1604] => 13419 ) now i want to do a foreach on id 74 forexample the result should be: 1.11466 2.11515 3.13419 how i am gonna adchieve this cos with this foreach($array_ids_per_user as $key => $value){ //print $value; print "xxxx .".$key." ".$value[2]."<br>"; } didnt work out. hope you can help out cos i am new to arrays
  6. HI i have a problem, i want to upload a file in a different format and at the same time create a thumbnail. Everything is working so far except when i upload a .GIF file. If i upload a .gif file it will be uploaded as .jpg which is good. but the extension remains .gif. How can i rename the extention for this: <? if(move_uploaded_file($_FILES[$form_field]['tmp_name'][$p], $store_pad.$file)) ?> cheerz
×
×
  • 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.