Jump to content

Proletarian

Members
  • Posts

    97
  • Joined

  • Last visited

About Proletarian

  • Birthday 02/02/1986

Profile Information

  • Gender
    Male
  • Location
    Oregon

Proletarian's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is send_sms.php in the /scripts directory? The error you are getting is indicating it's not.
  2. "What" about it isn't working? Is it producing any errors? Are the variables you are using valid? Does the entry you are selecting from the database even exist? "Not working" is too vague for anyone to help you.
  3. What is a "many to many relationship"?
  4. Or you can pass the variable by reference so changes to the variable actually occur. <?php function replace_value(&$obj) // note the addition of the & before the variable, indicating it is not being passed by reference { if($obj==1) { $obj=2; } } $number = 1; replace_value($number); echo $number; ?>
  5. // I would probably change this line... if(false !== ($breakpoint = strpos($string, $break, $limit))) // to this... if ($breakpoint = strpos($string, $break, $limit)) It's just a preference, I suppose, but it makes more sense to me; because, the first line made me think you were checking if it weren't true, but it's a double negative check, where the second line is an affirmative check to continue with the following block. Give this a test, though, just to be sure.
  6. "What" doesn't work? Give some more details.
  7. Does this work instead? $query = mysql_query("UPDATE home SET welcometitle='$welcometitle', welcomesection='$welcomesection', infotitle='$infotitle', infosection='$infosection', videotitle='$videosection'");
  8. You're probably going to want to learn how to use a database, like mysql.
  9. Or you could organize your database as "room references" where each row references a room file. That way you don't need coordinates and don't have to organize the rooms in a static field; i.e., you can build and connect rooms dynamically.
  10. I prefer code that is commented. That way, whatever style used, I know how to understand what is written. Side note, I never thought to use break statements as "closing brackets" to the case "open bracket". I'll be trying it out to see whether it improves my ability to organize my switch statements.
  11. You could try passing an array as a parameter and make the array with associative keys.
  12. I do not think you can format text in a textarea. But, thanks to this miracle called Google, I found someone who posed a similar question and got some answers you might want to try out; maybe this will help. www.webmasterworld.com/forum21/10080.htm
  13. I'm sorry. Is there some reason you suggest running the same query twice instead of using SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS()? I mean, returning all those rows, twice, is very inefficient. At least, just use a SELECT COUNT() instead of selecting all the data. Did I miss something there? He's suggesting running two different queries. You need to know how many rows you're working with -- and which rows within a certain range you're working with -- before you can even start assembling the page.
  14. A great place to start is at the source: http://www.php.net. There is a complete language reference there with plenty of examples of how to use everything in context. You also need php itself, which you can get there. Personally, I use Apache for my server on my Windows, but the choice is really up to you as far as local stuff goes.
  15. Whichever server you are using, remove or local, is that server set up for server-side includes? I ask this question because the method you are using is a server-side include method and in order for it to work relies on the server being set up for it.
×
×
  • 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.