8,966 Posted Topics

Member Avatar for Reliable

I think it's good to start with pen/paper. When starting a new application I always do this, so I can collect my thoughts on how to handle things. Sometimes it's a flow diagram, sometimes data, often just random thoughts. If it turns out to be useless, I cross it out, …

Member Avatar for pritaeas
0
79
Member Avatar for CoolGamer48

In my case I get my assignments from my supervisor. It's either a change in an existing program, or e.g. creating a new interface from scratch. In the first instance, you can change a lot of small things in a day. The latter will require more in depth study and …

Member Avatar for William Hemsworth
0
185
Member Avatar for rickya100

It's all here: [url]http://nl2.php.net/mysql_fetch_assoc[/url] [code] $sql = "SELECT DISTINCT year(date) AS 'year' FROM news "; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)) { echo '<p>' . $row['year'] . '</p>'; } [/code]

Member Avatar for rickya100
0
144
Member Avatar for abhi_tec

From the mysql help: DATEDIFF() returns expr1 – expr2 expressed as [b]a value in days[/b] from one date to the other. expr1 and expr2 are date or date-and-time expressions. Only the date parts of the values are used in the calculation.

Member Avatar for pritaeas
0
90
Member Avatar for iamlevicious

Is the SQL db the same, e.g. both mysql ? Can you use the same user, with the same password ? Is the PHP version the same, as of version 5, mysql extension is not automatically activated. Are you using other specific extension that are not yet installed ?

Member Avatar for pritaeas
0
106
Member Avatar for cosby
Member Avatar for Shanti C

[url]http://dev.mysql.com/doc/refman/5.0/en/mysql-indexes.html[/url] This may be a good start.

Member Avatar for pritaeas
0
109
Member Avatar for pedramphp

You could use double, but that may give rounding troubles. Instead you could use two bigints. One for the amount without decimal sign, and one to use as divider (1, 10, 100 ...).

Member Avatar for pedramphp
0
66
Member Avatar for epixca

Yes. You can do this with a .htaccess Unfortunately, I do not have the example with me, but I'm sure somebody here will also know.

Member Avatar for Shanti C
0
113
Member Avatar for kishor_darji
Member Avatar for Peppercat101

In the OnClick event there's Sender. That refers to the clicked button, so you can use [code] TButton(Self).Color := clYellow; [/code]

Member Avatar for johnybe
0
182
Member Avatar for php_noob
Member Avatar for Shanti C
0
81
Member Avatar for Dean-123

This is quite a server. If you haven't built any ftp server yet, I'd recommend starting with the basic functionality, instead of trying to create such an enterprise level application. What language did you have in mind ?

Member Avatar for pritaeas
0
21
Member Avatar for websurfer

Your $file variable will not be parsed inside single quotes. Either remove the single quotes, or replace them with double quotes. Wrong: $_FILES['$file']['name'] Correct: $_FILES["$file"]['name'] Correct: $_FILES[$file]['name']

Member Avatar for pritaeas
0
218
Member Avatar for vibhashin
Member Avatar for pritaeas
0
135
Member Avatar for invisal

Personally, I love the Jargon File's description best: [url]http://www.catb.org/jargon/html/introduction.html[/url]

Member Avatar for Ancient Dragon
0
388
Member Avatar for ryanf911
Member Avatar for scorpionz

Should you have use the mysql type DATETIME or TIMESTAMP instead of the ones you are using now, then you could have easily used these functions: [url]http://dev.mysql.com/doc/refman/6.0/en/date-and-time-functions.html[/url] More on the datatypes: [url]http://dev.mysql.com/doc/refman/5.0/en/datetime.html[/url]

Member Avatar for pritaeas
0
79
Member Avatar for mushi

