Search Results

Showing results 1 to 40 of 226
Search took 0.02 seconds.
Search: Posts Made By: pritaeas
Forum: IT Professionals' Lounge 1 Day Ago
Replies: 1
Solved: ethernet port
Views: 87
Posted By pritaeas
Wider as in width. A telephone plug is several mm smaller than an ethernet plug. This is because the telephone uses 6 cables, and ethernet 8.

http://en.wikipedia.org/wiki/RJ11,_RJ14,_RJ25...
Forum: PHP 3 Days Ago
Replies: 7
Solved: strange results
Views: 179
Posted By pritaeas
I now see that the action attribute of the form points to ../PHP/login.php

Can you try just login.php (assuming this is the name of your script).

If that doesn't work, try GET just for...
Forum: PHP 3 Days Ago
Replies: 7
Solved: strange results
Views: 179
Posted By pritaeas
It may be too obvious but I have to ask: You do have php tags around statements ?


<?php
$uname = $_POST['login'];
$pword = $_POST['lpassword'];
echo "<br/>$uname<br/>";
?>
Forum: PHP 3 Days Ago
Replies: 7
Solved: strange results
Views: 179
Posted By pritaeas
$query = 'SELECT id FROM user WHERE username="$uname"';


Since you are using single quotes for this string, $uname is not replaced with the value of your variable. You should use this:

$query...
Forum: ASP.NET 7 Days Ago
Replies: 1
Views: 212
Posted By pritaeas
Next time, use code tags when posting code. This is very hard to read.

Anyway, this code: If Page.IsValid Then should be preceded by Page.Validate
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 5
Views: 257
Posted By pritaeas
Thanks for the example Airshow. Just one more reason to use jQuery for me ;)
Forum: PHP 7 Days Ago
Replies: 6
Views: 205
Posted By pritaeas
Currently PEAR supports the following list of licenses:
- PHP License
- Apache License
- LGPL
- BSD style
- MIT License

http://pear.php.net/manual/en/faq.devs.php#faq.licenses
Forum: PHP 7 Days Ago
Replies: 6
Views: 205
Posted By pritaeas
I have only used it to connect to DB, but I've never had much problems with the PEAR packages. So yes, I think it's reliable.
Forum: PHP 7 Days Ago
Replies: 6
Views: 205
Posted By pritaeas
Is PEAR:Auth not an option ?

Think XML is the only one not supported yet by default.
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 5
Views: 257
Posted By pritaeas
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 14 Days Ago
Replies: 5
Views: 273
Posted By pritaeas
The first notice you get is because $_POST[dtext] may not have been set. This will result in an invalid query, after which it will fail, and put false in $result.

