Search Results

Showing results 1 to 40 of 189
Search took 0.02 seconds.
Search: Posts Made By: martin5211
Forum: PHP Sep 1st, 2009
Replies: 1
Views: 258
Posted By martin5211
The jQuery questions should be made on JavaScript / DHTML / AJAX forum.

From Drupal perspective, some jQuery plugins could not work with the jQuery bundle included on Drupal core (the jQuery...
Forum: PHP Apr 20th, 2009
Replies: 1
Views: 1,030
Posted By martin5211
Use CURL or fsockopen() to get the result from Google, then simplexml_load_string()


$zip = 10001;
$url = "http://news.google.com/news?pz=1&ned=us&hl=en&q=".$zip."&output=rss";

$ch =...
Forum: DaniWeb Community Feedback Apr 20th, 2009
Replies: 28
Views: 1,867
Posted By martin5211
It happens me usually with Youtube, javascript doesn't refresh sometimes. What I called 'double posting' is when you want to add more information and edit option expired, using Quick Reply will...
Forum: Geeks' Lounge Apr 20th, 2009
Replies: 14
Views: 961
Posted By martin5211
Safari 4:

http://novo.ath.cx/misc/Imagen%202.png
Forum: PHP Apr 20th, 2009
Replies: 2
Views: 570
Posted By martin5211
Do you have activated the permissions for create and edit content types on User Management / Access Control ?

Take a look if is enabled all CCK field types in modules.
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
I'm using mainly one check... subtracting 18 years to 2009 would be 1991, so any user should have a born date below 1991 to access www.example.com. That conditional isn't dynamic, to adjust the code...
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
<?php

$msg = null;

if ((is_numeric($_POST['month']) && !empty($_POST['month'])) &&
(is_numeric($_POST['day']) && !empty($_POST['day'])) &&
(is_numeric($_POST['year']) &&...
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
That is not intended for a 'perfect' system, it's only a disclaimer. If you want to bypass it, it's your problem, you're violating the law. Look the little legend on every drug, that doesn't avoid to...
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
I agree with you, it is not pretty but several sites use this method of control with drop down lists and even input fields. I think more for legal purposes.
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
That's doable with simple conditionals. The most important field is year. We assume if is not > 1991 or 91. You wan to check boundaries, also use strtotime('-18 years')
Forum: PHP Apr 19th, 2009
Replies: 21
Views: 1,052
Posted By martin5211
Look at the *third* code example:

http://www.lotsofcode.com/php/validation.htm

is_numeric() is a common form to avoid characters from alphabet on age field.
Forum: PHP Apr 19th, 2009
Replies: 14
Views: 14,756
Posted By martin5211
If the page only shows the code that's because the PHP interpreter isn't running. Look at your httpd.conf (Apache configuration file) and look if the line that says 'LoadModule php5_module' isn't...
Forum: PHP Apr 19th, 2009
Replies: 6
Views: 665
Posted By martin5211
That's correct. There is better methods to show the code in a more readable way e.g. using sprintf() like in PHP.net mysql_real_escape_string() reference, curly braces on variables, doing escaping...
Forum: PHP Apr 19th, 2009
Replies: 6
Views: 665
Posted By martin5211
Strings, values (except numeric) in SQL must be enclosed into quotes. Quotes delimit the string content, avoiding being confused by the interpreter, due to a string can contain spaces and...
Forum: PHP Apr 18th, 2009
Replies: 6
Views: 665
Posted By martin5211
Enclose strings between quotes:


$query = "SELECT * FROM $table WHERE Username='".$user."' AND Password='".$pass."'";
Forum: DaniWeb Community Feedback Apr 18th, 2009
Replies: 28
Views: 1,867
Posted By martin5211
A sort of balance must exist because we're talking about an online community. If a member feels uncomfortable, obviously would leave. That may not concern however remote it may be, new users will...
Forum: DaniWeb Community Feedback Apr 18th, 2009
Replies: 28
Views: 1,867
Posted By martin5211
I haven't found a bit tiny thing of democracy yet... For all it is worth, issues like double-posting shouldn't be existing for good visibility/functionality. But, one good reason isn't enough.
...
Forum: Geeks' Lounge Apr 18th, 2009
Replies: 44
Views: 2,395
Posted By martin5211
California is communist, isn't it? For that reason, such numbers.
Forum: Site Layout and Usability Apr 18th, 2009
Replies: 3
Views: 851
Posted By martin5211
The same marketing text found at:

http://www.tekla.com/international/solutions/building-construction/construction-companies/site-management/Pages/Default.aspx

This is a construction company....
Forum: Geeks' Lounge Apr 18th, 2009
Replies: 14
Views: 961
Posted By martin5211
Window at 1024x768. This is evidence:

http://novo.ath.cx/misc/Imagen%201.png
Forum: PHP Apr 18th, 2009
Replies: 11
Views: 814
Posted By martin5211
Paste the code at end, outside from the last conditional that checks $progyear variable.

Test the MySQL query directly from phpMyAdmin 'SQL' sheet if returns any result from your tables... I'm...
Forum: PHP Apr 17th, 2009
Replies: 5
Views: 785
Posted By martin5211
I think you cannot use Javascript to access local files by default, that would be the law of the jungle, a giant security hole... easy to spoof or block client domains, phishing and browser hijacking...
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 814
Posted By martin5211
Use a SELECT...JOIN query to get results from related tables e.g.


SELECT * FROM courseyeartable JOIN elements ON (yearid = exampapers) WHERE courseid = $programme


I have seen an error in...
Forum: Website Reviews Apr 17th, 2009
Replies: 5
Views: 603
Posted By martin5211
That's better, still needs some tuning and fixes. I think the grayish colour of foreground table in Hosting page must be similar that the colour used in Home, like font sizes and weight to show sort...
Forum: Networking Hardware Configuration Apr 17th, 2009
Replies: 3
Views: 532
Posted By martin5211
That's weird... maybe, your computer got infected with spyware and for that reason is blocked the access to windows firewall panel. Try to scan & clean with any anti-spyware tool (like Spybot or...
Forum: PHP Apr 17th, 2009
Replies: 11
Views: 814
Posted By martin5211
Misticles, please try to make a more precision or give more details what do you want to perform. I mean, the code is working right, I can't see what is your real issue.

You're performing only two...
Forum: PHP Apr 17th, 2009
Replies: 3
Views: 555
Posted By martin5211
It will work with minimal changes, if your table comply with the structure mentioned previously. Modify 'customers' table name using your own. Make a DB connection too if doesn't exist. If you do...
Forum: Geeks' Lounge Apr 16th, 2009
Replies: 14
Views: 961
Posted By martin5211
Is that a HR letter or a simple memo? Each first letter on each line hides a (inimical) subliminal message :)
Forum: PHP Apr 16th, 2009
Replies: 3
Views: 555
Posted By martin5211
Basically, you can do:


$query = "SHOW COLUMNS FROM customer";

$result = mysql_query($query) or die(mysql_error());

while ($row = mysql_fetch_array($result)) {
$fieldnames[] = $row[0];...
Forum: PHP Apr 16th, 2009
Replies: 11
Views: 1,267
Posted By martin5211
What does fulfil <b></b> tags into <a href="..." code ?


$Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="javascript<b></b>:go(\'${1}\')">${1}</a>', $Text);

$Text =...
Forum: Linux Servers and Apache Apr 16th, 2009
Replies: 3
Views: 1,466
Posted By martin5211
Look at your apache httpd.conf if the line that includes your vhosts file isn't commented.

Try to use:


NameVirtualHost *
<VirtualHost *>
DocumentRoot /cmsdata/cms/sites/home
ServerName...
Forum: Network Security Apr 16th, 2009
Replies: 1
Views: 419
Posted By martin5211
Some computers have issues if you do a test from external IP using the same computer due to a NAT conflict. If you want to test simply if your program works, 127.0.0.1 or localhost interface. To do a...
Forum: Network Security Apr 16th, 2009
Replies: 4
Views: 518
Posted By martin5211
Could be from MSN Messenger, uPnP, try to close all programs and watch if the traffic changes. Hack attempts in proximity with neighbors happens usually with wireless communications. Also, try to...
Forum: Networking Hardware Configuration Apr 16th, 2009
Replies: 3
Views: 532
Posted By martin5211
I didn't found your modem model at www.portforward.com. That site includes some guidelines to open/forward ports to your computer. I think this modem is working as bridge modem only, so your computer...
Forum: PHP Apr 16th, 2009
Replies: 5
Views: 404
Posted By martin5211
Who is underestimating? I agree with ShawnCplus. There is no way that we can understand him if he wants to formulate a question in such imprecise way. My concern, this is not a question related to...
Forum: Monitors, Displays and Video Cards Apr 15th, 2009
Replies: 2
Views: 424
Posted By martin5211
Use always the 'optimal resolution', that is the max available res. Activate Cleartype font smoothing from Display Properties.
Forum: PHP Apr 15th, 2009
Replies: 11
Views: 1,550
Posted By martin5211
I was talking about MySQL DATETIME and DATE field, there is a MySQL function to convert directly to UNIX timestamp:
...
Forum: PHP Apr 15th, 2009
Replies: 11
Views: 814
Posted By martin5211
I can't replicate your issue without the structure of your tables.

I'm testing your code here, seems to be working right with these tables


SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;

DROP...
Forum: Geeks' Lounge Apr 15th, 2009
Replies: 21
Views: 1,526
Posted By martin5211
amazing :)

I dreamed a dream ;-)
Forum: PHP Apr 15th, 2009
Replies: 11
Views: 1,550
Posted By martin5211
If that is a DATETIME field type, you can use UNIX_TIMESTAMP() like this SELECT UNIX_TIMESTAMP(`date`) FROM `my_table` then use date() to show it correctly
Showing results 1 to 40 of 189

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC