[PHP-DB] Images on-fly

2003-12-03 Thread Dejan Dujak
Hallo People, I have one problem with creating images on-fly. Therefore I created 2 files: 1. resize_image.php with the following ?php if (!$max_width) $max_width = 150; if (!$max_height) $max_height = 100; $size = GetImageSize($image); $width = $size[0]; $height = $size[1]; $x_ratio =

[PHP-DB] I 'am not so goooood with php....

2003-12-03 Thread Dejan Dujak
What I'am doing wrong??? I just don't know. All I will like to do is for every Odd record create a new row(TR) with new TD. If record is Even in record set start second td en close /td en close row(/tr). ?php $tel = 1; $dbrows = mysql_num_rows($rsSubGroup); ? ?php do { ?

[PHP-DB] character problem with mssql

2003-12-03 Thread Gamze Baaran
Hi; I use php and mssql. I have got a character problem. I must use turkish chracters. When I select datas from database it works true and I can see turkish characters but when I want to insert new datas to database it set wrong character. For example characetrs look like ? How can I solve this

[PHP-DB] selecting a constant or label in php

2003-12-03 Thread Jon Davis
Sorry for another newbie question, I'm learning. In Sybase I can do: select COMM_REGIONID , count(1) from COMM_REGIONID where PHYSICAL_ID is null select COMM_TKGRP , count(1) from COMM_TKGRP where PHYSICAL_ID is null I get parsing errors when putting it in this: $result = sybase_query(select

RE: [PHP-DB] selecting a constant or label in php

2003-12-03 Thread Jon Davis
COMM_REGIONID and COMM_TRKGRP are not columns in the tables. They are the actual table names. I want the count of the PHYSICAL_ID where it is NULL. I need to do this for multiple table so I want to hardcode the tablename and then have the count: --- COMM_TKGRP

[PHP-DB] Remote DB Connection

2003-12-03 Thread Omelin Morelos
Hi people, I have 2 servers , i need to connect to 1 remote mysql server ,i am using the normal : @mysql_connect ('ipaddres-server2', 'DBName', 'DBPwd') ; Is their anything else I need to consider to connect ? , Thank you -- PHP Database Mailing List (http://www.php.net/) To

Re: [PHP-DB] Remote DB Connection

2003-12-03 Thread Richard Davey
Hello Omelin, Wednesday, December 3, 2003, 6:05:52 PM, you wrote: OM @mysql_connect ('ipaddres-server2', 'DBName', 'DBPwd') ; OM Is their anything else I need to consider to connect ? , The server must allow it :) other than that, not really. -- Best regards, Richard

[PHP-DB] calculations using variables in html table cell

2003-12-03 Thread Christopher Adams
I am generating html tables dynamically. Each table has multiple columns and various calculations need to be done on each column and displayed at the bottom of the column. I am including the code from one table below. The $tablerow generates the table data and the $tablefooter generates the rows

Re: [PHP-DB] calculations using variables in html table cell

2003-12-03 Thread Ignatius Reilly
If you have to build complex, dynamic tables, do yourself a favour and use a class that will allow you to feed directly arrays of numbers. I use PEAR HTML_Table, which is great and easy to use. You will have recouped the investment of learning the class after about one hour. HTH Ignatius

Re: [PHP-DB] I 'am not so goooood with php....

2003-12-03 Thread Matt Matijevich
** Low Priority ** snip ?php $tel = 1; $dbrows = mysql_num_rows($rsSubGroup); ? ?php do { ? ?php if (($tel % 2) 0) {echo tr; echo td; echo $row_rsSubGroup['name']; echo /td; if $tel == $dbrows{ echo /tr; } }

[PHP-DB] Addslashes

2003-12-03 Thread Ng Hwee Hwee
hi all, i'm really buffled by what i got and would appreciate any help possible! although i addslashes and stripslashes, i still get a backslash ( \ ) character infront of a single inverted comma ( ' ) and also whenever an amberscend ( ) appears... please help! thanx thanx.. for example: in

[PHP-DB] Re: Addslashes

2003-12-03 Thread Justin Patrin
It's the magic quotes setting. Try setting magic_quote_gpc to off. Also, try turning magic_quotes_runtime off. Ng Hwee Hwee wrote: hi all, i'm really buffled by what i got and would appreciate any help possible! although i addslashes and stripslashes, i still get a backslash ( \ ) character