Since $result is false (because...
Forum: PHP 14 Days Ago
Replies: 3
Views: 388
Posted By pritaeas
Then you could use this one:

SELECT * FROM agents WHERE (sponsor = '1' or sponsor = '2' or sponsor = '3') LIMIT 1
Forum: XML, XSLT and XPATH 14 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
If it is not for training, then I wouldn't recommend using PHP/MySQL with XML/XSLT. The main reason would be that MySQL has no built-in support yet to return result sets as XML (like MSSQL has). So,...
Forum: XML, XSLT and XPATH 15 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
If you need to output xml directly from mysql:
http://www.mysqludf.org/lib_mysqludf_xql/
Forum: PHP 15 Days Ago
Replies: 14
Views: 435
Posted By pritaeas
Got your PM too, but the question was already nicely answered.
Forum: XML, XSLT and XPATH 15 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
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: XML, XSLT and XPATH 15 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
If it is for training, then there is no reason not to try XSLT.

I don't know where you get your XML from. My sites are normally built by getting MySQL data into an array/object and passing it to...
Forum: PHP 15 Days Ago
Replies: 14
Views: 435
Posted By pritaeas
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: XML, XSLT and XPATH 15 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
For me, I've learned XSLT when switching to ASP.NET. The newer option here would be repeaters. There are probably more newer options, also for different languages, but I'm not using them at the...
Forum: PHP 15 Days Ago
Replies: 4
Views: 291
Posted By pritaeas
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: XML, XSLT and XPATH 15 Days Ago
Replies: 13
Views: 685
Posted By pritaeas
Pro: If you can retrieve your (database, rss) data in XML then with XSLT you can easily turn it into an (X)HTML page.

Example: If you want to show part of an external RSS feed on your website,...
Forum: PHP 15 Days Ago
Replies: 4
Views: 291
Posted By pritaeas
The if ($count) is inside the for loop, which doesn't get executed if there are no records found. Place the if ($count == 0) outside the for loop to fix it.
Forum: PHP 15 Days Ago
Replies: 3
Views: 388
Posted By pritaeas
The LIMIT always applies to the end result of the query. Even without the limit, the count(*) will only return 1 result row.

I'm not sure of what you try to achieve. If you want the count per...
Forum: JavaScript / DHTML / AJAX 16 Days Ago
Replies: 11
Views: 776
Posted By pritaeas
Here is an example of how you could do it using jQuery:
http://www.pritaeas.net/public/jquery/enable-submit/
Forum: JavaScript / DHTML / AJAX 16 Days Ago
Replies: 7
Views: 423
Posted By pritaeas
Yes. Although at the time of posting I wasn't sure if XMLHttpRequest was asynchronous , but now I'm sure it is. (Not every function call is asynchronous by default.)
Forum: JavaScript / DHTML / AJAX 16 Days Ago
Replies: 7
Views: 423
Posted By pritaeas
Yes, that is what I mean, although I am not sure if XmlHttpRequest is a good example.
Forum: JavaScript / DHTML / AJAX 17 Days Ago
Replies: 7
Views: 423
Posted By pritaeas
Asynchronous just means that a call is made to e.g. a function, but that the code (next statement) won't wait until a response is received.
Forum: RSS, Web Services and SOAP 17 Days Ago
Replies: 9
Views: 609
Posted By pritaeas
You are also including displace.php. Could that be causing the extra lines ?
Forum: RSS, Web Services and SOAP 18 Days Ago
Replies: 9
Views: 609
Posted By pritaeas
Look at the source of your page output: http://www.socialemo.com/rss.php

(view in browser, then view source)

There are 10 empty lines before the <?xml tag. They have to come from somewhere....
Forum: RSS, Web Services and SOAP 20 Days Ago
Replies: 9
Views: 609
Posted By pritaeas
There are spaces and empty lines before the first tag... make sure you remove them.
Forum: RSS, Web Services and SOAP 20 Days Ago
Replies: 9
Views: 609
Posted By pritaeas
This is the header I'm using:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
Forum: HTML and CSS 23 Days Ago
Replies: 3
Views: 402
Posted By pritaeas
Here's one:
http://purecssmenu.com/
Forum: PHP 23 Days Ago
Replies: 4
Views: 241
Posted By pritaeas
The mysql_fetch_array function does this. It retrieves the table columns by id AND by name. You can use mysql_fetch_row instead.
Forum: ASP.NET 24 Days Ago
Replies: 3
Views: 463
Posted By pritaeas
What is the error message ?
Forum: MySQL 28 Days Ago
Replies: 3
Views: 507
Posted By pritaeas
SELECT
elec.sum(votes) as votes,
stat.sum(rating) as rating,
votes/rating as percentage
FROM elec, stat
WHERE YEAR=2009


Only thing I'm not sure about is the YEAR = 2009 in the...
Forum: JavaScript / DHTML / AJAX 29 Days Ago
Replies: 2
Views: 433
Posted By pritaeas
Like this ?

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
...
Forum: PHP 29 Days Ago
Replies: 7
Views: 368
Posted By pritaeas
Are you perhaps using the escape twice before storing the value in the db ? The slash shouldn't be in there.
Forum: PHP 29 Days Ago
Replies: 7
Views: 368
Posted By pritaeas
The mysql_real_escape_string is intented to be used when you include a variable into an sql statement. You are just displaying the result. That is why you are shown a value with the extra slashes.
...
Forum: PHP 30 Days Ago
Replies: 4
Solved: header problem
Views: 241
Posted By pritaeas
There may be something in session.php or config.php that adds spaces to the output (or more).
Forum: MySQL 31 Days Ago
Replies: 4
Views: 433
Posted By pritaeas
No, use phpMyAdmin to export your database to an .sql file. It is a text file containing all queries to recreate your database.
Showing results 1 to 40 of 226

 


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

©2003 - 2009 DaniWeb® LLC