Re: [PHP] Need some help plz

2001-03-10 Thread Web Admin
Hi, what's up Mick?! Okay, what have you written in your script?! You never wrote it! try include ('./domain.php') instead of include ('domain.php') maybe it helps you! I tested that on my FreeBSD 4.2+apache/php but it seems that include ('domain.php') is also OK. Just give it a try or add the

Re: [PHP] Combo Box containing field

2001-03-10 Thread Web Admin
Hi Michael, Yes I do! Take a look at the code snippet below: echo "select name=something"; $level2 = $db-execute("select typename from types"); do { $value=$level2-fields[0]; echo "option value=$value$value/option"; $level2-nextRow(); } while

Re: [PHP] incrementing a date!

2001-02-25 Thread Web Admin
hi, try $tomorrow = mktime(0,0,0,date("m") ,date("d")+1,date("Y")); or maybe better than this, if you convert the date to the standard unix timestamp and use DATE function. Best of luck, Ahmad Anvari - Original Message - From: kaab kaoutar To: [EMAIL PROTECTED] Sent: Sunday,

Re: [PHP] No same username

2001-02-25 Thread Web Admin
define a UNIQUE field :) - Original Message - From: Brandon Feldhahn To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Sunday, February 25, 2001 4:03 PM Subject: [PHP] No same username how do i make somthing with my database that knows it the username

Re: [PHP] No same username

2001-02-25 Thread Web Admin
Or better using: create table test1 (t1 char(5), t2 char(5), primary key (t1), unique (t2)); when creating table. No duplicate records with the same t2 because it's unique. Ahmad Anvari - Original Message - From: Kath To: Brandon Feldhahn ; [EMAIL PROTECTED] Sent: Sunday,

Re: [PHP] Change dir mode to writable for uploading..

2001-02-24 Thread Web Admin
Hi Dhaval, You said in your previous e-mail 'C:\'. Are you using a NT based server or Unix based? If your server is a unix based one, consider trying this command: chmod 777 /path/to/directory Warning, this is a bit dangerous and might be vulnerable, are you running your webserver with nobody?

Re: [PHP] $result = $$function

2001-02-24 Thread Web Admin
Hi, I didn't get why you haven't used this: switch $var case something: $result=$build_result(); break; case somethingelse: $result=$build2(); break; blah blah blah... Ahmad - Original Message - From: Peter Van Dijck To: php gen list Sent: Saturday, February 24, 2001

Re: [PHP] Modulus Formatting

2001-02-06 Thread Web Admin
Hi Michael, Use a temporary variable [counter], if counter%3 == 0 then write /trtr in the output. $counter=0; print "tr"; while($row = mysql_fetch_array($result)) { echo "td".$row["user_id"]."/td"; $counter++; if (!$counter%3) { echo "/trtr"; } } That's all ;-) Ahmad Anvari

Re: [PHP] Save to Local Disk

2001-02-06 Thread Web Admin
Hi Karl, Simply put a save button on your page. When it's clicked, pass document.forms[0].textareaname.value to the other script, (it's written in javascript, if you're familiar with that), then you'll access the content of the text box. to save it on a local disk, simply use javascript again, it

Re: [PHP] GD

2001-02-06 Thread Web Admin
Hi, Consider using ImageCreateFromGif will help you. Then use ImageTTFText to write some text on the loaded gif and ImageGIF it to output the image as gif :) Ahmad Anvari - Original Message - From: Brandon Orther To: PHP User Group Sent: Tuesday, February 06, 2001 7:50 PM

Re: [PHP] Passing an array as an argument.

2001-02-06 Thread Web Admin
Hi April, I suggest you code your array into one string (it depends to the size) then decode it at the other end using your own code. It's the easiest trick to pass the array, compress it into one variable, then extract it at the other end. Any other ideas? ;-) Ahmad - Original Message

Re: [PHP] GD, TTF, and Anit-Alias

2001-02-06 Thread Web Admin
Hi Brandon, You asked me in a private e-mail about anti-aliasing. As far as I know if ImageTTFText function, if you use negative color reference [such as -1, -2], It turns off the anti aliasing. I think the text is automatically antialiased using a positive number. Anyone, with a sharp idea? ;-)