Forum: PHP 3 Days Ago |
| Replies: 5 Views: 169 This is wrong. Try,
$query = "SELECT * FROM Employee WHERE $method = '$search'";
$result = mysql_query($query); |
Forum: PHP 8 Days Ago |
| Replies: 14 Views: 485 You can do it in 2 simple ways (maybe there are even more, but I am not aware of it).
You can either save the data of the first form in session after it is posted, and then, when the second form is... |
Forum: PHP 9 Days Ago |
| Replies: 4 Views: 226 Technically, it doesn't matter if you have only 1 line statement after a condition. ie.,
<?php
$x = 1;
if($x == 1)
echo "$x is valid.";
else
echo "$x is invalid";
?> |
Forum: PHP 9 Days Ago |
| Replies: 9 Views: 246 Not only echo, you will get this warning if you have session_start along with header function. Use ob_start(); as the first line of your script to turn on output buffering and ob_end_flush(); as... |
Forum: PHP 10 Days Ago |
| Replies: 3 Views: 198 Very simple.
<html>
<head>
<script type="text/javascript">
function checkCheckbox() {
var countselection = 0;
var maximumselection = 2;
var ch = document.getElementsByName('choice');
... |
Forum: PHP 10 Days Ago |
| Replies: 1 Views: 200 To get a new line, you should add a <br /> to your echo.
ie.,
<?php
echo $abbr['US']['MI']."<br />";
?>
//or simply
<?php
echo $abbr['US']['MI'];
echo "<br />"; |
Forum: PHP 10 Days Ago |
| Replies: 15 Views: 362 Or simply, $string = implode(",",$_POST['Prefered_Engineers']); |
Forum: DaniWeb Community Feedback 12 Days Ago |
| Replies: 11 Views: 736 Yep. There is a bug. This is what I did.
I logged out, came back to this thread and tried to 'reply with quote'. It asked me to log in.
Url :... |
Forum: PHP 12 Days Ago |
| Replies: 13 Views: 449 There are still some typos. $GET_['formfield'] instead of $_GET['formfield']. One simple suggestion though. You don't need a switch/if-elseif-else condition to find out the day. A simple array will... |
Forum: PHP 17 Days Ago |
| Replies: 109 Views: 3,476 Maybe the root cause for all this confusion is the word dehasher. ;) Its not exactly a dehasher, but a hash-matcher ! :icon_cool: |
Forum: Geeks' Lounge Oct 23rd, 2009 |
| Replies: 13 Views: 690 Okay! Here is the direction. From this point >> * << Go straight up and stop when you see the text "Software Development". Since you have already traveled this far, you might be tired and maybe you... |
Forum: DaniWeb Community Feedback Oct 7th, 2009 |
| Replies: 3 Views: 550 Hmm.. Right.. This (http://www.daniweb.com/newsletter/) link is missing! |
Forum: DaniWeb Community Feedback Oct 6th, 2009 |
| Replies: 7 Views: 1,158 Hi all,
I have a suggestion (not sure if it has already been discussed).
In the profile, at the community tab, we have, for example,
If this number 10 is made a href linking to all the... |
Forum: PHP Oct 5th, 2009 |
| Replies: 5 Views: 255 Instead of storing the password just like a normal string, save it as an encrypted string, using SHA1 or something. This will provide you more security as well as solves your issue.
Here is an... |
Forum: PHP Sep 14th, 2009 |
| Replies: 13 Views: 4,583 Hi! Welcome to Daniweb.. Is this what you want ?
<html>
<head>
<script type="text/javascript">
function enableButton() {
if(document.getElementById('option').checked){... |
Forum: Geeks' Lounge Jul 10th, 2009 |
| Replies: 43 Views: 2,683 What is the big deal about these badges anyway ? It isn't a real badge that you can show off to the kids playing monopoly and say, "Take a good look at my featured poster badge. I am a famous... |
Forum: PHP May 23rd, 2009 |
| Replies: 3 Views: 396 Source: http://in2.php.net/function.mysql-query |
Forum: Geeks' Lounge Apr 27th, 2009 |
| Replies: 8 Views: 750 You can. Go to your Member Certificate (http://www.daniweb.com/certificates/). You will see
at the bottom of the page. |
Forum: PHP Apr 24th, 2009 |
| Replies: 5 Views: 352 I don't get it ! If you have the entire address in the table, why not simply use,
echo "<img src='".$row['image']."'>"; ? |
Forum: PHP Apr 24th, 2009 |
| Replies: 4 Views: 1,334 Instead of having different names for your checkboxes, use a checkbox array and on submit, loop through all the selected checkbox and insert a record to the table.
For eg.,
<form name="addcode"... |
Forum: MySQL Apr 17th, 2009 |
| Replies: 1 Views: 1,820 :icon_redface: After numerous attempts, I found out the solution. Here it is.
INSERT INTO a (name, age, postcode, city )
SELECT name, age, postcode, city
FROM b where counter = 1
AND NOT ... |
Forum: Geeks' Lounge Apr 8th, 2009 |
| Replies: 12 Views: 1,058 You aren't serious! Are you ? :D |
Forum: PHP Apr 2nd, 2009 |
| Replies: 21 Views: 1,005 In all the queries, change my_db to user. :) Then I guess it should work fine! |
Forum: PHP Apr 1st, 2009 |
| Replies: 6 Views: 495 Thats strange. Because that same script showed scroll bar for me. |
Forum: MySQL Apr 1st, 2009 |
| Replies: 5 Views: 445 Bingo! You are right. Check this link!
http://www.webmasterworld.com/forum88/9091.htm |
Forum: PHP Apr 1st, 2009 |
| Replies: 2 Views: 481 Replace all occurance of " with ' in your message. :) |
Forum: Geeks' Lounge Mar 25th, 2009 |
| Replies: 3 Views: 542 Okay..... Then what ? Cry out loud for being single (http://www.daniweb.com/forums/thread180643.html) ? :icon_rolleyes: |
Forum: Geeks' Lounge Mar 25th, 2009 |
| Replies: 600 Views: 45,687 I can understand how you feel! I started smoking 6 years ago and finding it very difficult to quit! I had quit for a week, but I didn't have enough will power to overcome the urge. :(
Even the... |
Forum: DaniWeb Community Feedback Mar 19th, 2009 |
| Replies: 6 Views: 1,050 Why ? Probably to solve this (http://www.daniweb.com/forums/thread182366.html) query ? Eh ?:icon_rolleyes: |
Forum: PHP Mar 10th, 2009 |
| Replies: 5 Views: 719 @Kevin wood, Your script seems fine.
Try this.
$query = "SELECT email FROM emails";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
... |
Forum: PHP Mar 5th, 2009 |
| Replies: 4 Views: 555 header("location: index.php?variable1=".$variable1."&variable2=".$variable2);
:) |
Forum: PHP Mar 5th, 2009 |
| Replies: 5 Views: 294 table = mysql reserve keyword.
Use `table` instead. |
Forum: MySQL Feb 27th, 2009 |
| Replies: 14 Views: 3,713 <?php
// open database connection code and then my code as follows
//$id = mysql_insert_id(); << This line wouldn't work ie., $id will be null because there isn't any insert statement before... |
Forum: PHP Feb 26th, 2009 |
| Replies: 4 Views: 427 In every page you use session variables, you should have session_start(). :) |
Forum: MySQL Feb 26th, 2009 |
| Replies: 7 Views: 1,081 |
Forum: PHP Feb 25th, 2009 |
| Replies: 109 Views: 3,476 I am good OmniX! How are you ?
I don't think there is any decrypting script/function which you can download. They have mentioned how there can be a collision between 2 different strings giving... |
Forum: PHP Feb 25th, 2009 |
| Replies: 4 Views: 387 This must be
In your example, you are checking if variable filename value is NULL or FALSE (which is wrong). And, you should use logical operator "and" instead of "or". |
Forum: MySQL Feb 24th, 2009 |
| Replies: 3 Views: 644 update journey j, passengers p, shuttle s set j.occupancy=j.occupancy - 1 where p.journey_id = j.id and s.id = j.shuttle_id and s.id = 1 and p.passenger_name='bill gates'
wouldn't this work ? Many... |
Forum: DaniWeb Community Feedback Feb 24th, 2009 |
| Replies: 65 Views: 5,980 I don't think that is a good idea! It would be a herculean task for the committee to find one person in every community every month (not that there aren't enough people, but there aren't enough... |
Forum: PHP Feb 12th, 2009 |
| Replies: 6 Views: 397 @Rhyan, \n will return extra line breaks. For example, If the actual string is
ab
bc
\n will return
ab
bc |