Posts
 
Reputation
Joined
Last Seen
Ranked #973
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
88% Quality Score
Upvotes Received
24
Posts with Upvotes
23
Upvoting Members
20
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
10 Commented Posts
~140.14K People Reached
Favorite Tags

231 Posted Topics

Member Avatar for HanFromNL

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 …

Member Avatar for Nour_6
0
37K
Member Avatar for cwarn23

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.

Member Avatar for rubberman
1
1K
Member Avatar for jakizak

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> …

Member Avatar for dean8710
0
2K
Member Avatar for mbarandao

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.

Member Avatar for pritaeas
0
1K
Member Avatar for overrising

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?

Member Avatar for diafol
0
950
Member Avatar for nonshatter

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 …

Member Avatar for smantscheff
0
4K
Member Avatar for nonshatter

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 …

Member Avatar for prash21m
0
151
Member Avatar for Ritesh_4

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 …

Member Avatar for tinker
0
795
Member Avatar for David 78
Member Avatar for abhi10kumar

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" …

Member Avatar for nonshatter
0
80
Member Avatar for vibhaJ

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 …

Member Avatar for vibhaJ
0
322
Member Avatar for rom.

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]

Member Avatar for nonshatter
0
221
Member Avatar for nonshatter

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 …

Member Avatar for nonshatter
0
120
Member Avatar for devinodaniel
Member Avatar for aldm

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]

Member Avatar for aldm
0
264
Member Avatar for nonshatter

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 …

Member Avatar for cjohnweb
0
7K
Member Avatar for solvesak

Take your pick... [url]http://www.tripwiremagazine.com/2010/02/15-jquery-plugins-to-create-stunning-image-zoom-effects.html[/url]

Member Avatar for divyakrishnan
0
140
Member Avatar for dhruv_arora

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 …

Member Avatar for dhruv_arora
0
174
Member Avatar for winecoding

Go to your root directory: [CODE]# sudo find . | xargs grep -i 'NameOfFunction'[/CODE] grep is the tool to use.

Member Avatar for Go_bots
0
179
Member Avatar for svmer

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]

Member Avatar for almostbob
0
103
Member Avatar for haimz
Member Avatar for edwinhermann
0
98
Member Avatar for panhwer

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 …

Member Avatar for nonshatter
0
109
Member Avatar for nonshatter

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) …

Member Avatar for twiss
0
85
Member Avatar for geekme

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 …

Member Avatar for nonshatter
0
100
Member Avatar for nonshatter

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) …

Member Avatar for nonshatter
0
114
Member Avatar for mi.mac.rules

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 …

Member Avatar for madihaghafoor
0
886
Member Avatar for mi.mac.rules

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

Member Avatar for mi.mac.rules
1
1K
Member Avatar for calebcook

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]

Member Avatar for klemme
0
184
Member Avatar for johndohmen1963

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 …

Member Avatar for johndohmen1963
0
615
Member Avatar for TechySafi

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)

Member Avatar for TechySafi
0
127
Member Avatar for efmesch

Have you tried [CODE]sudo iwlist scan[/CODE] Or if not, there may be some gui options available in network-manager?

Member Avatar for efmesch
0
185
Member Avatar for nonshatter

All, I have a simple question. What is the standard procedure for retrieving form values via POST method in a web form? Perl can be extremely awkward for web programming, I'd normally use something else, but in this case I need to use Perl for the CPAN module. Anyway, back …

Member Avatar for nonshatter
0
477
Member Avatar for riahc3

Your post isn't too clear. If POST works, then why are you changing it to GET? Can you include your html form as this would make things clearer? [CODE] <form name="user" action="page.php" method="POST"> <input type="text" name="textfield"> <input type="submit" name="sub" value="Login"> </form> [/CODE] [CODE] <?php if(isset($_POST['sub'])) { if(isset($_POST['textfield'])) { $q = …

Member Avatar for ko ko
0
92
Member Avatar for pucivogel

Issuing a command prefixed with sudo means that you're issuing the command as the 'root' user. (Which gives you the proper privileges to invoke the command.) E.g. You won't be able to write to any files in the root file system '/' /(/etc /usr) unless you have root access. This …

Member Avatar for JasonHippy
0
212
Member Avatar for Spyzker

unexpected T_CASE means you have a case statement that has somehow become disconnected from it's switch. Are you showing the whole switch statement in the code you posted? A switch statement should be formed as follows (Taken from the [URL="http://php.net/manual/en/control-structures.switch.php"]PHP manual[/URL]): [CODE]switch ($i) { case 0: echo "i equals 0"; …

