1,741 Posted Topics

Member Avatar for vssp
Member Avatar for itanacious

select idtransaction, customerID,debit, credit, (debit - credit) as balance, transDate from transaction where customerID='Cust001' ? Is that what you are talking about ?

Member Avatar for itanacious
0
82
Member Avatar for sneekula

I wish all these people(new programmers and sick people who aren't sick anymore) suffer from amnesia!

Member Avatar for sneekula
0
130
Member Avatar for azalia

All you need is [url=http://www.wampserver.com/en/download.php]Wamp.[/url] Just install wamp and it will configure apache, mysql and php for you :)

Member Avatar for ShawnCplus
0
89
Member Avatar for GreenDay2001
Member Avatar for Sulley's Boo
0
101
Member Avatar for cjk93

[QUOTE=jasimp;493747]Welcome! Only 50 with 500 mb. I find that hard to believe seeing as I can fit about 200 on 500 mb.[/QUOTE] It all depends on the bitrate of the mp3 file. @cjk93, Welcome to daniweb.

Member Avatar for nav33n
0
152
Member Avatar for victaylor

This thread was started more than an year ago and the OP, after starting this thread has never come back ! :-/

Member Avatar for summermusic
0
137
Member Avatar for hugvc333

DML or Data manipulation language is nothing but "How do you manipulate the data in a table". You can manipulate the data in these ways. 1. Selecting the data from the table (Select) 2. Inserting the data to the table (Insert) 3. Updating the data in the table (Update) 4. …

Member Avatar for nav33n
0
123
Member Avatar for kishou

How will it make any difference ? If someone hacks into your database, how will changing its name makes it 'unhackable' ? The hacker will access/delete the tables with the loopholes in your script. :)

Member Avatar for azalia
0
77
Member Avatar for neosomosis

:D Welcome to Daniweb ! I am sure you will learn a lot from this place !

Member Avatar for neosomosis
0
122
Member Avatar for peterye

[quote]Do need any software on my computer ?[/quote] Yes. You need a webserver (IIS or apache) , Php and mysql. To learn the basics, you can start [url=http://www.w3schools.com/php/php_intro.asp]Here[/URL]

Member Avatar for vssp
0
157
Member Avatar for patmagpantay

If you have a counter or id field in your table which is unique, you can do this easily. [code=php] <?php $connection=mysql_connect($dbhost,$dbuser,$dbpass); mysql_select_db($dbname); $query="select * from tablename"; $result=mysql_query($query); $max=mysql_num_rows($result);//count the total records in the table $random_members=array(); while(count($random_members) <= 5){ // until 5 members are selected $random=rand(1,$max);//generate random number if(! in_array($random,$random_members)){ …

Member Avatar for nav33n
0
118
Member Avatar for btajik
Member Avatar for crippendale

Hey ! System mechanic has this feature (i checked it sometime ago) to remove duplicate files. It checks the file size and also the dates to mark a file as duplicate. Welcome to Daniweb btw.

Member Avatar for crippendale
0
78
Member Avatar for Nick Evan

[QUOTE=briansmall;493000]Anyone care to define sub-human?[/QUOTE] Definitions of subhuman on the Web: * less than human or not worthy of a human being; "treated natives as subhuman"; "a subhuman spectacle"; "the subhuman primates" * unfit for human beings; "subhuman conditions of life". P.S It really doesn't make any difference if you …

Member Avatar for briansmall
0
137
Member Avatar for webbozz

Welcome to Daniweb. But i guess its against the community rules to promote your website this way :-/ !

Member Avatar for webbozz
0
111
Member Avatar for budiman

First, you fetch the data from the csv file using [url=http://in.php.net/fgetcsv]fgetcsv[/url]. Its returns the value as an array. Access the array element where the date is stored and do as scru has mentioned.

Member Avatar for nav33n
0
73
Member Avatar for majood123

[quote]Please post your problem in the correct Widows forum.[/quote] :D Bad typo there !

Member Avatar for zandiago
0
122
Member Avatar for bober
Member Avatar for topic
Member Avatar for mahcus
Member Avatar for KathyK2233

Umm.. I believe you are 'an instance' of [url=http://www.daniweb.com/forums/member214625.html]this[/url] user ? Why did you unearth a dead thread ? Well, I see a ban coming !

Member Avatar for nav33n
0
47
Member Avatar for nishanthaMe

Search google for pagination in php. There is already a code snippet [url=http://www.daniweb.com/code/snippet612.html] here[/url].. I guess you can modify it to suit your needs.

Member Avatar for nav33n
0
71
Member Avatar for AniWeb

I guess its looking in F:/billadelphia/Admin/images. Change the img src path to ../images/hdr.jpg . (You can right click the image placeholder and click on properties to check whether its path is correct)

Member Avatar for nav33n
0
109
Member Avatar for terminator7879
Member Avatar for damdirtyape

[QUOTE=Jicky;491756]ya the game is intresting[/QUOTE] Dude! What's with you and intresting ?

Member Avatar for nav33n
0
194
Member Avatar for kishou

Shouldn't it be sqrt((x2-x1)^2+(y2-y1)^2)=distance ? You are just taking the sqrt of $H and not $H + $D.

Member Avatar for nav33n
0
122
Member Avatar for dbayo
Member Avatar for fabzster

You can use, sum(ifnull(points,0), points_added). If the 1st expression in ifnull ie., points is null, it returns 0 and if its not null, it returns points value. I too dont know much about joins and related problems, but, this link might be useful. [url]http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html[/url]

Member Avatar for trudge
0
123
Member Avatar for Ancient Dragon

Mr. Peace, can you explain a bit more on jihad ? can you also explain why some terrorists call themselves jihaadis ? [url]http://en.wikipedia.org/wiki/Jihadi[/url] ?

Member Avatar for nav33n
0
545
Member Avatar for The Dude
Member Avatar for Jicky

Send it as a gift to your foe. He will be happy that hes getting "something" from his "enemy". He will then stop hating you :D

Member Avatar for wolterl
0
200
Member Avatar for sneekula

No matter who you choose, they all come under the same category of 'politician'. And according to me, a politician is one who cheats people and eat their money !

Member Avatar for sneekula
0
226
Member Avatar for jamesanddeanna4
Member Avatar for nav33n
0
80
Member Avatar for lydia21
Re: hi

Add sessions. If the user enters his username and password in the first page, add his username to the session(if he is a valid user). Then just add a condition,[code=php] if(! isset($_SESSION['username'])){ echo " You have to go back to page 1 and enter your username..."; exit }[/code]

Member Avatar for nav33n
0
96
Member Avatar for jtreyes

It would be easier for us if you give us the structure of the tables and also the query that you are using.

Member Avatar for mwasif
0
75
Member Avatar for hawisme000

If you have deleted rundll32.exe by mistake(or by virus attack), you will have problems w.r.t control panel. Try this. Put your windows xp cd in your cd rom, open command prompt and type the following. cd_rom_drive:\i386\rundll32.ex_ %Systemroot%\rundll32.exe (Eg. d:\i386\rundll32.ex_ %Systemroot%\rundll32.exe , if D is your cd rom drive name) It …

Member Avatar for nav33n
0
109
Member Avatar for emmanueloladele

database php formatted ? Why not print the values using a table ? :-/

Member Avatar for emmanueloladele
0
87
Member Avatar for bhupents

What is the error that you are getting ? I dont think you can use something like [inlinecode]User Name:<input type=text name=form[frstname]> Email:<input type=text name=form[email]>[/inlinecode] Edit: My mistake. you can specify an array as a name.

Member Avatar for nav33n
0
120
Member Avatar for kings

[URL=http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php]This[/URL] might help.

Member Avatar for nav33n
0
69
Member Avatar for emarkus

[quote]this is your error dude: $sql = "SELECT * FROM products;"; change that one to this one: $sql = "SELECT * FROM products";[/quote] It doesn't matter if you have a ; in your query.

Member Avatar for black_ip82
0
118
Member Avatar for kings

Umm..what's so difficult about it ? I hope you know the query to fetch the records from the table ? [code=php] $subject="Test mail"; $from="From : yourname@domain.com"; $query="select * from tablename"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $email=$row['email']; $name = $row['name']; email($email,$subject,$message,$from); } [/code]

Member Avatar for kings
0
71
Member Avatar for kings

I dont see a closing brace of [inlinecode]if (isset($_REQUEST['submit'])) [/inlinecode] . $username and $password is not declared. And, [inlinecode] $from="yourname@domain.com"; [/inlinecode] should be [inlinecode]$from = "From: [email]yourname@domain.com[/email]";[/inlinecode]

Member Avatar for kings
0
117
Member Avatar for hemgoyal_1990
Member Avatar for nav33n
0
292
Member Avatar for vardhani
Re: Form

[quote]Asumming you have a hidden text area with the id "txarea" [/quote] How can you have a hidden text area ?

Member Avatar for vssp
0
120
Member Avatar for gooky9

[code=php] <?php $date1="2007-11-04"; //date 1 smaller than the 2nd date $date2="2007-12-06"; $difference= (strtotime($date2) - strtotime($date1))/(24*60*60); print $difference; ?> [/code] Hope it helps.

Member Avatar for gooky9
0
133
Member Avatar for simmy7

[code=php] <?php $reg = '/(&.*?;)/is'; $data="&reg; This is a registered company. &nbsp; &gt; &lt; is replaced by a whitespace."; $rep=""; echo preg_replace($reg,$rep,$data); ?> [/code] This is an example in php. $reg is the pattern that you want to search for. $data is a string which you want to search for …

Member Avatar for SheSaidImaPregy
0
64
Member Avatar for dgarbarino

[url]http://www.daniweb.com/forums/thread99569.html[/url] Thats a simple example on how to sort records based on a column. And about the password, if you are storing the username/password in the database, ask the user to enter username and password. Check if that username & password are in the table. If true, then redirect the …

Member Avatar for jenishkottaram
0
93
Member Avatar for jay64

[quote]...for future reference, never declare a prefix, always leave this option blank.[/quote] May be they are talking about the prefix while creating a database. For example, if your host is somehost, it will add prefix somehost_databasename while creating a database. I guess thats what they mean by that.

Member Avatar for jay64
0
1K
Member Avatar for amylawson

The End.