[PHP] displaying result problem

2006-05-12 Thread adi zebic
Hi, I have little problem while displaying a result from one simple querry. If i insert values into mysql DB in following order (12, 3, 14, 4 ) I allways have ( 12, 14, 3, 4 ) displaying when query the DB. (same with letters - dcba - abcd etc) I would like to be able to display the data like

[PHP] split line of text

2005-09-27 Thread Adi Zebic
Hi, if chunk_split function split the line of text (here on 50 char) I was wondering if there exists one function who take care if the 50 char is in the middle of the word and split the line first empty space before the word or just after? $newstring = chunk_split($row[1], 50, 'br /'); echo

Re: [PHP] split line of text

2005-09-27 Thread Adi Zebic
Le 27-sept.-05 à 23:52, Philip Hallstrom a écrit : http://us3.php.net/manual/en/function.wordwrap.php thanks a lot! $newtext = wordwrap($row[1], 50, br /\n); echo $newtext; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] really basic question

2005-09-06 Thread Adi Zebic
Hi folks, It is permited to do something like this in the functions body ? function test() { print(tralala); do_some_stuff(); ? table id=conex width=167 border=0 cellspacing=0 cellpadding=0 ? print(test function continue here or not?); waiting_answer(); print(thanks a lot); } ?

[PHP] how to divide string

2005-09-05 Thread Adi Zebic
Hi, is there any magic function who can give me from: $string = abcdefghijklmnopqrstuwvxyz; somthing like this: abcd efgh ijkl mnop qrst uwvx yz (each 'x' letters go to the next line) Thanks a lot, ADI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Java - toString() - php - ?

2005-08-02 Thread Adi Zebic
Rory Browne a écrit : I haven't a monkies what that code(your java) does, and I don't have time to analyse it(in expensive cybercafe), but you may want to consider www.php.net/print-r www.php.net/var-dump and www.php.net/var-export I think they may do what you want without using the toString

[PHP] php-mySQL insert problem

2005-08-01 Thread Adi Zebic
Hi, I'm new in php so like usual I have little problem(s). I have DB clas who connect to database, select database, query database and so on. I have other class User with some members. exemple: ... var $firstName; var $lastName; ... Then I need to insert created object into mySQL database

[PHP] Re: SOLVED - [PHP] php-mySQL insert problem

2005-08-01 Thread Adi Zebic
Jack Scott a écrit : Try this: $insertQuery = Insert into TABLE ( col_one, col_two )values ( ' . $this - firstName . ', ' . $this- lastName . ' ); $db = new DB;

[PHP] Java - toString() - php - ?

2005-08-01 Thread Adi Zebic
To print state of object in Java I can define toString() function and then I can do something like this: Java exemple: * import java.io.*; import java.util.*; public class ReadTextFromFile { private static String line; private static String