Re: [PHP] = 0 and = 0
Hello Robin, Very simple. :) RC ? $qty = 0 ; if ($qty != test) print qty is not test; ? $qty is string, so PHP compares 0 with test char by char. chr(0) isn't equal t. RC ? $qty = 0 ; if ($qty != test) print qty is not test; ? In this case $qty is integer value, so PHP tries to convert test to integer value [ integer(test) == 0], so last condition result is FALSE. Is it clear? RC Thanks, RC Robin -- Best regards, Vitali Falileev mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php and javascript
Hello Karl, Publish your code, plz. We are not wizards. :) 27 July, 2001, 14:08:05, you wrote: KP Does anyone know how to pass php variables to a javascript for processing. KP I have a DHTML menu system that requires variables be attached to the url KP contained within it. Using echo does not print the variable to the url. KP Is there another way? -- Best regards, Vitalimailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 100MÐéÄâÖ÷»ú+¹ú¼ÊÓòÃûÖ»Ðè350Ôª£¡
Ìëÿ, çàòðàõàëè!!! Êèòàéöû, ÿïîíöû, àðàáû è ïðî÷èå èåðîãëèôíûå óðîäöû. Ó÷èòå ðóññêèé, à åñëè íå ìîæåòå, õîòÿ áû àíãëèéñêèé. Íàðîä êòî ìîæåò ýòîãî ï@#$ðà âûùåìèòü, ñòóêíèòå ïî áàøêå ïëç. Sorry for flame. Ï ×𾴵Ŀͻ§£¬ÄúºÃ£¡ Ï ÎÒÃÇÊÇÖйúÓòÍøhttp://www.163asp.net/ Ï £¬±¾ÍøÕ¾Ö÷ÒªÊÇΪÄúÌṩÓòÃû×¢²á£¬×âÓÃÐéÄâÖ÷»ú,ÍøÒ³ÖÆ×÷·þÎñ¡£ÈÕÇ°ÎÒÃÇÍƳöÌػݼÛ1+1Ìײͣ¬¼ Ï ´×âÓÃ100MÐéÄâÖ÷»ú(350Ôª/Äê/Ì×)¿É»ñµÃÃâ·ÑÔùË͵Ĺú¼ÊÓòÃûºÍ5¸ö10MµÄÓÊÏ䣬»ú»áÄѵò»ÈÝ´í¹ýŶ£¡ Ï ÒÔÏÂÊÇÎÒÃǵķþÎñ¼Û¸ñ: Ï Ó¢ÎĹú¼ÊÓòÃû100Ôª/¸ö/Äê Ï ¡¡ÖÐÎĹú¼ÊÓòÃû300Ôª/¸ö/Äê Ï ¡¡ Ó¢ÎĹúÄÚÓòÃû300Ôª/¸ö/Äê Ï ¡¡ ÖÐÎĹúÄÚÓòÃû280Ôª/¸ö/Äê Ï ¡¡ .ccÓ¢ÎĹú¼ÊÓòÃû380Ôª/¸ö/Äê Ï ¡¡ 100MÐéÄâÖ÷»ú300Ôª/Äê Ï ¡¡ 200MÐéÄâÖ÷»ú500Ôª/Äê Ï ¡¡ 20Óû§¹²Ïí·þÎñÆ÷2000Ôª/»§/Äê Ï ¡¡ 10Óû§¹²Ïí·þÎñÆ÷3000Ôª/»§/Äê Ï ¡¡ µ¥Óû§¶ÀÏí·þÎñÆ÷2Ôª/»§/Äê Ï ¡¡ ÆóÒµµç×ÓÓÊÏä50Ôª/¸ö/Äê Ï ÍøÒ³ÖÆ×÷:20¸öÒ³ÃæÒÔÄÚ1900Ôª,°üÀ¨Ò»¸öÓòÃûºÍ100MÐéÄâÖ÷»ú Ï ÁªÏµµç»°£º0592-527 ´«Õ棺0592-2220123 Ï ÖÂ Ï Àñ£¡ ÏÏÃÃÅÖÐ×ÊÔ´ÍøÂç·þÎñÓÐÏÞ¹«Ë¾ Ï [EMAIL PROTECTED] -- Best regards, Vitalimailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] weird behaviour with (Z = Z)
Hello Christian, 10 July, 2001, 18:44:53, you wrote: CD Z = Z is true right?? Yes, right, but Z = Z and your code makes next iteration, then $letter = AZ and AZ is LESS that Z, because A Z. :) CD then why this weird thing happens when I have this code: CD for($letter=A; $letter=Z ; $letter+) CD echo $letter; CD it should output A B C D E . W X Y Z right? CD but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. CD why? -- Best regards, Vitalimailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping with variables
Hello Tarrant, Wednesday, May 16, 2001, 12:12:43 PM, you wrote: TC ?php print( You have asked to purchase $dvd $video $cd 's - Thank you) ? TC This prints out, You have bought 16 - Thank you for example, see the TC problem? How do I get it to print the variable name not just it's value? Use ?php print( You have asked to purchase . ($dvd ? DVD: $dvd :''). ($video ? Video: $video :''). ($cd ? CD's: $cd :''). - Thank you) ? -- Best regards, Vitalimailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]