[PHP] re:Switch - Case Statement Questions

2012-11-16 Thread Omar Muhsin
hy using the Switch it always execute the first case ? Many thanks Omar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Omar Noppe
Is there any reason to pick a black background en white fonts in your editor (for example writability)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] copy function

2003-12-18 Thread Omar
Is there a way to copy a file from 1 server to a different one? I have this code in a win 2k server, and i try to copy the file to a win NT server: if (is_file($file_att)) if (copy($file_att,'\servername\folder\'.$file_name)) echo "succesful"; else echo "failure"; It gives me this war

[PHP] mssql_connect problem

2003-12-17 Thread Omar
Hello. I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to connect to it : $db_conn = mssql_connect("CLUSTER01", $db_usuario, $db_password); and it gives me this message: Warning: 0 is not a MS SQL link index in x The user name and password are correctly created in the log

[PHP] preg_match

2003-10-10 Thread Omar
Hello everyone. In this line preg_match("/[^a-z0-9'\?!-]", $item) i can´t find de way to add vowels with accent (á,é,í,ó,ú,ñ,Ñ) and other characters to the preg_match function. Can anyone help me? The documentation of this function is not very clear (or complete) to me. Thank you. -- PHP Gener

[PHP] MS SQL query problem

2003-08-28 Thread Omar
I have a sql query, something like SELECT x FROM server1.table WHERE x IN (SELECT x FROM server2.table) I get a warning when loading the page. This is the warning: Warning: MS SQL message: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ens

[PHP] cookies and iexplorer

2003-06-06 Thread Omar
I have this login page, if the login is correct, i create 3 cookies: - user = $login - password = $pass - seepage = 1 on the other pages, i placed a condition: if $seepage != 1 go to login page else show page It works fine to some people (works fine for me), but there are other people who

Re: [PHP] Get data from 5 tables

2003-03-05 Thread Osman Omar
> http://www.mysql.com/doc/en/JOIN.html > > > --- Osman Omar <[EMAIL PROTECTED]> wrote: > > Hi, > > > > How do I query to get data from 5 tables with same > > id. (id=1). > > > > eg, > > > > table1 > > id data > >

[PHP] Get data from 5 tables

2003-03-05 Thread Osman Omar
Hi, How do I query to get data from 5 tables with same id. (id=1). eg, table1 id data 1 blue 2 green table2 id data 1 yellow 3 green table3 id data 1 black 4 white etc. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] problem including a file

2002-12-30 Thread Omar
I have an include line in all the php files i write something like --> include('connection.inc'); The include path is d:\includes. (win nt 4, php 3.0.11) It worked fine before but today failed to open the include file. Does anyone has a clue about what could cause this problem? Thank you. -- PH

Re: [PHP] Re: Stumped!

2002-12-16 Thread Omar
Check out your while { } <--- i don´t see a closing one echo ("$meetingName "); try: echo ''.$meetingName.''; <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hmm, I am still getting a parse error on the last line of code... In a message dated 12/16/200

[PHP] Re: Stumped!

2002-12-16 Thread Omar
$sql = "SELECT ."; $sql_e = mysql_query($sql); while ($result = mysql_fetch_array($query_e)) { . } You were missing the mysql_query <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to display a column from my database as a list. Each

[PHP] trouble with update from php 3 to php 4.2.3

2002-12-04 Thread Omar
I updated php from version 3 to 4.2.3 on a win NT 4 server (with iss 4). Everything went ok, but the include() function. I have problems when including files. I tried to specify a directory in the php.ini file but it still didn't work. This is how i have the include line: include ('file.inc'); I c

[PHP] Re: Refresh my Memory

2002-10-10 Thread Omar Campos
Visit http://javascript.internet.com/user-details/resolution-page.html it'll be helpful. "Stephen" <[EMAIL PROTECTED]> escribió en el mensaje 000e01c270a9$08ba5b90$0200a8c0@melchior">news:000e01c270a9$08ba5b90$0200a8c0@melchior... Hello, I forget exactly how to do this so I'm turning to you all

[PHP] slow form / server problem

2002-10-10 Thread Omar Campos
Hi. I run php in win2k server, IIS and MS SQL Server 2k. I've created some data bases and tables. On the beginning, sending a php form (through the intranet) was quick. Now, it spends 32 seconds (sometimes less) to send a form. I've tried on a empty data base but it's still slow. I don´t have a cl

[PHP] mysql_num_rows error

2002-10-08 Thread Omar Campos
I have a file. I'll paste from line 32 to 34 I get the next warning: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/olimpiad/public_html/base/alta1.php on line 34 I'm running the script on a linux server. could someone help me. Thank you. -- PHP

[PHP] Compiling PHP on Linux

2002-07-23 Thread Osman Omar
Hi I try to compile php and got error message any idea? system: Redhat 7.2 Apache 2.0.39 (for redhat 7.0 from apache website) php 4.2.2 error messages --- /bin/sh /usr/tmp/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/usr/tmp/php-4.2.2/sapi/apache2filter -I/usr/tmp/php-4

[PHP] addslashes

2002-06-21 Thread OMAR IGNACIO CAMPOS GALAN
When I use addslashes to add a back slash to a single quote, it returns 3 back slashes (example: 'it\\\'s'. Is that correct? Am I doing something wrong? Thank you Omar Campos Galán Desarrollo de Formas Electrónicas CompuSoluciones Tel. (0133) 3818-1554 Fax (

Fw: [PHP] RE:[PHP] PHP- ABOUT CONFIGURE APACHE SERVER

2001-07-19 Thread Yassel Omar Izquierdo Souchay
May i change this ? ScriptAlias /php/ "C:/WINNT/system32/inetsrv/php/" AddType application/x-httpd-php .php .php3 .phtml Action application/x-httpd-php "/php/php.exe" by this other? ScriptAlias /php/ "C:/WINNT/system32/inetsrv/php/sapi" AddType application/x-httpd-php .php .php3 .pht

Fw: [PHP] PHP- ABOUT CONFIGURE APACHE SERVER

2001-07-19 Thread Yassel Omar Izquierdo Souchay
MY PROBLEMS IS. THAT I DON'T KNOW HOW TO CONFIGURE MY APACHE SERVER TO USE MY C:\Inetpub\wwwroot\SITES I HAVE THERE THAT'S MY PROBLEM. THANKS FOR YOUR COLABORATION. YOIS - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 7:32 AM Subject:

[PHP] PHP- OF TOPIC--Sorry abotut my english

2001-07-19 Thread Yassel Omar Izquierdo Souchay
Hi agin I have APCHE SERVER Installed in my Machine. And i have Win2k pro installed. And as you see i want to use. So i having troubles to configure the WEB server. If somebody knows how to do it, please it would help me much. Thanks Yassel (Cybername=YOIS)

[PHP] PHP- OF TOPIC

2001-07-19 Thread Yassel Omar Izquierdo Souchay
Hi agin I have APCHE SERVER Installed in my Machine. And i have Win2k pro installed. And as you sww i want to use. So i having troubles to configure the WEB server. If somebody knows how to do it, please it would help me much. Thanks Yassel (Cybername=YOIS)

Re: [PHP] displaying icons

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Put the same text inside php example " the next code - Original Message - From: "Petr Jůza" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 2:47 PM Subject: [PHP] displaying icons > Hi everybody! > Please, have somebody any experience with displaying icons (

[PHP] PHP- Smoething i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi friends thanks averybodoy for help me i used the solition of "Jason Bell" [EMAIL PROTECTED] thanks Jason with this > try this: > > mysql_connect("YOUR_DB_HOST","DB_USERNAME","DB_PASSWORD"); > mysql_select_db("DB"); > $query = "select * from info where FirstName='$FirstName' and > LastName='

[PHP] php- something that i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hey guys here is my code 4: mysql_connect() or die ("Problemas conectandose a la base de datos"); 5: $query="select * from info where FirstName='$FirstName' and 6: LastName='$LastName' and email='$email'"; 7: $result = mysql_db_query("users", $query); *8: $r=mysql_fetch_array($result); *

[PHP] PHP- something tha i don't understand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi again Here is the part of before code 8:$result = mysql_db_query("users", $query); 9:$r=mysql_fetch_array($result); 10: $count=$r["count"]; And the error message is Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on lin

[PHP] PHP- something i don't undestand

2001-07-17 Thread Yassel Omar Izquierdo Souchay
Hi I'm having trouble with this part of code 9: $result = mysql_db_query("users", $query); 10: $r=mysql_fetch_array($result); The error message is : Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on line 9. Please if some

[PHP] File Uploads and Get Method

2001-05-03 Thread Omar Elkassir
when i upload a file, the form method must be POST because when GET is used, it adds backslashes to the windows path name that already has backslashes, and this causes an error. for instance, the following snippet of code -- if ($add){ $newimage = "whatever.gif"; copy($image, $directory.