Jump to content

play_

Staff Alumni
  • Posts

    717
  • Joined

  • Last visited

  • Days Won

    1

play_ last won the day on November 21 2012

play_ had the most liked content!

About play_

Contact Methods

  • Website URL
    http://kat.sh

Profile Information

  • Gender
    Not Telling

play_'s Achievements

Advanced Member

Advanced Member (4/5)

4

Reputation

  1. What does 'not showing as expected' mean? How are you expecting it to show? http://jsfiddle.net/c3txj/60/
  2. If it does solve your issue, please mark the thread as solved
  3. He's just about ready to sue every software maker that uses a function called addRow
  4. Wouldn't CSS suffice by giving the div a height and overflow:scroll; ? moving this to CSS forum as it's really client sided.
  5. You are using the form name in your $_POST check. Use the name of your button. So instead of if(isset($_POST['search'])) {echo "Welcome" . $_POST["fname"];} else {echo "post not set for fname ";} do: if(isset($_POST['submit'])) {echo "Welcome" . $_POST["fname"];} else {echo "post not set for fname ";} --edit-- beaten by someone else. for the second part of your script, you forgot an 'else', so you get "request method post not set" as well. if($_SERVER['REQUEST_METHOD'] == "POST") { echo "form submitted";}ELSE{echo "request method post not set ";}
  6. this will work with the way youre originally asked in your .htaccess: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA]
  7. This is now how this is typically done: Ideally you would have one page. say, user.php you would link to that page with a variable, like site.com/user.php?id=135 or site.com/user.php?u=wait you would then use $_GET['id'] and query a database for that members info. whichever way, you'll still need mod rewrite to do what you want
  8. just out of curiosity, why are you doing it this way? (one script per user) what if you have 100,000 users?
  9. Right. So when they submit the form and you detect errors, filled out input fields will have a value. So if user filled out the 'name' input field, but left out the 'email' or 'password' field, $_POST['name'] will hold a value when you redirect them to the same page. Your HTML form fields should look like this <textarea name="message" > <?php if(isset($_POST['message'])) echo $_POST['message'];?> </textarea>
  10. few things. 1. Use code tags to markup code 2. Use jQuery 3. "function addRow®{" what?
  11. You just simply echo out the variables. It depends where you store them. Database, $_POST or $_SESSION.
  12. As mrMarcus said. user_id is probably an auto increment field, so you can delete the line `user_id` , if it still doesn't work, uncomment "//echo mysql_error(); //debugging purposes, uncomment when needed". and comeback with a decent error message. it even says right there. "debugging purposes. uncomment when needed".
  13. A bunch of syntax errors on that code <?php $rows = range(0, 9); $cols = range(0, 9); echo "<table border='1' cellpadding='10'cellspacing='5' align='center'>"; $r = 0; while ($r < count($rows)) { $c = 0; echo "<tr> "; while ($c < count($cols)) { echo "<td>"; echo $rows[$r] * $cols[$c]; echo "</td>"; $c++; } echo "</tr>"; $r++; } echo '</table>';
  14. Are you simply trying to rotate the array? You marked your first link in SO as solved. The second link seems like a similar problem so i'm not exactly sure what the specific issue is. Are you trying to rotate the array you get when you retrieve the 'order' column?
  15. play_

    SQL is rusty

    As of right now, there is none. I have tried all joins that I could. I am not too knowledgeable with complex queries, so i came here. One alternative is to use GROUP_CONCAT...but since it's for a pastebin site, i couldn't really risk using it since the separator could be in someone's paste where pastes.paste_id = $result['ids.paste_id'] <-- not syntax correct, but just to give the idea. alternative 2 is to run two queries. one to get the last 10 paste_id from 'ids'., and then for each id, do a select * from
×
×
  • 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.