Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Why not stretch it to the bottom? You have a lot of empty real estate...
  2. //for error reporting, if no errors delete this... ini_set ("display_errors", "1"); error_reporting(E_ALL); $Res = mysql_query($chainSQL); if(mysql_num_rows($Res)>0){ </pre> <table border="1" align="center" bordercolor="#88D9FF" bgcolor="#D0EEFB"> Población Dirección Día Hora Formato Observaciones while($otmp = mysql_fetch_object($Res)){ ?> > </table> <br> echo 'NO RESULTS FOUND';<br>}
  3. How are you calling these functions? Can you show us ALL of your code?
  4. Where are you getting $pagenum from? Can you add some echos to make sure you have correct values? echo "pagenum" . $pagenum . " last" . $last; //This sets the range to display in our query $max = 'limit ' .($pagenum - 1) * $page_rows .',' .$page_rows;
  5. To separate GET variables in your URL you need to use '&'. For example: www.yoursite.com?var1=abc&var2=123&var3=blah This seems to be what you're asking...
  6. Try this: (change credentials, didn't want to post them again...) $dbhost = 'host'; $dbuser = 'user'; $dbpass = 'pass'; $dbname = 'name'; function conn ($dbhost, $dbuser, $dbpass) { $this->connection = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); } function conndb ($dbname) { $db_connect = mysql_select_db($dbname) or die(mysql_error()); } function connend() { mysql_close($this->connection); } ?>
  7. Maybe I'm confused but what is this then? $dbhost = 'internal-db.s35770.gridserver.com'; $dbuser = '****'; $dbpass = '****'; $dbname = 'db35770_LI';
  8. You need to make more tables. It's called normalization. You have everything in 1 table which gets very messy very fast. You need to create primary/foreign keys. Why don't you create a table called foal_parents and relate each foal to a their parents?
  9. Then why do you have the mysql part commented out? You need to use one or the other. Also for errors use this instead: or die(mysql_error()); Side note: Those credentials look real, if they are, use asterisks instead.
  10. $c = 'new mysqli("$dbhost", "$dbuser", "$dbpass")'; You cannot use these variables like this. You have to pass them through. Change this line to: function conn($dbhost, $dbuser, $dbpass) AND: function conndb($dbname)
  11. You're welcome. I like it a lot. There are a couple layout problems with various browsers that I attached here. Maybe add the clan name to the header. Other than that it looks good. I just picked up my copy of COD5, love it! [attachment deleted by admin]
  12. Lol, use this: $Path = $_SERVER['PHP_SELF'] . "?";
  13. Change this line to: $Path = $_SERVER['PHP_SELF']; I just echo it to see what the link is. You don't need that in there because you can hover over the hyperlink and see it.
  14. I'm really off today. I forgot to echo the variable in the HTML link. Try this: //Base reference, the page you are on now $Path = $_SERVER['PHP_SELF'] . "index.php?"; //keep track of how many gets you've added on $x = 0; //Loop through all the $_GET value in your URL already foreach($_GET as $k => $v) { //Add them to path again $Path .= $k . "=" . $v . "&"; //increment x everything you add a GET variable on $x++; } //Get rid of last character, either & or ? if you have no $_GET values yet $Path = substr($Path, 0, -1); //if x == 0 use ? if not use & $Path .= ($x == 0) ? "?coverage=balkanesports2" : "&coverage=balkanesports2"; echo $Path; //And then $Path with be your new URL! ?> read more
  15. Seems like everything is good now? I didn't really understand your last post.
  16. That's a statement, not a problem...
  17. Replace: ?> //And then $Path with be your new URL! read more With this: //And then $Path with be your new URL! echo $Path; ?> read more
  18. Make the image a link, and when you click on it just change the width and height in the img tags...
  19. Should be whatever page you want the LINK to show up on. Sorry, use this code, I forgot to close the PHP tags in my previous post. (Side note: Never use short tags, , always use, <?php) //Base reference, the page you are on now $Path = "index.php?"; //keep track of how many gets you've added on $x = 0; //Loop through all the $_GET value in your URL already foreach($_GET as $k => $v) { //Add them to path again $Path .= $k . "=" . $v . "&"; //increment x everything you add a GET variable on $x++; } //Get rid of last character, either & or ? if you have no $_GET values yet $Path = substr($Path, 0, -1); //if x == 0 use ? if not use & $Path .= ($x == 0) ? "?coverage=balkanesports2" : "&coverage=balkanesports2"; ?> //And then $Path with be your new URL! read more
  20. Oh, does it usually work?
  21. Am I missing something or does that not make any sense at all? No, I've never heard of "Up Dog" either. TLG please explain!
  22. Sorry, thought you wanted unix timestamp. If you want dd/mm/yyyy to dd-mm-yyyy use: $your_date = "03/07/2009"; echo date('m-d-Y', $your_date);
  23. Ok try this (added some things to Garethp's): //Base reference, the page you are on now $Path = "index.php?"; //keep track of how many gets you've added on $x = 0; //Loop through all the $_GET value in your URL already foreach($_GET as $k => $v) { //Add them to path again $Path .= $k . "=" . $v . "&"; //increment x everything you add a GET variable on $x++; } //Get rid of last character, either & or ? if you have no $_GET values yet $Path = substr($Path, 0, -1); //if x == 0 use ? if not use & $Path .= ($x == 0) ? "?coverage=more" : "&coverage=more"; //And then $Path with be your new URL! read more
  24. well i dont know which code you need, you need index.php site code or that another pages thast are included codes? The code where you generate the URL, that's where the problem is right?
  25. strtotime?
×
×
  • 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.