492 Posted Topics

Member Avatar for nduarte

The session is a server-side temporary data store, you can initialise the session by putting [icode]session_start()[/icode] at the top of any page you with so utilise the session data on. Storing and retrieving information from a session is similar to _GET, they are both arrays of data. [code] $_SESSION['somedata'] = …

Member Avatar for Will Gresham
0
2K
Member Avatar for serkan sendur
Member Avatar for ana12
Member Avatar for Ancient Dragon

[QUOTE=WaltP;1128200]But I for one don't want [I]factory settings[/I]. I want a clean install without the factory add-on software that I'll never use (AOL comes to mind). [/QUOTE] Yes! I got my new Acer a few months back, the first thing I did was put in my Win7 disk, format and …

Member Avatar for dexter737
0
164
Member Avatar for Mr.Kazaam

Do you have a table called 'test' within the database 'test'? change [icode]$res = mysql_query($sql);[/icode] to [icode]$res = mysql_query($sql) or die(mysql_error());[/icode] Does this return an error?

Member Avatar for R1Programmer
0
280
Member Avatar for php2sheik

Can you give an example of what you are actually trying to acheive, PHP doesn't work with datatypes in the same way as many other scripting/programming languages. Read the last paragraph on [url]http://phpbuilder.com/manual/en/language.types.string.php[/url]

Member Avatar for applemist
-1
3K
Member Avatar for md16185
Member Avatar for J.M

[QUOTE=kekkaishi;1026597]ok, lets say u name search field 'search' and the drop-down menu for 'cat'. and make the form POST all info to search.php (method POST action search.php). In the search.php, the first thing u need to do is to retrieve the posted info. for example, [CODE]$postCode = $_POST['search']; $cat = …

Member Avatar for Member 785068
0
197
Member Avatar for phaedrusGhost

Change [code]<tr><div class=\"divider\"></div></tr>[/code] to [code]<tr><td colspan=\"3\"><div class=\"divider\"></div></td></tr>[/code]

Member Avatar for phaedrusGhost
0
142
Member Avatar for Ankit_Parmar
Member Avatar for Ankit_Parmar
0
99
Member Avatar for Charls Frdinand

Take a close look at this line: [CODE]# if ($_POST['Alumnos'] empty($_POST['Maestros']) empty($_POST['Admins')])) {[/CODE]

Member Avatar for Charls Frdinand
0
141
Member Avatar for jeeter19

Rather than sending the entire query through POST, it may be a better idea to send the separate bits in individual POST fields, for example, use multiple fields as follows: - The method (select/insert/update) - The table name - The column name - The value You can then piece together …

Member Avatar for pulketo
0
148
Member Avatar for stilliard

PHP will only be able to calculate the time taken to generate the page before sending it, it would not be able to count in the time taken to download the content etc. However, at the beginning of your script you could get the current date/time and output this in …

Member Avatar for stilliard
0
215
Member Avatar for aynamohol

You don't have any image tags around the [icode]echo $row['image'];[/icode] so it will output plain text.

Member Avatar for aynamohol
0
112
Member Avatar for akulkarni

Your wordpress installation is trying to use a function with the name get_header, but this function does not exist. Really? how about telling us which WP version you are using and what theme you added. Or better yet, ask on the Wordpress forums ([url]http://en.forums.wordpress.com/[/url]).

Member Avatar for akulkarni
0
90
Member Avatar for canadian_angel

1. You are using a td element without having a table or tr. 2. You have declared it as a function, and not very well at that, but you have not called the function so it will not do anything. 3. For scalability, it would be better to use a …

Member Avatar for rajarajan2017
0
131
Member Avatar for jtaylor-bye
Member Avatar for pritaeas
0
108
Member Avatar for jayreis

The reason this does not work will be clear when you read the [URL="http://uk.php.net/manual/en/function.msql-query.php"]mysql_query page at php.net[/URL]. Here is what it says: [quote=php.net] Description: resource msql_query ( string $query [, resource $link_identifier ] ) [/quote] And then goes on to say: [quote=php.net] link_identifier The mSQL connection. If not specified, the …

Member Avatar for rajarajan2017
0
162
Member Avatar for dan1992

The function you want is [url=http://php.net/manual/en/function.unlink.php]unlink[/url]. Plenty of info on the PHP site. And plenty of tutorials available online if you search for them :)

Member Avatar for shubhamjain1
0
146
Member Avatar for vilasdhobale

You'll need to use the [URL="http://uk.php.net/manual/en/function.odbc-connect.php"]odbc_connect[/URL] function in PHP to do this, using the DSN on your access database.

Member Avatar for vilasdhobale
0
78
Member Avatar for dalip_007

You can try counting the number of values in the table, if this is 0 then there are no entries. Your mysql_query should contain something similar to this: [code]SELECT count(*) FROM `table_name`[/code]

Member Avatar for ppetree
0
8K
Member Avatar for thomasbe

You will need to have the mysql_connect statement in every script that you wish to connect to the database, this does not transfer between scripts. Alternatively, have a separate file which connects to the database and then use a require or include statement to use it on any page you …

Member Avatar for thomasbe
0
119
Member Avatar for BTW8892

You are missing part of the tag, your code would output this: [code=html]<a href='profile.php?player_id=>'value_from_$row</a>[/code] The > and ' are the wrong way around for starters, and there will be nothing next to the player_id=

Member Avatar for Will Gresham
0
66
Member Avatar for Duki
Member Avatar for rameshreddy

What's wrong with the answer posted in the [url=http://www.daniweb.com/forums/thread288717.html]thread[/url] you stared yesterday?

Member Avatar for rameshreddy
-1
68
Member Avatar for Dani
Member Avatar for wxflint

[quote=wxflint] Is this possible? [/quote] Yes. It wouldn't take much research either. There are plenty of tutorials online for how to write to a file using PHP, including a good example on php.net. [quote=PHP.net] [code=php] <?php $filename = 'test.txt'; $somecontent = "Add this to the file\n"; // Let's make sure …

Member Avatar for tazzz1
0
167
Member Avatar for Stevishere

[QUOTE=Ezzaral;1203299]No, you're not blind - I guess I'm just crazy. I thought you had to check a box for it to keep you logged in. I logged out to check that and there is no "Remember Me" check box. Sorry for the misdirection :) It seems to set the cookie …

Member Avatar for Nick Evan
0
365
Member Avatar for jephthah

Overall I like it :) A couple of things though, I apologise if these have been mentioned: 1, The collapsible blocks still use the standard VB icons [attach]14913[/attach] (I realise these will most likely be changed anyway) 2, There is no page selection at the top of the page, only …

