Search found 14 matches

by serge
Fri Oct 25, 2002 4:21 am
Forum: mySQL & php coding
Topic: Space in table(mysql) : echo value on screen
Replies: 1
Views: 1184

Try to use odbc_result: $cx=odbc_connect('something'); $cur=odbc_exec($cx,"select [my own id],pass from table_name"); while(odbc_fetch_row($cur)){ $id=odbc_result($cur,1); $pass=odbc_result($cur,2); echo "id:$id,pass:$pass"; &#...
by serge
Fri Oct 25, 2002 4:12 am
Forum: PHP coding => General
Topic: Image cache problem
Replies: 0
Views: 973

May be that user uses bad-configured proxy server? Also try to set "expires" to "-1".

------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com
by serge
Mon Oct 14, 2002 12:00 am
Forum: PHP coding => General
Topic: I am facing Parse Error while inserting data
Replies: 2
Views: 1126

Maybe you have in "UserMaster" table more then two fields with "not allow nulls" option (e.g "id" field without autoincrement), or your variables $LName, $LPass includes single qoutes?

------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com
by serge
Thu Oct 03, 2002 1:43 am
Forum: PHP coding => General
Topic: I need some help altering a CGI program
Replies: 0
Views: 1331

I was there, but I saw many .cgi scripts. Please, make more specific task description with your script: ================ I have <smth>, which functions are <smth>. I need to modify <smth>. Here is the script(s) in attachment. ================ E-mail me similar message, I'll see what can I do. ------...
by serge
Thu Oct 03, 2002 1:24 am
Forum: PHP coding => General
Topic: Log needed
Replies: 5
Views: 1033

:roll: Apache modifies "standard out" sream for PHP script. So, <? echo smth; ?> will outputs "smth" into the body of HTTP-response. Where did you see "Apache consol" definition? Under Unix - Apache is a background daemon named "httpd". Unix has a lot of consoles (Console #1, ..., #4, Telnet #1,..#N...
by serge
Sun Sep 29, 2002 11:39 pm
Forum: PHP coding => General
Topic: Using foreach loop
Replies: 2
Views: 1251

Think about this code: echo "Values submitted via POST method:<br>"; while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) { echo "$key => $val<br>"; } Thanx ------------------------ With best regards, Serge Bulanov AlarIT Web developer, www.Al...
by serge
Sun Sep 29, 2002 11:27 pm
Forum: PHP coding => General
Topic: Form Info Won't Post To Database
Replies: 2
Views: 1005

:lol: Well, you try to insert strings into a table without qoutes?! $sql="INSERT INTO LISTINGS (city, street, price, bedrooms, baths, sqfeet, directions, description, picture) VALUES ('$city', '$street', '$price', '$bedrooms', '$baths', '$sqfeet', '$directions', '$description', '$pi...
by serge
Fri Sep 20, 2002 9:30 am
Forum: mySQL & php coding
Topic: Last row in a table
Replies: 7
Views: 3086

I repeat:
The task is to find LAST ROW
:!:
------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com
by serge
Fri Sep 20, 2002 9:23 am
Forum: mySQL & php coding
Topic: Last row in a table
Replies: 7
Views: 3086

..... mysql doesn't sort the table by itself, so getting the last record from it is almost completely random. Greetz Daan if there is no "ORDER" condition in query, mysql returns recordset in order it stored in database. mysql DOES NOT return the recordset the way it was entered in the database!!!!...
by serge
Fri Sep 20, 2002 7:59 am
Forum: mySQL & php coding
Topic: can i execute a SQL file with PHP?
Replies: 4
Views: 1946

For instance, sql script is "script.sql." U can use: exec('mysql < script.sql') in local variant or specify command line parameters (for help: 'mysql --h') - sever, username, password, etc in case of remote mysql server. ------------------------ With best regards, Serge Bulanov AlarIT Web developer,...
by serge
Fri Sep 20, 2002 7:41 am
Forum: mySQL & php coding
Topic: Last row in a table
Replies: 7
Views: 3086

..... mysql doesn't sort the table by itself, so getting the last record from it is almost completely random. Greetz Daan if there is no "ORDER" condition in query, mysql returns recordset in order it stored in database. So: ============================= while ($db_obj=mysql_fetch_object($result)) ...
by serge
Mon Sep 16, 2002 1:44 am
Forum: PHP coding => General
Topic: cookie question
Replies: 6
Views: 4118

You must only send headers before any characters out of <? ?> tags and before any output within <? ?> tags
------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com
by serge
Mon Sep 16, 2002 1:35 am
Forum: PHP coding => General
Topic: MSQL Error not a valid MySQL result resource
Replies: 2
Views: 2015

Database was not selected, or connection was not opened, or there is no records in recordset (use mysql_num_rows($result))
------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com
by serge
Mon Sep 16, 2002 1:30 am
Forum: PHP coding => General
Topic: Login only once
Replies: 6
Views: 2512

Yeah, it is hard to make it with PHP :roll: . You can do this using REMOTE_ADDR (IP). But it is easy to make it with Application object of ASP
------------------------
With best regards,
Serge Bulanov
AlarIT Web developer,
www.AlarIT.com