[PHP] Re: Forms and Netscape -- spacing problem -- Help!
> form tag in NS (4x - 6x) there is some additional space The form tag is a block level tag, thus white space will be appended after the closing tag. To avoid this, I use a style on the form element. I do this for both IE and Navigator, in different ways, as I've found they seem to react differently to the required CSS. For Navigator, in the style sheet, .form { display: inline; } and in the HTML, and for IE, in the style sheet, form { display: inline; } and in the HTML, I prefer using PHP to send the correct style and HTML dependent on the user agent, but you can incorporate the two - in the style sheet, form, .form { display: inline; } and in the HTML, and IE will ignore the bits it doesn't do, as will Navigator. Hope that helps. Regards James -- 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]
[PHP] Re: Max int value of char field? How to find...
> How can I find the highest integer value in a result set like: > 1 > 10 > 11 > 2 > 3 > a > ab > abc If the table isn't huge, you could pull back all the values and try PHP's natsort() function. That will apply a natural sort algorithm, ordering the numbers as you expect, but I'm unsure whether the character values will be higher or lower than the numbers. Regards James -- 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]
[PHP] Re: Forms and Netscape -- spacing problem -- Help!
> if your form is inside a table .. hide the tags In my experience, this just "moves" the closing whitespace to the end of the table (just like if you insert text incorrectly between a and a ). The previous post I've made using the "display: inline;" style is in fact W3C compliant. -- 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] Re: Forms and Netscape -- spacing problem -- Help!
> I gave it a try > NN4.7 and 6.1 both ignored the 'display: inline' css in my test There was actually an error in the HTML I posted, try this: 1. form tag outside of cell 2. form tag outside of cell 3. form tag outside of cell 4. form tag outside of row 5. form tag outside of row 6. form tag outside of row 7. inline css 8. inline css on span and form 9. inline css on span and form 10. inline css The HTML above works in IE based on the CSS applied to the form tag, in Netscape based on the CSS applied to the bounding span. > It may be compliant but it doesn't really work as well as hiding the form tags >between table rows or cells. I actually found that the code you posted doesn't work at all, I'm using Navigator 4.74, and each table with form elements embedded simply pushes the block element to the end of the table, as described in my previous post. The HTML I've posted here actually shows whitespace between 1&2, 2&3, 3&4, 4&5, 5&6 and 7&8. No whitespace appears between 6&7, 8&9, 9&10. Is this what you see? IE shows no whitespace anywhere. No whitespace between 6&7 throws me a little, considering there is whitespace between all other blocks above, but the absence of whitespace between 8&9 and 9&10 is what I was originally trying to describe. -- 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]
[PHP] re: socket question
There is some source code on the php.net site which captures the credits with output buffering and then uses then in the page. Once you have the data in a variable you can do what you like to it. if (function_exists('ob_start')) { ob_start(); phpcredits(); $credits = ob_get_contents(); ob_end_clean(); } Maybe that will do the trick. -- 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] MSSQL 7.0 and PHP
> varchar only accepts values up to 255 (so does char) I've found this too .. MS-SQL probably ceil()s the parameter in the table create statement to 255 without throwing an error. Have a quick look at the column you've created and you'll probably find it's a char(255). > To get larger than that you have to use 'text' Sounds right to me. Regards James -- 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]