Member Avatar for diafol
0
124
Member Avatar for prem2

There's no command that I know of that will do this. Unless you can find a tool/log analyser to do the leg work, you'd have to write some scripts yourself to achieve what you want, and it may require a considerable amount of work to implement. This maybe of some …

Member Avatar for prem2
0
171
Member Avatar for presley tonde

-Click YouTube Video Download If you're using Mozilla Firefox, then you can install this add-on [url]https://addons.mozilla.org/en-US/firefox/addon/1-click-youtube-video-download/[/url]

Member Avatar for jwiere03
1
240
Member Avatar for nonshatter

I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB …

Member Avatar for roswell1329
0
610
Member Avatar for nonshatter

All, I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution... I have just upgraded Mysql to 5.1 from 4.1 on a Red Hat 4 box. Everything is fine. I can connect to the database using the shell, …

Member Avatar for nonshatter
1
732
Member Avatar for rpjd

I'm not 100% sure what you're trying to do, but this old thread may help with parsing your html: [url]http://www.daniweb.com/web-development/php/threads/316425[/url]

Member Avatar for vibhaJ
0
72
Member Avatar for fuggles

Depends what OS you're using. Also, I don't think any Linux distro stores 'ALL' network information in one place. It all depends what aspect of the network you want to configure. E.g. DHCP, DNS, NIC. Tell me what OS you're using and I'll be able to advise further

Member Avatar for peterStralia
0
81
Member Avatar for nonshatter

Howdy, I have a basic html file containing certain data I need to extract. This is the code for just one of the tables on the page: [CODE]<TABLE title="Left Magazine"class="dataTable" align="center" cellspacing="0" cellpadding="0"> <caption>Media Details</caption><THEAD><TR class="captionRow"><TH>Slot #</TH><TH>Attn</TH><TH>Status</TH><TH>In Drive</TH><TH>Label</TH><TH>Media Loads</TH><TH>Comment</TH></TR></THEAD> <TBODY> <TR class="altRowColor" > <TD>1 </TD> <TD>&nbsp;</TD><TD>Full, Gen. 3 </TD> <TD>&nbsp;</TD> …

Member Avatar for Ezzaral
0
210
Member Avatar for alaa sam

use [URL="http://www.debianhelp.co.uk/ddcommand.htm"]dd[/URL] for creating a large backup, otherwise just use a simple cp command, Copy /homedirectory/filename to /yourflashdrive/filename: [CODE]cp /home/filename /media/sdb1/filename[/CODE]

Member Avatar for alaa sam
0
10K
Member Avatar for amazed
Member Avatar for shenbagam

Hi there, I'd use [URL="http://www.fusioncharts.com"]FusionCharts[/URL]. They have great [URL="http://www.fusioncharts.com/docs/"]documentation[/URL] Your code would be something like this: [CODE] <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("../Includes/FusionCharts.php"); ?> <HTML> <HEAD> <TITLE> FusionCharts - Array Example using Single Series Column 3D Chart</TITLE> <SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT> </HEAD> …

Member Avatar for qazplm114477
0
566
Member Avatar for jakirajam

Disabling the microcode update for your machine should stop this error: [CODE]/sbin/service microcode_ctl stop /sbin/chkconfig --del microcode_ctl[/CODE]

Member Avatar for mcgama88
0
135
Member Avatar for deolalkar_pooja

[QUOTE=deolalkar_pooja;1484482]Hi to all, i created following table in SQL. =================================== create table employee(name varchar(20), dob date) =================================== But, when i ran the query, i got the massage that 'SQL can not find data type 'date''. How should i include 'date' in to table definition.[/QUOTE] You have a number of options. …

Member Avatar for d5e5
0
124
Member Avatar for deolalkar_pooja

[CODE]SELECT MAX(age), name FROM man WHERE city='mumbai';[/CODE] should work?

Member Avatar for smantscheff
0
143
Member Avatar for SalientAnimal

This should get you started. The code is from this tutorial which I used when I created my first login script. Obviously it will require some editing for connecting to your database and retrieving user information from your tables etc. I'd also look into using a stronger encryption algorithm for …

Member Avatar for nonshatter
0
392
Member Avatar for 68thorby68

First try creating a symlink to the correct module. [CODE]sudo ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled[/CODE] Then you can edit your /etc/apache2/sites-enabled/xxxxx file to allow ssi functionality [url]http://httpd.apache.org/docs/current/mod/mod_include.html[/url] [url]http://steveyoung.wordpress.com/2007/02/[/url]

Member Avatar for nonshatter
0
131

The End.