Search found 49 matches

by GedroX
Mon Jun 05, 2006 12:57 am
Forum: PHP coding => General
Topic: Adding static field value using INSERT INTO
Replies: 2
Views: 1272

Try that

Code: Select all

INSERT INTO `items` (`item`, `item_manu`, `stock_inventory`) 
SELECT DISTINCT `inventory_id` as 'item', `inventory_manu` as 'item_manu', 1 AS  `stock_inventory` FROM `inventory_gerber` ORDER BY 'item'
by GedroX
Fri Jun 02, 2006 12:26 am
Forum: PHP coding => General
Topic: What does this mean?
Replies: 1
Views: 1158

I'm not sure, but it could be made using mod_rewrite.
by GedroX
Fri Jun 02, 2006 12:24 am
Forum: HTML Basics
Topic: i need help
Replies: 1
Views: 2887

It's css class used for table cell td. For example, if you define in your *.css file (or in css island using <style> tags):

Code: Select all

td.td3
{
   color: red;
}
Your cell's text will become red.

P.S. Did you try to read some manual/ tutorial in HTML/ CSS???
by GedroX
Thu May 25, 2006 10:58 pm
Forum: PHP coding => General
Topic: anybody have ideas?
Replies: 0
Views: 894

What's your problem? We won't write whole system for you. Image
by GedroX
Thu May 25, 2006 6:43 am
Forum: PHP coding => General
Topic: problem with form!!!
Replies: 2
Views: 1119

Use window.opener object in popup window. You can sumit some form in parent (opener) window with selected list value or add that value in parent window address using window.opener.location.href to recieve it by $_GET parameter. AJAX is also solution to fill data smoothly.
by GedroX
Wed May 24, 2006 3:35 am
Forum: PHP coding => Mail
Topic: mailing from website...some error...
Replies: 4
Views: 3489

Read some comments in the bottom of that page. I think you will find the solution. I would use PEAR mail class in your place. Image
by GedroX
Wed May 24, 2006 2:27 am
Forum: PHP coding => Mail
Topic: mailing from website...some error...
Replies: 4
Views: 3489

Did you try to search? SMTP server response: 501 - http://www.experts-exchange.com/Web/Web ... 72502.html

Image
by GedroX
Mon May 22, 2006 11:34 pm
Forum: JavaScript
Topic: textarea control !!
Replies: 3
Views: 4074

Almoust the same: <textarea class="bginput" type="text" name="keywords" size="15" onFocus="if (this.innerHTML=='enter your text here ...') {this.innerHTML=''}" onBlur="if(this.innerHTML=='')this.innerHTML='enter your text here ...' ">enter your text here ...</textarea> http://www.humbleego.com/emoti...
by GedroX
Fri May 19, 2006 12:12 am
Forum: PHP coding => General
Topic: password() problem
Replies: 2
Views: 1199

Why in the first query there is field g_ifre, but in the seond - gifre? You really have 2 almoust similar field names or it's syntax error?

Firstly you must check whether these queries really works.
by GedroX
Mon May 15, 2006 5:38 am
Forum: PHP coding => General
Topic: Setting background image in a table cell using php
Replies: 4
Views: 2074

Tell me something, please! Why so many people puts variables in double quotes??? :o
by GedroX
Mon May 15, 2006 3:43 am
Forum: PHP coding => General
Topic: Setting background image in a table cell using php
Replies: 4
Views: 2074

I prefer xHTML and there is no attribute "background". :)
by GedroX
Sun May 14, 2006 11:21 pm
Forum: PHP General
Topic: xcord decimal(9.4)
Replies: 0
Views: 1789

PHP // $r - your number $r = round($r, 4); // leaves at most 4 decimals after point if (abs($r) < 1e5) { // Send value to mysql } else echo 'Number isn\'t correct!'; JavaScript function permitExpression(e, t, regexp) { if (typeof e == 'undefined') return false; if (typeof t == 'undefined') return fa...
by GedroX
Sun May 14, 2006 11:05 pm
Forum: PHP General
Topic: Sending a file to the server
Replies: 2
Views: 2037