Your first define seems to be incorrect. [code] define('TEXT_MAIN', 'WELCOME TO M M TECH. <b>Our aim to provide cheap products at the best prices.</b>.' . ' <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>About MMtech.com.au</b><br><br>We are an australian based company.' . 'Our office …

Member Avatar for pritaeas
0
100
Member Avatar for Andrew F.

Is your smtp.va.com server a different server ? If so, are you sure it supports open relay smtp. Normally you would need to authenticate to able to send email. If it is the same server try localhost instead.

Member Avatar for Andrew F.
0
196
Member Avatar for punithapary

You can use mysqli or pdo, both are documented on php.net. If you have PEAR installed you can use MDB or MDB2. More info on pear.php.net

Member Avatar for pritaeas
0
85
Member Avatar for JeremyReger
Member Avatar for pritaeas
0
111
Member Avatar for stevegoodmedia

See: Example #4 Sending HTML email Here: [url]http://nl2.php.net/function.mail[/url]

Member Avatar for isomillennium
0
86
Member Avatar for darmstrong

It is possible that no from address is set. That may be the cause of the server rejecting your message. You can check the message details for any headers.

Member Avatar for darmstrong
0
484
Member Avatar for motofoto
Member Avatar for pritaeas
0
907
Member Avatar for boomar

You can also use the mcrypt extension, but I'm not sure whether it supports your requested method of encryption.

Member Avatar for pritaeas
0
447
Member Avatar for servis

[code] $link = "<a href='reset-password.php?ui={$row['user_id']}&ak=$upassword'>Reset the Password </a>"; $update_password = mysql_query("update tbl_auth_user set user_password ='$upassword' where user_id = '{$row['user_id']}'") or die("Password reset failed"); [/code]

Member Avatar for nav33n
0
78
Member Avatar for heels

This should be your code. [code] $result = mysql_query($sql); if ( $result ) { echo "Contact successfully added."; } else { echo mysql_error(); } [/code] If this does not work, their may be something wrong in your sql statement.

Member Avatar for heels
0
79
Member Avatar for tiger86

type: php defensive programming in Google and look for the two links from php-classes.org. They'll show you some things about how to address these problems.

Member Avatar for pritaeas
0
103
Member Avatar for daniyalnawaz

[code] SELECT * FROM products WHERE product_id NOT IN (SELECT DISTINCT product_id FROM junction_table) [/code]

Member Avatar for varmadba
0
102
Member Avatar for shariana

On line 341 : [code] <?php echo ?> [/code] This statement is incomplete. Remove it, or put something after the echo.

Member Avatar for shariana
0
66
Member Avatar for nibbler

Do you want a single query where the values in your array are in the where ? Like this: [code] $values = implode(",", $your_array); $query = "SELECT * FROM table WHERE column IN ($values)" [/code]

Member Avatar for nibbler
0
160
Member Avatar for samarinder
Member Avatar for punithapary

[url]http://nl3.php.net/manual/en/function.mysql-connect.php[/url] [url]http://nl3.php.net/manual/en/mysqli-stmt.execute.php[/url] [url]http://nl3.php.net/manual/en/pdo.connections.php[/url] And if PEAR is installed you could use the MDB2 package as well.

Member Avatar for pritaeas
0
85
Member Avatar for forwardlookguy

Hi. I don't think a switch statement will make your code better or easier to read. In my (humble) opoinion you're better off creating a lookup table containing: plant, modelyearfrom, modelyearto, description.

Member Avatar for silviuks
0
134
Member Avatar for vamp.ali.ca

5.2.5 is not specifically mentioned. Search within the 5.1 manual. Are you looking for something in particular ?

Member Avatar for pritaeas
0
79
Member Avatar for Phaelax

when loading a page, the $_POST fields may be empty, so the code is not executed. Do you use: [code] if (! session_id()) session_start(); [/code] at the top of every page ? Or something else perhaps ?

Member Avatar for johnsquibb
0
154
Member Avatar for Gentleman

Do you mean you want to turn your PC into a server ? Then check out Wampserver or Xampp. This will install the necessary tools on your machine.

Member Avatar for Gentleman
0
143
Member Avatar for Haze

Check out the new browser Kirix Strata. It is designed to gather and store information from the internet. It's quite useful. ([url]http://www.kirix.com/[/url]) You could write a bot, but I think you can better put your energy in adjusting the scripts and let the browser do the work for you.

Member Avatar for pritaeas
0
78
Member Avatar for conandor

In case you don't read all comments on that page, you need to have the GD extension installed.

Member Avatar for helraizer
0
868
Member Avatar for nizuya
Member Avatar for hivenk
0
109
Member Avatar for tanha

You can add it to the file. Then you can use ini_get() to retrieve the value. Changing it is normally not possible, because it would require write access to your php.ini file. This comes with a lot of security issues. What exactly are you trying to accomplish, maybe there is …

Member Avatar for tanha
0
161
Member Avatar for tanha

Check out the documentation of your php.ini file. There you can enter the mail host, user, pass etc. which mail() should use. It should be possible e.g. to connect to gmail or another smtp host.

Member Avatar for tanha
0
114
Member Avatar for servis

Do you have to design your own templating system ? Otherwise, have a look at Smarty. It will cover all your templating needs. If you need to create your own, then you would have to define a begin and end marker in your template, and program the parser to copy …

Member Avatar for servis
0
107
Member Avatar for ryy705

You can specify parent='_top' with a link, that will open the page, replacing the current frames.

Member Avatar for ryy705
0
131
Member Avatar for majestic0110

I'd go to Playa Bonita near Santa Lucia, Cuba with three friends, playing cards, drinking rum and smoking cigars.

Member Avatar for sneekula
0
262
Member Avatar for ebabes
Member Avatar for narutosan_22
Member Avatar for pritaeas
0
36
Member Avatar for webguru07

Maybe you can output a javascript function that can redirect, and put the call in html when necessary.

Member Avatar for buddylee17
0
69
Member Avatar for CBnewbie

my guess is that the dataSet function should contain: $db_link = mysql_connect($host, $user, $pass); It looks incomplete.

Member Avatar for pritaeas
0
93

The End.