-
Posts
97 -
Joined
-
Last visited
Everything posted by Proletarian
-
Is send_sms.php in the /scripts directory? The error you are getting is indicating it's not.
-
"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.
-
What is a "many to many relationship"?
-
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; ?>
-
// 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.
-
"What" doesn't work? Give some more details.
-
Does this work instead? $query = mysql_query("UPDATE home SET welcometitle='$welcometitle', welcomesection='$welcomesection', infotitle='$infotitle', infosection='$infosection', videotitle='$videosection'");
-
Making a text adventure in PHP-very basic/beginner
Proletarian replied to DeadlyAzn's topic in PHP Coding Help
You're probably going to want to learn how to use a database, like mysql. -
Making a text adventure in PHP-very basic/beginner
Proletarian replied to DeadlyAzn's topic in PHP Coding Help
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. -
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.
-
PHP/Html Table class, is this a good design?
Proletarian replied to Hall of Famer's topic in Application Design
You could try passing an array as a parameter and make the array with associative keys. -
can i apply html tags inside a textarea with javascript ?
Proletarian replied to lofaifa's topic in Javascript Help
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 -
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.
-
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.
-
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.
-
Is your localhost server set up for server side includes?
-
You're going to have to give more information then.
-
Your refill() function is causing the duplication of entries.
-
Redirect to login with dynamic URL doesn't work
Proletarian replied to komplexia's topic in PHP Coding Help
You're going to have to be more specific then as to how it's not working. -
Help me understand this really basic function please
Proletarian replied to mr cracker's topic in PHP Coding Help
According to this website: http://www.php.net/manual/en/function.mysql-connect.php mysql_connect() returns a mysql link identifier which is used to identify the connection you have opened with the database. You use this link identifier to determine whether your connection was successful and which connection in particular you are working with. -
Redirect to login with dynamic URL doesn't work
Proletarian replied to komplexia's topic in PHP Coding Help
Does your login.php file exist in your /admin/ subdirectory? -
Redirect to login with dynamic URL doesn't work
Proletarian replied to komplexia's topic in PHP Coding Help
header('Location: /?p=whatever'); // instead of this header('Location: ?p=whatever'); // try this -
Modern topic on computers and technology's impact on society
Proletarian replied to mpsn's topic in Miscellaneous
Look up Dwolla. The concept behind it could serve for a "modern topic" on computer technology impacting society. -
Want to learn OOP? Looking for some PHP Buddies
Proletarian replied to ChemicalBliss's topic in Miscellaneous
This sounds like a good idea. Hit me up for some nerdy programming chat for sure. -
I'm not going to write code for you, sorry. If you already did it, then this topic is finished.