Jump to content

Cyber

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Cyber's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The dump file ?! What do you mean ? Not sure if you understood what i ment, but to connect to a unix box from another windows box. Since the port, mysql port i closed on that server. Thanks :)
  2. anyone !? Thanks in advance.
  3. Hi. I know i have seen it some place before, but i just can not remember where i`ve seen it, or what it is called, since it was so long time ago. So i need to ask if anyone here can help me out. Here`s my issue.. I have an Windows server with mysql/php, that runs some php scripts on it today, and i would like to move that mysql database, from MS to unix server. The moving part isn`t hard, but since the unix server dosen`t allow remote access to mysql database, i need a script that lies on that server to connect to the mysql for the scripts that runs on the MS server. Anyone got any clue what i am talking about here ?!  ??? Need a script that the "program" can connect to, and then run the needed command to the remote database. Thank you so much in advance. Cheers :)
  4. so easy, so misunderstood... :P Thanks m8, sometimes it so hard to just know where to start looking :) So thanks again. Cyber
  5. Hi. I have created a form, in this there is a textarea, when user submits the text, it puts it in mysql. And when i like i can get that text out again where i want. But the problem is.. If you write this same text in a textarea (new line) you will see this text without any breaks (line breaks). Say you write a book, and some lines you need a line break, like this... But when i call it back to my sites, all text lines is on one row, and no line breaks. How can i fix this ? Thanks :) Cyber
  6. Yes okey.. Si if i do it this way.. [code] <?php     $puspus = explode(",",$sikkerhet);     print_r($puspus);      ?>   Then this will output this: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 ) Cuz in db row it is inserted value 1,2,3,4,5,6,7,8 [/code] But how to use these values ? That array is the ID to the value to another table in db, example 1 = Golf, 2 = BMW etc. So then i need a sql_query that get`s the value from both tables and out puts it like a list as wanted. But please show me how.. I do not know at all, tried to read it several times.. I know it is simple, but i can`t get it right.. please help.. Thanks again. Cyber
  7. Hi. I`m trying to understand and use explode(), implode() from and to mysql db. Can someone SHOW me how to do the following code ?? Please ? This is what i use to get the info into the db: [code] // This is a checkbox from a form echo '<input type="checkbox" value="'.$id.'" name="comfy[]"'; if(array_search("1",$comfy) > -1) echo ' checked="true"'; echo '>'.$cars_comfy.'<br>'; //After submitting the form, i use implode $comfy= implode(',',$comfy); // That works okey enough, and in db it shows 1,2,3,4,5,6 and so on [/code] But then comes the tricky part, how to get it out again!? Thing is, that i am storing only numbers (like 1,2,3), and the value of those numbers is stored into another table. tablename: cars row[0]: cars_id row[1]: cars_comfy So you see that, i have to get out the numbers from the first table then the cars_comfy (output these names) to match the cars_id that is already uses implode on. Output would be (like i want it to be): A list: * carname1 * carname2 * carname3 * and so on.... Anyone that can help me make this script ?? Much easier to see a working example that reading from a text book.. hehe.. Anyway, thank you so much =) Cyber
×
×
  • 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.