- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 24
- Posts with Upvotes
- 23
- Upvoting Members
- 20
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Re: First, make sure that the file is saved with a .php extension. Then try this: [CODE]<?php echo date("I F d, Y"); ?>[/CODE] It could be that the uppercase "D"ate is causing the issue. Also, you are using short tags <? ?>. Some server configurations do not allow this. Instead, always … | |
Re: Finding a secure hash function is quite a challenging and often overlooked task, so thanks for this share! I haven't tested this yet, but I'm sure this will come in handy for many of us. | |
Re: Look here: [url]http://api.jquery.com/load/[/url] Depending on how often you want your feed to be updated you could use a Javascript setInterval() function to repeatedly call the .load ajax feed. Here is something I've used in the past (to update a price of an item every couple of seconds). [CODE] <!DOCTYPE html> … | |
Re: Hi there, I have no idea what that error code is referring to. But I'd recommend checking the values within the arrays you're trying to plot from. I'd use FusionCharts with PHP for really good charts and documentation. | |
Re: So what are you trying to do? From the title of your post it seems you're trying to create a table in a database, but your code is just printing data from your database? | |
Hey, I am having a really annoying problem when trying to set up a foreign key in my database... I have two tables - Sell and Category I want the 'c_id' from the Category table to be the foreign key for 'p_id' in the Sell table. Both tables are InnoDB … | |
Hey guys, I have this code which grabs categories from my category table of the database and populates the category drop-down box. I was hoping someone could tell me how I could populate the second drop-down box depending on what was selected in the first box. E.g. If "Networking" is … | |
Re: It depends on your directory structure. Issue this command to find your base directory: [CODE]~# cat /etc/apache2/sites-available/default | grep DocumentRoot[/CODE] For example, if your document root is set as /var/www/htdocs Then the URL localhost/phpmyadmin would mean that the phpmyadmin folder is located in /var/www/htdocs. If the phhpmyadmin folder isn't in … | |
Re: Look here: [url]http://jqueryui.com/demos/datepicker/[/url] They have written the code for you. You need a copy of jquery and the jquery UI. See here for how to get them: [url]http://jqueryui.com/docs/Getting_Started[/url] [CODE] <!DOCTYPE html> <html> <head> <link type="text/css" href="css/themename/jquery-ui-1.8.16.custom.css" rel="Stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script> <script> $(function() { $( "#datepicker1, #datepicker2" … | |
Re: The answer: "Straight FTP is, by nature, quite insecure, since neither the authentication nor the traffic are in any way encrypted." I'd use SSH/SCP or SFTP instead: [URL="http://mobaxterm.mobatek.net/"]MobaXterm[/URL] is one of my personal favourites. Or you could try WinSCP which allows you to select which protocol you want to connect … | |
Re: I think you could use chown to set apache as the owner/group of /var/www This post seems to answer your question rather well: [url]http://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var-w[/url] | |
All, I have an issue with my web server, relatively minor but something that has been bugging me: I have two systems, both running the same spec OS, software etc... I use one as a dev server and the other as a production server. The webpage I am rendering on … | |
Re: Can you not change the 'ID' attribute to a 'Class' attribute? | |
Re: The following links may be of interest (If you are using Apache web server): [url]http://evolt.org/node/22880/[/url] [url]http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html[/url] | |
I have a foreach loop, within which I would like to create x number of unique variables. E.g. Upon each iteration I'd like to create a new variable like: $strDisk1 = ... $strDisk2 = ... $strDisk3 = ... I have tried the following but this does not work: [CODE] <?php … | |
Re: Take your pick... [url]http://www.tripwiremagazine.com/2010/02/15-jquery-plugins-to-create-stunning-image-zoom-effects.html[/url] | |
Re: Depending on what browser you are using, I'd recommend installing a browser extension so that you can get some sort of log message to show what part of your js code is failing. I use the [URL="https://chrome.google.com/webstore/search?hl=en-GB&q=developer+tools"]developer tools[/URL] compatible with google chrome. Firebug is another good alternative. In addition, you … | |
Re: Go to your root directory: [CODE]# sudo find . | xargs grep -i 'NameOfFunction'[/CODE] grep is the tool to use. | |
Re: By default, the original HTML you posted: [CODE] <html> <a href="http://www.daniweb.com">daniweb</a> <a href="http://www.daniweb.com">daniweb 2</a> </html> [/CODE] Does display: [CODE]Daniweb daniweb 2[/CODE] | |
Re: Where in the line of text do you need the space? Can you provide some example text. | |
Re: Cookies are available on the client-side, so they can be seen from the browser. Sessions are stored on the server, and are never sent to the client (except if you write some cludge to do that). If sessions were stored on the client-side, I don't believe your PHP code would … | |
All, I have two tables. TABLE A TABLE B 1 1 2 2 3 3 4 4 These tables have links in the database. I.e. Table A id 4 can be linked with table B id 2. Or table B id can be linked with an id in table A) … | |
Re: Make sure you have the relevant driver for your dongle/wifi card. Also make sure that the card manufacturer has driver support for your distro. You can usually find out on the manufacturers website. Here are some [URL="https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide"]helpful pointers[/URL]: [CODE]With your computer turned off, insert your wireless adapter into a suitable … | |
Hi there, I am in the process of implementing draggable/droppable interaction using the JQuery UI. This is something that I have very little experience with so please be gentle. I can drag and drop using <tr> elements which looks great, but I need to get the <tr> attributes (perl variables) … | |
Re: There is a syntax error in your configuration file. You should be using /usr/local/apache2/sites-available/default to configure the directives in apache. But it looks like you have edited httpd.conf. Perhaps you are using a deprecated directive? Can you post lines 60-70 of httpd.conf so I can have a look. Have you … | |
Re: Try using: [CODE] sudo apt-get install libapache2-mod-auth-cas [/CODE] then use the command below to enable the module [CODE]a2enmod auth_cas[/CODE] restart the apache server [CODE]/etc/init.d/apache2 [/CODE] and you should be golden | |
Re: try using the COUNT() function in MySQL. Replace 'record_id' with the name of the column in your table. [CODE]$query = mysql_query("SELECT COUNT(record_id) AS counter FROM table"); $result = mysql_fetch_assoc($query); echo "Sent to $result['counter'] People <br>"; [/CODE] | |
Re: I believe the chmod command will only work on a Linux-type OS's whereas you're using XAMPP for Windows. 1. Navigate to this directory $mapbeschrijving/$slides 1/slides or whatever it is (The directory you are attempting to write the file to), 2. Right click on directory -> select properties -> you should … | |
| Re: I think it's because your db connection code is only being called in the first else condition. Move include('db.php'); near the top of the file (outside of any if/else condition) |