That can't be done for security reason without installing any ActiveX component.
by GedroX
Sun May 14, 2006 11:01 pm
Forum: PHP coding => General
Topic: $SERVER info ~
Replies: 3
Views: 1538

It's $_SERVER["REMOTE_ADDR"] = 127.0.0.1 as I know.

Anyway, RTFM.
by GedroX
Sun May 14, 2006 10:59 pm
Forum: PHP coding => General
Topic: Setting background image in a table cell using php
Replies: 4
Views: 2074

Syntax for background image for td tag is

Code: Select all

<td style="background-image:url(picture1.jpg)">
by GedroX
Tue May 02, 2006 2:29 am
Forum: PHP coding => General
Topic: time problem?..javascript+php variable
Replies: 2
Views: 1356

You mean you want to store javascript variable into php variable and write it into database? WHY??? Anyway - if you can't (or don't want to) do it with submitting a html form with that input, you should use AJAX (or something AJAX-like - iframes, script objects..).
by GedroX
Tue May 02, 2006 2:24 am
Forum: PHP coding => General
Topic: Query Problem
Replies: 5
Views: 2004

IT'S NOT AN ERROR, IT'S NOTICE.
by GedroX
Mon May 01, 2006 10:57 pm
Forum: PHP coding => General
Topic: Question on files
Replies: 1
Views: 1067

I had no problems even with 90Mb file. You must check whether Apache has permission to folder where files are (try with some small files or switch error_reporting = E_ALL in php.ini), then check if calculations are not too complicated (script ends or shows that maximum execution time is exceeded?). ...
by GedroX
Mon May 01, 2006 10:47 pm
Forum: PHP coding => General
Topic: The same user can't log in at the same time.
Replies: 1
Views: 1130

You must create session table where session_id, user_id, expiration time and IP address are written. If user logs in, you check whether there are any session is created with that user_id and with another IP address. If there is and expiration time is gone, you delete this record and write new inform...
by GedroX
Mon May 01, 2006 10:40 pm
Forum: PHP coding => General
Topic: Undefine index
Replies: 3
Views: 1230

It's not an error, it's notice. It warns you that there is no element $_POST['frm_user']. Your query should look something like that: if(check_for_rows("SELECT user,passwd FROM ".$GLOBALS[mysql_prefix]."user WHERE user='" . (isset($_POST[frm_user]) ? addslashes($_POST[frm_user]) : '') . "' AND passw...
by GedroX
Fri Apr 28, 2006 10:26 pm
Forum: PHP coding => General
Topic: PHP/ Javascript? Or both?
Replies: 3
Views: 1502

by GedroX
Thu Apr 27, 2006 12:00 am
Forum: mySQL & php coding
Topic: Little Question before I begin :P
Replies: 5
Views: 2901

I would strictly recomend to use one database for all users and common tables for all users also. Use indexing and everything will be fine even for million users.

Do you want to save files in db also? I am not sure, but I would save them in filesystem and only name of the file in database.
by GedroX
Wed Apr 26, 2006 4:36 am
Forum: mySQL & php coding
Topic: Little Question before I begin :P
Replies: 5
Views: 2901

Tell something more about what are you planning to do, probably there will be more things to advice.
by GedroX
Wed Apr 26, 2006 1:40 am
Forum: mySQL & php coding
Topic: Little Question before I begin :P
Replies: 5
Views: 2901

1. Would suggest using PostgreSQL 2. Not expert, but I think that a) it doesn't change anything if db server is on one physical machine b) user privilegies are simplier to configurate for whole database not table 3. As I said, i'm not an expert. I think there is no difference - 1000 databases 1000 u...
by GedroX
Wed Apr 26, 2006 1:34 am
Forum: PHP coding => General
Topic: detecting browser
Replies: 7
Views: 1977

Use PHP5 or use

Code: Select all

if (preg_match('/mozilla/i', $_SERVER['HTTP_USER_AGENT']))
instead of

Code: Select all

if (stripos($_SERVER['HTTP_USER_AGENT'], "mozilla") !== FALSE)