492 Posted Topics

Member Avatar for just_me
Member Avatar for just_me
0
98
Member Avatar for web3

Rather than using [code] $date = date("d-m-Y"); [/code] Save the date as a timestamp in an int(11) field, do not save dates as DATETIME, DATE or any other date specific SQL type.. Since this will be a number, you can then sort by the date column in descending order to …

Member Avatar for Will Gresham
0
111
Member Avatar for The Mad Hatter

[QUOTE=BestJewSinceJC;1007838]The only problem I really have with Vista is the annoying, consistent 'do you really want to do X activity' messages and the fact that it hogs my RAM (which isn't a problem on my 4GB computer I now have). All I use is ad-aware and I have never had …

Member Avatar for Evenbit
-5
2K
Member Avatar for severman
Member Avatar for severman
0
137
Member Avatar for zaish

Assuming the server is running Apache, specific rewrite questions would be best posted in the Apache forum: [url]http://www.daniweb.com/forums/forum33.html[/url] But take a look at this: [url]http://corz.org/serv/tricks/htaccess2.php[/url]

Member Avatar for Will Gresham
0
312
Member Avatar for tarunkhatri

Your problem will be this line: [code] <form action='manager_employee_select.php?proc_employee_id=<?php echo $_POST['proc_employee_id']; ?>' method="POST">[/code] This will put the proc_employee_id from the previous form as in the URL for this forms action.

Member Avatar for poojamakhija
0
95
Member Avatar for Phil++

This should work... [code] mysql_query("CREATE TABLE IF NOT EXISTS `table_name` ( `field_name` int(11) NOT NULL AUTO_INCREMENT, `field_name` varchar(65), ..., ..., ..., PRIMARY KEY (`field_name`) )"); [/code]

Member Avatar for forzadraco
0
124
Member Avatar for gpss

Use a while statement, like: [code] $query = mysql_query(query here...); while($result = mysql_fetch_assoc( $query )) { echo "<tr><td>{$result['column_title']}</td></tr>" } [/code] That will output one line for each record retreived. Adjust the echo to your needs obviously

Member Avatar for gpss
0
113
Member Avatar for Facte

Try this: [code] $q6 = "SELECT * FROM banners WHERE lang='{$_SESSION['lang']}' AND section='top' ORDER BY RAND() LIMIT 1"; [/code]

Member Avatar for Facte
0
145
Member Avatar for muralibobby2015
Member Avatar for muralibobby2015
0
79
Member Avatar for gpss

[code] function mapRefresh(timeoutPeriod) { setTimeout(load(),timeoutPeriod); } [/code] Then add mapRefresh(10000) to the Onload event.

Member Avatar for Will Gresham
0
117
Member Avatar for artdezign
Member Avatar for web3

Use sessions, when a user signs in, create a session: [code] // Put this at the top of the page session_start(); // Process the login then do this: $_SESSION['logged_in'] = 1; [/code] Then only allow access to the page to users who have an active session: [code] if(isset($_SESSION['logged_in'])) { // …

Member Avatar for Will Gresham
0
68
Member Avatar for web3

Couple of issues, your script does not provide a response for if the username or password is blank, also there are redundant lines of code. Another thing, you should be hashing the passwords (MD5 at a minimum) I will rework the code for you and post up a possible solution. …

Member Avatar for Will Gresham
0
184
Member Avatar for alexjbriggs

Take a look at the FAQ here: [url]http://www.daniweb.com/forums/thread191031.html[/url]

Member Avatar for network18
0
96
Member Avatar for glycerine

Couple of things. 1. Why are you sending unchecked POST values to the database? That is just asking for trouble. Look at SQL injection. Make sure that the values you receive are the ones you expected, that numbers are numbers etc... 2. Try running the query without single quotes on …

Member Avatar for Will Gresham
1
180
Member Avatar for web3

Make a seperate page (profile.php perhaps) and use the unique field in the database (Usually an ID of some sort) in the query string, for example, profile.php?user=usersID. In the profile.php page, pull the required data from the database and display it as required.

Member Avatar for Will Gresham
0
133
Member Avatar for Reliable

Its not needed there, there are a couple of uses for the braces, such as variable variables, but I believe the most common use is to include array vars in a string. For example: [code] echo "My name is {$_GET['name']}<br />"; [/code] instead of this: [code] echo "My name is …

Member Avatar for Will Gresham
0
82
Member Avatar for Jayakrishnan_gk

Add this code to the head of your document (Or in an external file if you use one) [code] <script type="text/JavaScript"> function checkValue() { if(document.getElementById('my_field').value == "default_value") { document.getElementById('my_field').value = ""; } } </script> [/code] Change my_field and default_value to the relevant values for your script. Then add an onkeypress …

Member Avatar for Jayakrishnan_gk
0
136
Member Avatar for InsaneVr6

In delete.php do you actually have a mysql_connect statement? From your code it would seem not...

Member Avatar for InsaneVr6
0
112
Member Avatar for galaxyfaraway

Surely having a Masters Degree at all is a worthy achievement...

Member Avatar for Will Gresham
0
164
Member Avatar for 123468743867143

For the title, do this in each file: [code=php] define ("PAGE_TITLE", "Title for the Page"); [/code] And in common.inc put something like: [code=php] <title><? echo PAGE_TITLE; ?></title> [/code] For the Meta tags, you could put together an array on each page like follows: [code=php] $page_meta_tags[] .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" …

Member Avatar for Eng.h
0
456
Member Avatar for Will Gresham

Let this be a warning to any loud mouth drunk yobs... The next person you start on may not be as easy as you think :D [url]http://www.mirror.co.uk/news/top-stories/2009/10/07/we-re-very-cross-cross-dressers-115875-21728860/[/url] Good to see someone stand up to the violent youths :)

Member Avatar for GrimJack
1
143
Member Avatar for smvec

What parse error? It will usually give you something to go by, e.g. 'expecting x' or 'unexpected x'

Member Avatar for smvec
0
89
Member Avatar for MosaicFuneral
Member Avatar for AdventDeo

Since HTML is client side, it cannot directly access a PHP script, so you will need to send a request to a PHP script on your server, which can be done either by reloading the page, sending the details to PHP in the query string or by POST. Or you …

Member Avatar for AdventDeo
0
218
Member Avatar for santhanalakshmi

If you mean 'how do I get a domain such as [url]www.daniweb.com[/url]' you will need to pay for and register it with a company who provide domains, and Google will give you hundreds. And as network18 said, if that is what you mean, PHP forum is not the place for …

Member Avatar for Will Gresham
-1
92
Member Avatar for mahgobb

Currently I play no instruments, although in the past I played Brass instruments, mainly the Tuba and Baritone [horn]. I was let loose on both a guitar and a piano in the past, and I basically murdered them... the sounds produced could not be classed as music. If I go …

Member Avatar for Lardmeister
1
459
Member Avatar for quicktpgo

I don't have much choice about the hours I am awake, as I work the graveyard shift (9:30PM - 9:30AM) so I guess I would have to say nights :)

Member Avatar for Lardmeister
0
158
Member Avatar for matthewl

For me, 2. Although you might want to rethink the thread name, I am not sure how you can use multiple computers [I]simultaniously[/I] at a [I]different[/I] time.... :P

Member Avatar for jbennet
0
301
Member Avatar for vmanes
Member Avatar for sugumarclick

Please search first, this has been covered numerous times and is information readily availble on google. [url]http://uk2.php.net/manual/en/function.mail.php[/url]

Member Avatar for sugumarclick
0
111
Member Avatar for punithapary

You can enable short tags, however, there are other servers (like yours) which do no have the short tags option on. This means that if you deploy the code onto another server, it may not run. As pritaeas says, it is recommended to the the full <?php opening tag. There …

Member Avatar for cwarn23
0
115
Member Avatar for Kadjii

Take a look at this line: [code] echo "<a href 'stats.php'>$fname</a>"; [/code] You are missing the = on href.

Member Avatar for Kadjii
0
219
Member Avatar for xuexue

Reuse an old thread maybe? You have 4 other threads on the same subject on the first 2 pages of this forum.... As for the query, post some code or we will be guessing at the problem.

Member Avatar for diafol
0
114
Member Avatar for kaninelupus

If I lost my iPhone I would miss the phone part, but I doubt I will have to as I have every phone I have ever owned sat in a drawer incase I ever need them...... I also have a 30GB iPod sat with the phones which got replaced with …

Member Avatar for crimgirl
-2
280
Member Avatar for tarunkhatri

I think [icode]$query = "insert_into[/icode] should be [icode]$query = "insert into[/icode] I dont do Postgres though, although I assume it is simialr to MySQL

Member Avatar for edwinhermann
0
130
Member Avatar for fongoos

This is discussed at length on vBulletin's own forum: [url]http://www.vbulletin.com/forum/showthread.php?t=21342[/url]

Member Avatar for hostplator
0
80
Member Avatar for sim_pack

Your script can be as secure or insecure as you want. Generally, the end user would not see constants or any of the actual code as this is executed on the server. All the end user should see is the output of any functions in your script. If you are …

Member Avatar for almostbob
0
323
Member Avatar for Ashwin Vasnai

Strangely enough, a google search comes up with guides for what you want to do: [URL="http://www.lmgtfy.com/?q=Mysql+%2B+php+%2B+jquery+auto+suggest"]Click[/URL]

Member Avatar for Ashwin Vasnai
0
139
Member Avatar for nagatron

Either the password you are using is wrong, or there is no permission for user 'admin' on local machine to access the database. Check your username/password for the DB and also check the user has got the correct permissions.

Member Avatar for nagatron
0
82
Member Avatar for betatype

Add hidden fields to the form with the Submit button, the values can then be retreived using $_POST or $_GET in PHP.

Member Avatar for cwarn23
0
129
Member Avatar for beechtek

You will ideally need a Database to store the information in, there are a number of calendar and diary scripts available if you search Google.

Member Avatar for Will Gresham
0
100
Member Avatar for andym67

Look at your value attribute,: [code=php] value = <?php echo $_SESSION["namevalue"]; ?> /> [/code] This should be: [code=php] value="<?php echo $_SESSION["namevalue"]; ?>" /> [/code]

Member Avatar for andym67
0
17K
Member Avatar for valonesal

When you say a text list, will this be a text file or a database? If it is a text file, use [URL="http://uk.php.net/manual/en/function.fopen.php"]fopen[/URL] etc to read the contents of the file, split the contents of the file into an array (for example [URL="http://uk.php.net/manual/en/function.explode.php"]explode[/URL]) then search the array with [URL="http://uk.php.net/manual/en/function.in-array.php"]in array[/URL] …

Member Avatar for Will Gresham
0
73
Member Avatar for rashid47010

Take a look at the last few characters on line 16, you hae an extra period in there. Periods are used to join strings, as there is nothing following the final value in the print() statement, you do not need a trailing period.

Member Avatar for ShawnCplus
0
96
Member Avatar for valonesal

You will want rewrites to do this. This will be fairly simple if the 'folder/folder/folder' is always the same, but if you have alot of sub directories then you will need more than just /file.php in the final URL Take a look at [url]http://www.sitepoint.com/article/guide-url-rewriting/[/url]

Member Avatar for valonesal
0
164
Member Avatar for becraig

First, I would not suggest taking POST variables (or $_GET or $_REQUEST etc..) and put them straight into sessions for use later, I would suggest you look into checking/sanitizing the results to ensure that they are what is expected. Especially if you are then using these values to query a …

Member Avatar for becraig
0
133
Member Avatar for xuexue

Take a look at the move_uploaded_file function in PHP: [url]http://us3.php.net/manual/en/function.move-uploaded-file.php[/url]

Member Avatar for Will Gresham
0
81
Member Avatar for vmanes
Member Avatar for nav33n
4
123

The End.