
mens
Members-
Posts
52 -
Joined
-
Last visited
Never
Everything posted by mens
-
You can post the link in the Website Critique board if you want to get feedback on it.
-
As for editing: Your best bet here would be: upon click of the record column(within the datagrid) the text would be transformed into an input element holding the record ID and current value. From there, when the user clicks a button, the data is sent through an ajax request to a remote script, which in turn updates a database. As for adding: A simple form should suffice to your needs.
-
Refer to this link for information on the event property. Brief summary: it gives information as to which key was presses.
-
Tribal Wars the original, is created with PHP and Javascript. A mixture of that is your best bet for creating any game. Ajax would be useful in some parts of the application, but it's only client-side, and thus, would need a back-end created with PHP or a similar server-side technology. There are some Tribal Wars like game engines out there, like Devana, which you could use to develop a game upon.
-
Thank you for your replies, a few more questions regarding this subject; Say something is more matter of fact than actual opinion. Would blatantly pointing out the mistake, without any consideration, be tolerated? And as for "tactfulness": most people will be offended if you point out a mistake of theirs. I don't think this can be avoided in any way. Some people are just arrogant, and will make a fuss about this type of stuff. So, just ignoring those people would be agreed upon in such a situation?
-
PHP Output Buffer Benchmark (microtime inaccurate when used with usleep?)
mens replied to nunja's topic in PHP Coding Help
From your script, the timers shouldn't be affected by sleep function. But what I don't get, is; why are you overwriting the same variables 30 times? and, why are you pausing the script anyway? You might be trying to calculate an average, but that is not the correct method of doing it; as it only actually record one of the 30 timers. The method you are using, doesn't really calculate anything as for "at what speed" the server is delivering the data to the client. That specific topic is a whole other thing, which would not be able to be calculated with PHP. The OS, and then mainly the network connection is the role players in that topic. -
How you build the data does not matter, it's all good. If I'm guessing correct, you're not using the MIME or content type headers. This would render the email completely just as text. Please refer to [link=http://php.net/manual/en/function.mail.php]mail()[/link] in the manual for more information.
-
Note also, you can define a table-cell as a div/block with CSS so it will behave like one. See http://www.w3schools.com/css/pr_class_display.asp
-
Switch the email encoding to HTML, and then use a table element. $data .= '<table>' . ' <tr>' . ' <td>'; { .. continue as per usual .. } $em = mail('email@domain.com', 'subject', $data, $headers);
-
mysql_connect client doesnt support authentication protocol requested by server
mens replied to devWhiz's topic in MySQL Help
Firstly, refer to the sources I gave you. Next, try: SET PASSWORD `bommabco` = PASSWORD('newpass'); It seems you don't have permission to change the password. If that doesn't work, login with the root user and do it - if you don't have root access, contact the DBA. -
Try changing the font sizes, and also try to define absolute widths. Then, try setting the width of the table itself to 100%.
-
PHP Output Buffer Benchmark (microtime inaccurate when used with usleep?)
mens replied to nunja's topic in PHP Coding Help
usleep() pauses/delays execution of the script. In your script, your delaying the script's execution by ~16 minutes. -
i want to display imageid along wid image in a table format
mens replied to madhmad's topic in PHP Coding Help
You'd be better of posing this in the "Freelance" section. This board is for help - that means, if you do something and have trouble with it, someone will help you. People aren't going to do things for you. -
It could either be a MySQL trigger that was defined, that does it, or somewhere a PHP script or maybe even a crontab doing it.
-
It's called ALTER, which does exactly what one would expect. To remove a column named "name" from a table called "people", you would use: ALTER TABLE `people` DROP `name`; Source(s): http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
-
I don't think you're thinking of the same "WAP" technology as we are. A phone doesn't have a database as per say a web sever, it uses other methods to store data. I think you might be referring to a Java application on the phone itself? Please me a lot more specific so I can offer more advice.
-
mysql_connect client doesnt support authentication protocol requested by server
mens replied to devWhiz's topic in MySQL Help
UPDATE mysql.user SET Password=PASSWORD('newpass') WHERE User='bob'; FLUSH PRIVILEGES; Source(s): http://dev.mysql.com/doc/refman/5.0/en/set-password.html, http://dev.mysql.com/doc/refman/5.1/en/password-hashing.html -
To bookmark any webpage, anywhere: CTRL+D
-
...if a mobile phone does not have GPRS, there's no way in hell they are going access any remote content - period. I'd suggest you Google this topic a bit, and educate yourself on it before attempting to do something like this.
-
Well, it depends on the contents of the variable and what you are going to use it for. If it needs to be filtered and/or modified in some way, assigning a new variable to it would be best. This is only so you can use the original contents again, for some other purpose. Then, you would then destroy the newly assigned variable after you used it to save memory. But if the type and form of the contents doesn't matter, using the original variable would be preferred. Most of these "standards", or so-called ones, come into play at a microsecond scale. At normal levels, the only reason you would actually need to destroy variables to free up memory, is when you are working with large arrays or lists(something maybe such as a file/image). I don't see any variables being introduced into the example switch statement you provided, though, so I cannot propose anything for that?
-
I'll keep this brief, I've recently joined, and have been reading through some threads. I see a lot of people giving invalid information(reference, guidelines, standards), it may be a lack of their own knowledge, but the point still stands: the information they provide is invalid. A simple example: Short-hand logical statements are "incorrect" (a.k.a. not using curly brackets). Should one correct these people, for the beginners sake or just let it be in order to avoid arguments?
-
I don't think there's an exact standard for this, but the best practice is always to improve performance and efficiency; so only defining variables(with the same values) once would save memory, so it would be the best practice.
-
I'm having trouble with my code, any help would be appreciated.
mens replied to vet911's topic in PHP Coding Help
How, and where is $new defined? Also note, if you are using integers encased as strings, you are better off using ctype_digit() for comparison. -
This is ..."different"... and poor,, but it should suffice for your needs. <?php ... if($_SESSION['charIsInQueue'] == TRUE) { //Check queue flag $charShipType = $_SESSION['shipType']; $rowNumber = mysql_query("SELECT `shipType` FROM queue ORDER BY entryTime;") or die("Error: " . mysql_error()); //Get row number $sqlQuery = mysql_query("SELECT * FROM queue"); //Set sql query $numberOfRows = mysql_num_rows($sqlQuery); //Count total number of rows $i = 0; while($row = mysql_fetch_assoc($rowNumber)) { $i++; if ($row['shipType'] == $charShipType) break; } echo "You are number " . $i . " of " . $numberOfRows; } ?> Sorry it's so messy.