1,741 Posted Topics

Member Avatar for Hafsoh
Member Avatar for david.crawford
Member Avatar for tdm850rider
Member Avatar for renaad
Member Avatar for jimbull69

huh. Dell users are having alot of problems nowadays! Welcome to Daniweb!

Member Avatar for zandiago
0
28
Member Avatar for Machorichard
Member Avatar for dani190

[code=php] CREATE TABLE test ( id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , name VARCHAR( 100 ) NOT NULL , address VARCHAR( 100 ) NOT NULL ) ENGINE = InnoDB [/code] If that's my table, and I have a form with 2 fields name and address, this is …

Member Avatar for dani190
0
364
Member Avatar for Vai

You forgot to post index.php. But anyway, here is a suggestion for you. Dont have any html tags, or echo statements (not even a blank space) before calling header function or before starting a session. I guess, in index.php, you are echoing something or you have html tags in it. …

Member Avatar for nav33n
0
119
Member Avatar for Yuexuan

I have shown you how to format the array in the way you need(in the other thread). You should try this yourself by analysing the code I gave you earlier. Unless you make an attempt, you wont learn anything. (This is just like the other format. So, I dont see …

Member Avatar for nav33n
0
75
Member Avatar for Yuexuan

[code=php] <?php //connect //select db $arrData=array(); $query="SELECT SUM(RAW_AMOUNT) as TotalRawAmount, SUM(FG_AMOUNT) as TotalFGAmount, SUM(WIP) as TotalWIPAmount, UPLOAD_DATE FROM raw_fg_sum GROUP by UPLOAD_DATE"; $result=mysql_query($query); $arrData[0][0] =""; $arrData[1][0] = "TotalRawAmount"; $arrData[2][0] = "TotalFgAmount"; $arrData[3][0] = "TotalWIPAmount"; $i=1; while($row=mysql_fetch_array($result)){ $arrData[0][$i]=$row['UPLOAD_DATE']; $arrData[1][$i]=$row['TotalRawAmount']; $arrData[2][$i]=$row['TotalFgAmount']; $arrData[3][$i]=$row['TotalWIPAmount']; $i++; } print_r($arrData); //$arrData will have the array in the …

Member Avatar for nav33n
0
119
Member Avatar for vwrak
Member Avatar for kings

I would validate on both client side and server side(because sometimes, the user might have disabled the javascript!)

Member Avatar for OmniX
0
111
Member Avatar for lydia21
Re: help

[url]http://www.daniweb.com/forums/thread104675.html[/url] ??

Member Avatar for lydia21
0
87
Member Avatar for peter_budo
Member Avatar for nomadhacker

[code=mysql] select * from reviewtable where reviewdate >= date_sub(NOW(), INTERVAL 24 HOUR) order by productrating desc [/code] I think this should work. I am selecting only those records where reviewdate is greater than (present-time - 24 hours). P.S. I haven't tested it. But I think it will work.

Member Avatar for nav33n
0
82
Member Avatar for hooray

The problem is with the file db.php . When you are using header() function, you shouldn't output anything to the browser. ie., you shouldn't echo anything before header function. You shouldn't even have html tags. Check your db.php. Cheers, Nav

Member Avatar for nav33n
0
117
Member Avatar for GeKKeR
Member Avatar for tmaunga
Member Avatar for Venom Rush

[code=php] <?php if(isset($_POST['submit'])) { if($_FILES['fileupload']['name']==""){ echo "Empty"; //no file was uploaded } //continue with rest of the operation.. } ?> <html> <body> <form name="upload" method="post" action="upload.php" enctype="multipart/form-data"> <table> <tr><td> <input type="file" name="fileupload"> </td></tr> <tr><td> <input type="submit" name="submit"> </td></tr> </table> </form> </body> </html> [/code] This will do.. :)

Member Avatar for Venom Rush
0
227
Member Avatar for crzycm16
Member Avatar for affiliate7
Member Avatar for salim hussain
Member Avatar for nvaz
Member Avatar for Shailesh25

Yes, you can. But make sure you are connecting to the database before executing any query.

Member Avatar for nav33n
0
76
Member Avatar for micatex

Welcome to Daniweb! Can you show us your script so that we can make out where you are going wrong ?

Member Avatar for nav33n
0
123
Member Avatar for eranga262154
Member Avatar for eranga262154
0
205
Member Avatar for mark2326l

Simple. You do it this way. [code=php] <?php ..... if($row_rsFrontPage['ImagePath']=="") { $class="noclass"; } else { $class="applyclass"; } ?> <p class="<?php echo $class; ?>">blah blah blah... </p> [/code] Hope that helps. Naveen

Member Avatar for nav33n
0
93
Member Avatar for gpdrums

Umm.. You can have 3 tables. One to store all the registration information. Second to store the login information and third, to store the path of the files for every user. In registration table, you can have firstname, lastname, loginname, password, confirmpassword, email, blah blah blah. This will only be …

Member Avatar for nav33n
0
81
Member Avatar for dani190

[QUOTE] So i have about 300 students that all need to be placed in option statements (html). I need these names then put into a drop down menu for students to choose. [/quote] If you have these 300 students info in a table, then just fetch their info by using …

Member Avatar for mad2001_in
0
195
Member Avatar for ewfitton
Re: Bill

umm.. You need to post your question [url=http://www.daniweb.com/forums/forum51.html] here[/url]. Welcome to Daniweb btw!

Member Avatar for zandiago
0
13
Member Avatar for _tim
Member Avatar for alcont
Member Avatar for zandiago
0
18
Member Avatar for vanguns
Member Avatar for mgn2683
Member Avatar for tmaunga

[url]http://www.devarticles.com/c/a/PHP/Use-PHP-to-Create-Dynamic-pdf-Files/[/url]

Member Avatar for nav33n
0
38
Member Avatar for Xsimulator.net

lol.. Xsimulator.net, What did you have (heroine/coke/weed/?!?), while starting this thread ?

Member Avatar for Estella
0
311
Member Avatar for amithasija
Member Avatar for Estella
0
117
Member Avatar for Venom Rush

[code=mysql]SELECT eid, title, SUBSTRING(content, 1, 200), thumb_image FROM diary ORDER BY eid DESC LIMIT 3 [/code] :) Now, gimme my virtual high five!

Member Avatar for nav33n
0
904
Member Avatar for dilake
Member Avatar for Venom Rush

Umm.. I am not sure about preg_replace. But you can do the same with str_replace! [code=php] <?php $txt="' is a single quote \" is a double quote.I want to replace ' with ' and \" with \" "; echo "Actual text: " .$txt."<br />"; $x=str_replace('"','\"',str_replace("'","'",$txt)); echo "Replaced text: ". $x; …

Member Avatar for Venom Rush
0
214
Member Avatar for Cente

You should [url=http://www.w3schools.com/flash/flash_inhtml.asp] embed [/url] your flash file in your html page.

Member Avatar for Cente
0
112
Member Avatar for lydia21
Re: help

Say, for example, the user enters 10 in the first screen. On the next screen, you can do something like, [code=php] $textboxes_number=$_POST['number']; //the number of textboxes the user wants $textboxes_number=10; //say user enters 10 in the previous screen echo "<form name=form method=post action=somepage.php>"; for($i=0;$i<$textboxes_number;$i++){ echo "<input type='text' name=txt$i>"; } echo …

Member Avatar for lydia21
0
290
Member Avatar for zandiago
Member Avatar for Ene Uran
0
206
Member Avatar for mrynit
Member Avatar for larin83109
Member Avatar for xilver
Member Avatar for tiwlip
Member Avatar for ericfromandys
Member Avatar for zandiago
0
42
Member Avatar for raminm
Member Avatar for Venom Rush

[QUOTE=Xsimulator.net;510222]y[/QUOTE] :S Dude! is everything ok ? This is the 2nd time you are saying something which doesn't make any sense.

Member Avatar for Venom Rush
0
140

The End.