Re: [PHP-DB] Changing this php code to show multiple variables!

2004-10-20 Thread bbonkosk
Are you writting the flash side too? You could just return a multi-dimensional array? $result = mysql_query(); $count = 0; while($row = mysql_fetch_row($result) { $ret[$count] = $row; $count++; } return $ret; - Original Message - From: Juan Stiller [EMAIL PROTECTED] Date:

Re: [PHP-DB] Books

2004-10-18 Thread bbonkosk
In all seriousness... http://www.php.net/manual/en/ - and - http://dev.mysql.com/doc/mysql/en/index.html are increible resources, no real need to throw money out for the books... - Original Message - From: Huy Ton That [EMAIL PROTECTED] Date: Monday, October 18, 2004 1:19 pm Subject:

Re: [PHP-DB] mysql_query

2004-10-12 Thread bbonkosk
1. place your query string into a variable for easy dumping... i.e. $query = insert into obiskovalci (ime, priimek, ulica, hstevilka, pstevilka, posta) values('$ime', '$priimek', '$ulica', '$hstevilka', '$pstevilka', '$posta'); echo $query; (See if there are problems

Re: [PHP-DB] Empty query result

2004-07-26 Thread bbonkosk
Why not...?? if (!($queryResult = mysql_result($queryResult, 0))) { return 0; } - Original Message - From: Philip Thompson [EMAIL PROTECTED] Date: Monday, July 26, 2004 12:57 pm Subject: Re: [PHP-DB] Empty query result Pablo, Hello Philip, pse.. can you paste the

Re: RE: [PHP-DB] hi (php-SSH)

2003-07-29 Thread bbonkosk
I *think* I set this to you yesterday... http://www.cs.umd.edu/~arun/misc/ssh.html -Brad - Original Message - From: Suman Aluru [EMAIL PROTECTED] Date: Tuesday, July 29, 2003 12:32 pm Subject: RE: [PHP-DB] hi (php-SSH) could somebody tell me howto Generate the SSH key file to connect

Re: [PHP-DB] md5 question!

2003-06-24 Thread bbonkosk
They would be the same, they have to be. If you can de-crypt it, there has to be some method of validation. So, if someone choose the same password as you did, and you stored those in a DB as encrypted with md5, then they would look identical. So, you would know the other person's password.

Re: [PHP-DB] Image upload get file dimensions

2003-06-23 Thread bbonkosk
http://us4.php.net/manual/en/function.getimagesize.php Hi there everyone, In short, I use the following to upload an image to the server: $max_size = 40; if (is_uploaded_file($userfile)) { all works great, but what I want to do is store the file details in my MySQL DB, how can I

Re: [PHP-DB] Help with MySQL Logic

2003-03-03 Thread bbonkosk
What about two tables, one would have this: carID carCompany carPayload etc... the second this: position carID This table would be static and if a car was not present in certain conditions they would contain (-1) for the carID. Then finding an empty slot to place an incoming car should be

Re: [PHP-DB] getting client browser info

2003-01-20 Thread bbonkosk
Well, it is a global variable/defined by PHP write a script like this: ?php phpinfo(); ? and run it. This shoudl shed some light on the situation... -Brad Hello all, I need a quick script to get the client's browser make and model. ie 5 ns 4.7 etc. I've found some info in two books but

Re: [PHP-DB] airport codes db

2002-11-13 Thread bbonkosk
You should take advantage of this highly international PHP communicty and set up a simple PHP interface to a table like: Airport Code | Airport City | Airport Name | Country | etc.. And then ask people to go in there and insert whatever information they know especially from around their area.

Re: [PHP-DB] Pgsql Vs. Mysql

2002-11-11 Thread bbonkosk
Have you tried checking out the archives? I think this one would have a million plus one hits. Also has been discussed on Slashdot, as well as other forums. As far as difficulty to install, try it out. I would say it it relative as I'm sure a linux expert would say it is simple, whereas a

Re: [PHP-DB] Get a single result

2002-10-02 Thread bbonkosk
--- mysql_result($result_category_id, 0, $i); I think it is compaigning about the '$i' of course we don't know what that is set to, so cannot help much. I would say it might not like it when '$i' is equal to 0... :-) -Brad Hello guys. The scenery: I've got an array with some values

Re: [PHP-DB] POSTGRESQL PHP

2002-09-09 Thread bbonkosk
Gosh.. It could be a bunch of things. Maybe it requires a password, a username, is running on an alternate port, etc... Any more information you can provide to us would be helpful. Maybe echo out the output of pg_last_error()? -Brad I've installed MySQL and PostgreSQL on my XP. I'd like

Re: [PHP-DB] Image in Mysql db

2002-09-06 Thread bbonkosk
Read this: (Does a good job explaining uploads) http://www.php.net/manual/en/features.file-upload.php How I personally handle images in mysql, is not put the image in the database (Does it even allow this??) But just put the relative, or complete PATH to the image. So, your database would

Re: [PHP-DB] not a valid MySQL result

2002-09-06 Thread bbonkosk
Hello, It's always good practice to put some error detection in your code, i.e. $result = mysql_query($query) or die(mysql_error()); I think your problem is the mysql does not like your query, but you are not catching it until PHP tries to figure out the number of rows returned by the query.

Re: [PHP-DB] need an idea...

2002-09-06 Thread bbonkosk
You would probably need some API plugins to search other websites. I've seen some people open socket connections, open the site and read the raw HTML from the socket into a buffer and then parse out the information that way. I don't know if PHP was really developed for such a purpose?