Member Avatar for Dani
8
2K
Member Avatar for happygeek

Yes, Happy St Georges day to all :) British and (somewhat) proud :P @ardav, I assume you are looking for more of this [img]http://www.willgresham.com/img/flag1.jpg[/img] and less of this [img]http://www.willgresham.com/img/flag2.jpg[/img] :P :D

Member Avatar for Lorilei
2
209
Member Avatar for cwarn23

I'm not convinced on Bing. It seems to be a re skinned Google. Do identical searches on both and the results are generally the same, maybe a slightly different order but no major differences for a good query. Why they market it as a 'decision engine' is beyond me, it …

Member Avatar for Ene Uran
0
217
Member Avatar for Chrisjj

[QUOTE=Nick Evan;1200689]Soon, 4chan will give out "infractions" Later--[/QUOTE] I have a feeling this guy would have a field day if he ever stumbled upon the 4chan 'community' :D

Member Avatar for diafol
0
783
Member Avatar for The Dude
Member Avatar for LevyDee

[QUOTE=LevyDee;1204637]You cant -1 in a general chat forum =([/QUOTE] Apparently you can. Although on topic, I don't know of the game you describe.

Member Avatar for jwenting
1
182
Member Avatar for shahaksh

You might find [url=http://www.daniweb.com/forums/announcement17-66.html]this[/url] of interest

Member Avatar for Will Gresham
0
66
Member Avatar for caro88

[QUOTE=qazplm114477;1199233] [URL="http://jquery.com/"]http://jquery.com/[/URL] download and include in your php file[/QUOTE] I would disagree with that, I would always suggest using a CDN one, such as the one on google code ([url]http://code.google.com/apis/ajaxlibs/documentation/#jquery[/url]) [url=http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/]This article[/url] sums up my reasoning for this quite well.

Member Avatar for caro88
0
159
Member Avatar for sandipan.rcciit
Member Avatar for whois101
0
4K
Member Avatar for lllllIllIlllI
Member Avatar for bumsfeld
10
248
Member Avatar for sfrider0

If you are going to use karuppasamy's example, I would make sure you add some protection, check that the values passed are actually numbers. Otherwise you may find that your database is open to attack. Also, JavaScript is overkill here, no point using it when the same can be acheived …

Member Avatar for karuppasamy
0
151
Member Avatar for star_lavender

Look at the source code for the document in your browser, do the elements have the correct names (the ones you are expecting)?

Member Avatar for star_lavender
0
77
Member Avatar for cwarn23

Needs some work :) I understand it is probably a W.I.P at the moment, I just asked it: 'What is PHP?' It responded: 'I dont understand u said my code is working and its is displaying as what u wanted then what is your requirement.' A search on DaniWeb shows …

Member Avatar for diafol
0
142
Member Avatar for vmanes

I am not for this, in any way. I do not reside in the US, and I am not a US national, I am English, I live, was born, was educated and work in the UK, so I do not believe that the US has any right to store my …

Member Avatar for jwenting
2
174
Member Avatar for Stefano Mtangoo

Personally, I use something along the lines of the following: [CODE]$salt = sha1(md5($_POST['password'])); $password = md5($_POST['password'].$salt);[/CODE] Using strings such as username or user id is not a good idea as these will be known by anyone using the site, but using the password means that it is unique for each …

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for davidm23

So do you just want to have the links parsed as plain text, or do you want them removed all together? Either is possible, just depends on exactly what you want to achieve.

Member Avatar for davidm23
0
73
Member Avatar for smush

You will also want to wrap column names in backticks (`) in the case that they are reserved words (for example, your order column) to prevent query problems. List of reserved words in 5.1: [url]http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html[/url]

Member Avatar for Will Gresham
0
115
Member Avatar for jephthah

I was expecting the full animation when that loaded... until I realised it was a jpg not a gif... Still, +1 to the above sentiment. Spend more money on the essentials :P

Member Avatar for Will Gresham
0
95
Member Avatar for Ruko

You have no [url=http://www.tizag.com/mysqlTutorial/mysqlselect.php]Select[/url] statement so of course you are getting nothing...

Member Avatar for Will Gresham
0
335
Member Avatar for soley

Is the directory structure the same for both servers? and are the required files in the same locations?

Member Avatar for soley
0
104
Member Avatar for Dougie

Or you could just click the 'Help' link at the bottom of every FB page and search for removing friends.... [url]http://www.facebook.com/help/#/help.php?page=770[/url]

Member Avatar for oldgamesware
0
169
Member Avatar for Sabryan

I thought you were referring to the Board Game from the title :( But no.

Member Avatar for Will Gresham
0
58

The End.