Forum: PHP 1 Day Ago |
| Replies: 6 Views: 193 You shouldn't be using session_register or session_is_registered anyway, take a look at the PHP documentation.
http://php.net/session_is_registered |
Forum: PHP 5 Days Ago |
| Replies: 10 Views: 320 Right below # BEGIN SCRIPT place
error_reporting(E_ALL); Then follow the FAQ on the main page of the PHP forums |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 3 Views: 316 I think I understand what you were trying to say:
var ids = [];
$('#rightList > li').each(function(el) {
ids.push(el.id);
}); |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 3 Views: 355 You forgot the echo
vart pt = <?php echo json_encode($prt); ?> |
Forum: HTML and CSS 33 Days Ago |
| Replies: 1 Views: 466 Short answer: Yup. Unless you override it with a more specific selector and color it'll inherit (hence the Cascade in Cascading Style Sheets) |
Forum: MySQL 33 Days Ago |
| Replies: 5 Views: 492 Evn f ur prfsnal u nd 2 shw efrt. <--- This is hard to read
Even if you're a professional you need to show effort before we help you. |
Forum: MySQL 33 Days Ago |
| Replies: 5 Views: 492 I'm gonna go head and say no. (http://www.daniweb.com/forums/announcement8-2.html) |
Forum: PHP 34 Days Ago |
| Replies: 4 Views: 262 If you want to place it dynamically inside another page you would have one PHP file generate the image and then point to that in an <img> tag.
But to set the content-type just use:... |
Forum: PHP Nov 12th, 2009 |
| Replies: 109 Views: 3,834 It doesn't matter what year you're talking about a hash is by definition impossible to reverse. A hash is ONE WAY. You may be able to use a supercomputer to calculate hash collisions which result in... |
Forum: PHP Nov 11th, 2009 |
| Replies: 109 Views: 3,834 OK, I gotta throw my 2 cents in here. There is no such thing as a de-hasher. A hash is ONE WAY. The only thing that can be done is to produce every possible string against the salt using the same... |
Forum: PHP Nov 10th, 2009 |
| Replies: 3 Views: 259 Don't use HTTP_COOKIE_VARS, use _COOKIE
http://php.net/$_COOKIE |
Forum: JavaScript / DHTML / AJAX Nov 3rd, 2009 |
| Replies: 1 Views: 423 Inside the function basicAjaxSwitch you are defining a variable basicAjaxSwitch so it's being overwritten. Just use a different variable name inside the function. |
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009 |
| Replies: 1 Views: 592 A) Use code tags
B) This is a PHP problem not Javascript
C)
<?xml version="1.0" encoding="UTF-8"?> // <---- this is your problem because of the <?
If you're in PHP you have to echo the <?xml... |
Forum: C++ Oct 14th, 2009 |
| Replies: 6 Views: 254 Based on what you needed it would make sense for the C++ app to listen (be the server) and PHP to send the data to the server (client) |
Forum: JavaScript / DHTML / AJAX Oct 14th, 2009 |
| Replies: 3 Views: 574 You can do something like this
<form action="delete.php or whatever" onsubmit="return confirm('Are you sure?');">
That will pop open a box that says "Are you sure?" with yes and no buttons, if... |
Forum: PHP Oct 13th, 2009 |
| Replies: 4 Views: 798 You have an extra , right before the WHERE |
Forum: JavaScript / DHTML / AJAX Oct 13th, 2009 |
| Replies: 2 Views: 672 You can't. Simple as that :) Even if you did disable it with javascript all the user would have to do is disable javascript and hit printscreen. |
Forum: JavaScript / DHTML / AJAX Oct 11th, 2009 |
| Replies: 5 Views: 500 No you can't. i in your scenario is the key for each value so the only way to get the actual value would to do ['val1', 'val2', 'val3'][i] which would defeat the purpose :) |
Forum: C Oct 8th, 2009 |
| Replies: 1 Views: 220 A) This is not the C forum
B) You're using void main!
C) Stop using conio!
D) Don't use getch!
E) Use code tags |
Forum: PHP Oct 6th, 2009 |
| Replies: 107 Views: 3,560 There's really no better tutorial for regular expressions that http://regular-expressions.info |
Forum: MySQL Oct 6th, 2009 |
| Replies: 4 Views: 405 Wow, I can't believe I suggested that. That is insanely slow and stupid, sorry. Just do
$search = str_replace(' ', '%', $search); |
Forum: MySQL Oct 5th, 2009 |
| Replies: 4 Views: 405 $search = join('%', explode(' ', $search));
/*
For Example:
search = 'John Smith';
search = join('%', explode(' ', search));
search now = John%Smith
*/ |
Forum: PHP Oct 4th, 2009 |
| Replies: 6 Views: 536 http://php.net/curl Google is your friend. |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 7 Views: 417 Thinks you can do to try and help yourself:
Search the Daniweb forums for the 8000 other posts asking what AJAX is
Google for "AJAX"
Google for "AJAX tutorial" |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 7 Views: 417 Neither of those links are bad, read them. |
Forum: PHP Oct 3rd, 2009 |
| Replies: 11 Views: 654 There really is no "best" with IDEs. Try a few out for a week or so (enough to get to know the IDE) then try another one. At the end figure out which one you like the best and stick with it.
Some... |
Forum: MySQL Oct 2nd, 2009 |
| Replies: 2 Views: 455 A) Why is your ID field TEXT?
B)
SELECT MAX(CAST(id AS DECIMAL)) as id FROM object |
Forum: PHP Oct 1st, 2009 |
| Replies: 2 Views: 818 Add a captcha
http://recaptcha.net/ |
Forum: PHP Sep 29th, 2009 |
| Replies: 3 Views: 358 Just no. For two reasons: Reason 1) You're duplicating code, if he wants to change the td's to dd's or something like that he has to change it in two places, Reason 2) I'm not even going to begin... |
Forum: C++ Sep 23rd, 2009 |
| Replies: 2 Views: 322 _ is usually associated with gettext with deals with text localization. |
Forum: C++ Sep 15th, 2009 |
| Replies: 3 Views: 241 You might want to try compiling and working your way through the errors. These two lines will definitely cause issues.
// call function calcAverage
int calcAverage(int score1, int score2, int... |
Forum: PHP Sep 11th, 2009 |
| Replies: 5 Views: 381 http://php.net/preg_match |
Forum: PHP Sep 10th, 2009 |
| Replies: 3 Views: 1,467 ... ... php.net/parse_url (http://php.net/parse_url) |
Forum: PHP Aug 19th, 2009 |
| Replies: 2 Views: 243 Cool, how's that working out for you? |
Forum: C++ Aug 12th, 2009 |
| Replies: 1 Views: 225 I'll help you first by saying this isn't your first post, it's your 11th, you should know how to use code tags by now. You should also know that we don't give help to those who don't show effort. |
Forum: C++ Aug 12th, 2009 |
| Replies: 3 Views: 415 The same exact way you did with Person except replace Person with Patient
class Patient : public Person {};
class StudentPatient : public Patient {};
... |
Forum: C++ Aug 5th, 2009 |
| Replies: 6 Views: 424 http://www.imagemagick.org/Magick++/tutorial/Magick++_tutorial.pdf |
Forum: PHP Aug 3rd, 2009 |
| Replies: 4 Views: 299 It's really up to you, everyone learns differently. For you it may help you learn faster. Personally, I don't know ActionScript so I can't attest to their similarity. With PHP having so many built-in... |
Forum: PHP Jul 22nd, 2009 |
| Replies: 4 Views: 523 you're already in PHP, you don't need to do <?php echo Also, you're in double quotes so you must surround the $onrow["index"] with {} ie., {$onrow["index"]} |
Forum: C++ Jul 22nd, 2009 |
| Replies: 3 Views: 632 Cool, how's that working out for you?
http://www.daniweb.com/forums/announcement8-2.html |