drisate
Members-
Posts
805 -
Joined
-
Last visited
Everything posted by drisate
-
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>
-
hehe np bro
-
thats great thx :-)
-
?PHP Include Question - Layout not working right :(
drisate replied to lappe's topic in PHP Coding Help
i still need the code lol -
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
-
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?
-
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
-
I am not sur i understand where is $r initiated?
-
You have them all here http://ca.php.net/reserved.variables
-
?PHP Include Question - Layout not working right :(
drisate replied to lappe's topic in PHP Coding Help
How abbout posting the code lol How are we supose to telle you whats wroung? hehe -
You have them all here http://ca.php.net/reserved.variables
-
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;
-
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;}
-
yes
-
yes use trim()
-
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
-
mysql_fetch_array(): supplied argument is not a valid MySQL result ??
drisate replied to JTapp's topic in PHP Coding Help
try this HERE a.intLodgeNumber='$id' GROUP BY a.strLodgeName LIMIT 0,50 -
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.
-
<?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")); ?>
-
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**** }
-
exacly the same way as posted above :-)
-
mysql_fetch_array(): supplied argument is not a valid MySQL result ??
drisate replied to JTapp's topic in PHP Coding Help
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? -
You query is probably wroung. Can you post the query string inserted into mysql_num_rows
-
Should I just try to use "chained selects" to solve the problem?
drisate replied to JTapp's topic in PHP Coding Help
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]"; } } -
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