Recent content by Pratip

  1. P

    How can I allow ONLY one IP with PHP?

    use $_SERVER['REMOTE_ADDR'] and check the ip if it matches then do what you want......... if($_SERVER['REMOTE_ADDR']=='[some ip]') { blah blah..... } Hope this helps............
  2. P

    How can I create a website in Dreamweaver CS3 that my client can edit without

    I dont think so, Either he need to know html to change the code or he needs to have Dreamweaver CS3 where he can change the elements using the design mode. Hope this helps.........
  3. P

    How to put value of paragraph into JavaScript variable in an AJAX function.?

    Its working absolutely fine in my machine. Seems some other problems :(
  4. P

    How to put value of paragraph into JavaScript variable in an AJAX function.?

    Its working absolutely fine in my machine. Seems some other problems :(
  5. P

    How to put value of paragraph into JavaScript variable in an AJAX function.?

    Its working absolutely fine in my machine. Seems some other problems :(
  6. P

    My insert.php 4 inserting into database doesnt work here is the code below tell me

    Looking at a glance, it feels like in this statement $sql = "INSERT INTO t_user(u_id, firstName, lastName, busName, eAddress, contactNo, uname, passw) VALUES ('', $firstN, $lastN, $busName, $e_mail, $contactNo, $uname, $passw)"; u should have given ' at start and end of those database fields...
  7. P

    My insert.php 4 inserting into database doesnt work here is the code below tell me

    Looking at a glance, it feels like in this statement $sql = "INSERT INTO t_user(u_id, firstName, lastName, busName, eAddress, contactNo, uname, passw) VALUES ('', $firstN, $lastN, $busName, $e_mail, $contactNo, $uname, $passw)"; u should have given ' at start and end of those database fields...
  8. P

    How do you write in [enter key] into stdin?

    try using it's keycode. it is 13
  9. P

    [PHP]how can I get this text in blue color? echo "Website: " . $row['website'];?

    echo "<font color='blue'>Website: " . $row['website']."</font>"; Hope this helps..............
  10. P

    [PHP]how can I get this text in blue color? echo "Website: " . $row['website'];?

    echo "<font color='blue'>Website: " . $row['website']."</font>"; Hope this helps..............
  11. P

    how do i get my table to alternate row colors using php?

    $i=0; while($row = mysql_fetch_array($result)) { if($i%2==0) { $col = ' style="background-color:red"'; } else { $col = ' style="background-color:blue"'; } echo "<tr ".$col.">"; echo "<td>" . $row['custName'] . "</td>"; echo "<td>" . $row['custPhone'] . "</td>"; echo...
  12. P

    how do i get my table to alternate row colors using php?

    $i=0; while($row = mysql_fetch_array($result)) { if($i%2==0) { $col = ' style="background-color:red"'; } else { $col = ' style="background-color:blue"'; } echo "<tr ".$col.">"; echo "<td>" . $row['custName'] . "</td>"; echo "<td>" . $row['custPhone'] . "</td>"; echo...
  13. P

    How to control line spacing in HTML, no CSS allowed?

    try padding (top/bottom etc.) or margin (top/bottom etc.) whichever best fits ur purpose. Hope this helps......
  14. P

    How do you split an html link with a javascript string?

    Not clear what you want. If you want the string "90210" from the string "cheese.com/zipcode=90210&lang=eng" u may do the following : var myString = "cheese.com/zipcode=90210&lang=eng"; var mySplitResult = myString.split("="); var mySplitResult2 = mySplitResult[1].split("&")...
  15. P

    Can you help me getting this PHP code to work>?

    i've tried your code locally. It's running fine. I dont get what the problems are there in your server. I can give you two advises. 1) Debug using just a php file where there is a single hard coded mail function and figure out whether the problem is with mail configuration settings on your...
Back
Top