492 Posted Topics
Re: 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'] = … | |
Re: Shawshank Redemption is up there at the top of my list :) | |
Re: [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 … | |
Re: 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? | |
Re: 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] | |
Re: You do realise this thread was almost 5 yeas old... | |
Re: [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 = … | |
Re: Change [code]<tr><div class=\"divider\"></div></tr>[/code] to [code]<tr><td colspan=\"3\"><div class=\"divider\"></div></td></tr>[/code] | |
Re: Take a close look at this line: [CODE]# if ($_POST['Alumnos'] empty($_POST['Maestros']) empty($_POST['Admins')])) {[/CODE] | |
Re: 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 … | |
Re: 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 … | |
Re: You don't have any image tags around the [icode]echo $row['image'];[/icode] so it will output plain text. | |
Re: 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]). | |
Re: 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 … ![]() | |
![]() | |
Re: 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 … ![]() | |
Re: 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 :) | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: 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= | |
Re: What's wrong with the answer posted in the [url=http://www.daniweb.com/forums/thread288717.html]thread[/url] you stared yesterday? | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: [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 ![]() | |
Re: No idea what ritas is/are so haven't tried it :) Driving | |
Re: [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. | |
Re: You might find [url=http://www.daniweb.com/forums/announcement17-66.html]this[/url] of interest | |
Re: [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. | |
Re: [url=http://lmgtfy.com/?q=xls+to+csv+php]Search Google, it has the answers.[/url] | |
Re: Congrats :) Been here 2 years and just approaching 600 :P | |
Re: 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 … | |
Re: Look at the source code for the document in your browser, do the elements have the correct names (the ones you are expecting)? | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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 | |
Re: You have no [url=http://www.tizag.com/mysqlTutorial/mysqlselect.php]Select[/url] statement so of course you are getting nothing... | |
Re: Is the directory structure the same for both servers? and are the required files in the same locations? | |
Re: 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] | |
Re: I thought you were referring to the Board Game from the title :( But no. |
The End.