[PHP] regex problem

2003-03-13 Thread Simon De Deyne
hi, suppose there's a string $string=I like my(hot) coffee with sugar and (milk)(PHP); I would like to get an output of all possible combinations of the sentence with the words between brackets: eg. I like my hot coffee with sugar and I like my hot coffee with sugar and milk I like my hot

[PHP] function to update mysql tables?

2002-10-16 Thread Simon De Deyne
Hi, I'm not sure if this is entirely php related, but I was wondering if there is a PHP function or a way to automatically update one table with values from another more extended table (automatically checking the common columns) and inserting new rows if they don't exist in the first table.

[PHP] systematic glitch in pages due to cache?

2002-07-19 Thread Simon De Deyne
hello everybody, I have a real problem, and a vague description to it (can you guess?: newbie). I've created a site which retrieves a word from a database and displays it. The user enters another word (a translation) which is checked against the solution and feedback is given. These words are

[PHP] convert encoding from unicode to EUC-JP

2002-06-12 Thread Simon De Deyne
Hi, is there a way (php function, class, or a stand alone program (non-php) to easily convert unicode text that represents Japanese words in romaji into EUC_JP or SHIFT_JIS? thanks, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP for 3D scatterplots

2002-03-20 Thread Simon De Deyne
is there any code for this available yet? I am looking for a way of plotting gif images of objects in a 3D space... thank you! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to pass values to PHP by clicking on imagemap

2002-03-19 Thread Simon De Deyne
does anybody has a good suggestion for doing this? I just would like to pass a number by clicking on an imagemap to a php script... Sorry for the novice-ity of this mail, have a nice day! simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] simple yet weird... help pls

2002-03-14 Thread Simon De Deyne
Please take a look at the script below. If i want to show an image it doesnt work if it's under an if statement. Why in this case? ? $feedb=0; if($feedb==0){ echo img scr='somepic.jpg';} echo img src='somepic.jpg'; ? How can i solve this problem? thank you!

[PHP] how to calculate frequency of words in array?

2002-03-08 Thread Simon De Deyne
Does anybody has a clever way to summarize the number of different words (with multiple occurences) from an array into an array with all the different words and the times they occured? Thanks a lot! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread Simon De Deyne
Hi, I'm a bit a newbie at the mysql-php tandem, but I wanted to ask a pretty basic question Supose you do x=mysql_query(/somequery/) // fetch a row and then later you do y=mysql_query(/somequery/) If you want to fetch the following row for the query in x, you should probably make the

[PHP] doskey and Mysql with Win9x?

2002-02-20 Thread Simon De Deyne
How come doskey doesnt seem to work under Mysql running in Win9x? Is there an alternative instead of endless repetitve typing and quickly disintegrating wrists? Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how can i pass a javascript variable into a PHP variable?

2002-02-11 Thread Simon De Deyne
Hi, does anyone has an idea and example how to get the value of a js variable into a PHP variable, preferably working with sessionvariables or a hiddenform? thank you! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to get js screenresolution passed to a sessionvariable?

2002-02-08 Thread Simon De Deyne
hi, I am trying to get the screenresolution passed from a javascript variable to a PHP variable using sessionvariables, but I can't get it to work, can you help me out to get some code working? I was thinking of something like this, but I'm pretty much a newbie at lots of things, so I'm sure