Jump to content

drisate

Members
  • Posts

    805
  • Joined

  • Last visited

Everything posted by drisate

  1. Theres no point in doing it for you because you might get the problems again in tthe future and you will end up asking for somebody to do it again ... lol we are here to help not work for you. But if you are looking for a freelancer post it in the freelance board. You should use tables to align your dives <table border="0" cellpadding="3" cellspacing="3" width="100%"> <tr> <td>left div</td> <td>right div</td> </tr> </table>
  2. none of those ('$fn', '$ln', '$e', SHA('$p'), '$r' )"; are currently initiated in the code you posted ... so your probably missing a part somwhere. You can always try to echo $r and see if the value is equal to something when you insert into Try to look for the code that initiates everything
  3. Would that work even if theres no \n apparent in the database? ex: this is my value thats would be trim() or the \n replace?
  4. sorry that was for an other topic lol hehe helping on to much at the time i get that 25 seconde cooldown alot lol Well i am not 100% sur what you teacher calls a conditional operator but in my opinion "if" and "else" are conditions so yes
  5. I am not sur i understand where is $r initiated?
  6. drisate

    Get IP

    You have them all here http://ca.php.net/reserved.variables
  7. How abbout posting the code lol How are we supose to telle you whats wroung? hehe
  8. You have them all here http://ca.php.net/reserved.variables
  9. or even like this if (is_numeric($number)){ $Result = "This number is numeric"; if( $number & 1 ){ $Result. = " and it's odd!"; }else{ $Result. = "and it's even!"; } }else{ $Result = "This number is not numeric"; } echo $Result;
  10. Why not jusy check is numeric then check if even if( $number & 1 ){ $event_odd = "and it's odd!"; }else{ $event_odd = "and it's even!"; } if (is_numeric($number)){ $numeric = "This number is numeric"; }else{ $numeric = "This number is not numeric"; $not=1; } echo $numeric; if ($not==""){echo $event_odd;}
  11. whats the name of the feild you would like to unable html in and whats does the data look like in the db when you put html in the way it is now
  12. try this HERE a.intLodgeNumber='$id' GROUP BY a.strLodgeName LIMIT 0,50
  13. If you would like help out of me at least post me the code related to the errors lol or else theres not much i can do for you.
  14. <?php if (_fnc("user", $_GET["id"], "quote") != "") html_entity_decode($tpl->Zone("personalQuote", "printQuote")); if (_fnc("user", $_GET["id"], "header") != "") html_entity_decode($tpl->Zone("personalHeader", "printHeader")); else html_entity_decode($tpl ->Zone("personalHeader", "noHeader")); ?>
  15. Try this <?php $usrid=$_GET['usrid']; $sessionvar=$_SESSION['usid']; connect_to_db(); $block="select * from cw_blocklists where blkd_userid=$sessionvar and blker_usid=$usrid"; $result=mysql_query($block)or die (mysql_error()); if (mysql_num_rows($result)) { { ?> <script language="javascript"> alert("You are a Blocked user"); history.go(-1);//for go to just back of the page </script> <?php //header ("Location:client/blocked_message.php"); } else { **********my code goes here**** }
  16. It's kind of hard helping you with comunication problems hehe if this print("<tr>"); echo "<tr align=\"center\" bgcolor=\"#EFEFEF\">\n"; echo "<td class=\"td_id\">$variable20</td>\n"; echo "<td class=\"td_id\">$variable21</td>\n"; echo "<td class=\"td_id\">$variable22</td>\n"; echo "<td class=\"td_id\">$variable23</td>\n"; echo "<td class=\"td_id\">$variable24</td>\n"; print("</tr>"); the part only showing one result? If yes it's most likly because it's not in the wile loop This is the while ($row = @mysql_fetch_array($query)) { and it ends by } Put the code before the } if you would like it to be looped changed at every new rows What did you change to the query?
  17. You query is probably wroung. Can you post the query string inserted into mysql_num_rows
  18. so all you have to do is put the id of that company an send it in the adress like this http://www.la-mason.com/profile.php?id=21 then you grab that id using $_GET[id] and use that to build yoou query that will bring up everything $list = mysql_query("SELECT * FROM `mytable` WHERE id='$_GET[id]'") or die (mysql_error()); if (mysql_num_rows(list)) { while ($company= mysql_fetch_array($list)) { // Then you can use $company[] echo "This is the comapany name: $company[name]"; } }
  19. Abbout DELETE_IMAGE_REQUIRED it's already defined so you can comment it out or test it if (DELETE_IMAGE_REQUIRED==""){[...]} Can you post the required code for the rest of your question? that would help thx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.