Forum: PHP 1 Day Ago |
| Replies: 2 Views: 126 OpenID:
http://openid.net/developers/libraries/
I've tried the PHP library, and the examples worked out-of-the-box. |
Forum: JavaScript / DHTML / AJAX 12 Days Ago |
| Replies: 5 Views: 330 I think the for (var i in ...) is the problem. My guess is i is not an integer, but an object (element).
I think you should store the document.getElementsByClassName('someclass') in an array and... |
Forum: PHP 18 Days Ago |
| Replies: 7 Views: 338 No. The $key in this case will contain the array index.
PHP assumes
$values = array ('name','email','university','course','message');
to be this:
$values = array (0 => 'name', 1 => 'email',... |
Forum: RSS, Web Services and SOAP 18 Days Ago |
| Replies: 3 Views: 469 The XmlDataSource is a .NET component, it won't run on a linux server. What language are you using ? PHP, Perl, Python, Ruby ? |
Forum: PHP 18 Days Ago |
| Replies: 1 Views: 199 The string value is stored in a session variable, not as a hidden field in the form, as that would defeat it's purpose. |
Forum: PHP 19 Days Ago |
| Replies: 6 Views: 346 I'm guessing you're trying to install this ?
http://www.phpmydirectory.com/
Did you contact their support ? |
Forum: JavaScript / DHTML / AJAX 19 Days Ago |
| Replies: 4 Views: 597 1. The reason I use div's is because span's often give me trouble.
2. toggleClass toggles a specific class on and off, so you can't use it like you do now
3. I gave my div the id #toggle, so I... |
Forum: XML, XSLT and XPATH 20 Days Ago |
| Replies: 13 Views: 823 Not sure if you're interested, but I've made an example of an admin panel once, for a different thread.
http://www.pritaeas.info/DaniWeb/AdminPanel.rar
http://www.pritaeas.info/DaniWeb/test.sql |
Forum: PHP 20 Days Ago |
| Replies: 14 Views: 463 I suggest you read this first: http://www.daniweb.com/forums/announcement124-2.html
Come up with an idea. Then, if you have problems, show us your code and explain the problem. |
Forum: PHP 20 Days Ago |
| Replies: 4 Views: 319 Try this:
<?php
mysql_connect(HOST,USER,PASS);
@mysql_select_db("db303278079") or die( "Unable to select database");
$query="select * from ".RECORDS." WHERE area='manchester' order... |
Forum: RSS, Web Services and SOAP 25 Days Ago |
| Replies: 9 Views: 708 There are spaces and empty lines before the first tag... make sure you remove them. |
Forum: HTML and CSS 28 Days Ago |
| Replies: 3 Views: 454 Here's one:
http://purecssmenu.com/ |
Forum: IT Professionals' Lounge 28 Days Ago |
| Replies: 5 Views: 593 Personally I'd go for C#, but it also depends on the cloud platform you want to use. For example, see a demo on how to start with Windows Azure here:... |
Forum: PHP 33 Days Ago |
| Replies: 2 Views: 179 It all depends on the size of the scripts and how much they influence the webpage. |
Forum: JavaScript / DHTML / AJAX 34 Days Ago |
| Replies: 15 Views: 1,165 Damn... missed it completely. Your <label> tag isn't correctly closed. It is closed with </font>. Replaced it with </label> and now it works in Opera and IETester. |
Forum: MySQL Nov 9th, 2009 |
| Replies: 4 Views: 441 No, use phpMyAdmin to export your database to an .sql file. It is a text file containing all queries to recreate your database. |
Forum: MySQL Nov 5th, 2009 |
| Replies: 2 Views: 412 Something like this:
select * from product where id not in (select product_id from discount) |
Forum: PHP Nov 4th, 2009 |
| Replies: 8 Views: 442 Why not let the browser handle it:
<?php
echo '<a href="mailto:' . $row_master_view['email'] . '">' . $row_master_view['email'] . '</a>';
?> |
Forum: MySQL Oct 30th, 2009 |
| Replies: 1 Views: 432 $strSQL = "SELECT DISTINCT area FROM hospital where area like '%$strSearchVal' "; |
Forum: MySQL Oct 26th, 2009 |
| Replies: 1 Views: 386 Check out this first: http://dev.mysql.com/doc/refman/5.1/en/
It contains everything you need to know to get started. |
Forum: PHP Oct 23rd, 2009 |
| Replies: 4 Views: 719 If you really need to do this this way, then creating a msqli_multi_query could help. That way the server gets all queries at once, and does not need to handle each query separately.
... |
Forum: MySQL Oct 13th, 2009 |
| Replies: 2 Views: 411 This will help:
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html |
Forum: PHP Oct 13th, 2009 |
| Replies: 1 Views: 264 http://www.tipstrs.com/tip/7934/Increasing-PHP-session-lifetime |
Forum: PHP Oct 13th, 2009 |
| Replies: 2 Views: 286 Insert this at the top of both pages:
if (! session_id())
session_start();
Then you can use
$_SESSION['first'] = $_POST['first']; |
Forum: Pascal and Delphi Oct 12th, 2009 |
| Replies: 4 Views: 476 Try it on paper. Write the values down. Then change them as you walk through each loop (in your head). |
Forum: Geeks' Lounge Oct 9th, 2009 |
| Replies: 31 Views: 1,658 |
Forum: PHP Oct 8th, 2009 |
| Replies: 6 Views: 281 Check this line: header("Content-length: " . filesize( $getfile ));
Maybe filesize cannot find your file and returns 0. You may have to use $filepath instead. I think you need to output the file... |
Forum: PHP Oct 7th, 2009 |
| Replies: 8 Views: 469 |
Forum: PHP Oct 1st, 2009 |
| Replies: 2 Views: 473 $ha = fopen($filename,"r");
while ( !feof($ha) ) {
You will get the error message if the fopen fails. If you want to avoid these errors, try:
$ha = fopen($filename,"r");
if (! $ha) {
//... |
Forum: PHP Sep 22nd, 2009 |
| Replies: 5 Views: 358 I use wampserver as local development server. Typically I use PHPMailer, Smarty, jQuery, Shadowbox and Google API's. Next to that are my cms, some custom classes and image packs. |
Forum: PHP Sep 22nd, 2009 |
| Replies: 5 Views: 821 Something like this:
RewriteRule "^photo/(.*)$" "http://www.linkzdirect.com/art/$1" [R=301,L] |
Forum: PHP Sep 15th, 2009 |
| Replies: 5 Views: 1,207 According to the section "PHP Access" in http://code.google.com/apis/ajaxsearch/documentation/#The_Basics it should be possible.
My guess is you already tried this. At work we use the paid... |
Forum: MySQL Aug 26th, 2009 |
| Replies: 2 Views: 446 http://dev.mysql.com/doc/refman/5.1/en/server-logs.html |
Forum: PHP Jul 19th, 2009 |
| Replies: 20 Views: 1,214 <?php
if (! session_id()) {
session_start();
}
if (! isset($_SESSION['timestamp'])) {
$_SESSION['timestamp'] = time();
}
if (time() - $_SESSION['timestamp'] < 60) { |
Forum: PHP Jul 16th, 2009 |
| Replies: 6 Views: 274 RewriteRule ^www.example.com\/admin\/.* http://192.168.0.1/$1 [R=301,L]
would redirect everything starting with www.example.com/admin/ to http://192.168.0.1/ |
Forum: Database Design Jul 7th, 2009 |
| Replies: 61 Views: 6,235 Doesnt matter. I can understand your frustration. Create a table containing a blob field (not varbinary, my mistake). Then you can insert data in the table. I made a screenshot so you can see:
... |
Forum: PHP Mar 9th, 2009 |
| Replies: 6 Views: 509 <?php
$result = mysql_query('SELECT MAX(mailer_id),email FROM mailer_directory')or exit(mysql_error());
$row = mysql_fetch_assoc($result);
echo 'the max mailer_id is ' . $row['email'];
?>... |
Forum: PHP Mar 4th, 2009 |
| Replies: 6 Views: 904 See the exec/shell_exec/system commands. If you're on Windows/IIS then you may have rights issues. Didn't get some programs running from PHP. *nix shouldnt be a problem. |
Forum: PHP Feb 26th, 2009 |
| Replies: 2 Views: 526 How about this:
print "<pre>";
$row = mysql_fetch_array($result);
while ($row) {
print 'This ID: ' . $row[0] . ' :: ';
$row = mysql_fetch_array($result);
if ($row)
print 'Next ID: ' .... |
Forum: PHP Jan 23rd, 2009 |
| Replies: 8 Views: 807 <?php
class Tag {
var $name = '';
var $attributes = array ();
var $content = array ();
function Tag($a_name) {
$this->name = $a_name;
} |