Jump to content

xenLiam

Members
  • Posts

    43
  • Joined

  • Last visited

About xenLiam

  • Birthday 02/08/1997

Contact Methods

  • Website URL
    http://www.xenliam.com/
  • Skype
    liamdemafelix

Profile Information

  • Gender
    Male
  • Location
    Manila
  • Interests
    Music and women.
  • Age
    16

xenLiam's Achievements

Newbie

Newbie (1/5)

5

Reputation

  1. Line 42, $artistname has a problem (no matching end quote) $register = mysql_query("INSERT INTO artists VALUES('','$artistname,'$location','$genre','$email','$password','','','no')");
  2. Does it give you a PHP error, or does it not simply insert the values into the table?
  3. Hello! First of all, welcome to the forums! I'm sure you'll like it here. I know I do. Anyway, to your problem (although you should really post this in PHP Help, but I'll still try to help you out), you could store the username in a session variable, and make queries to the database to pull information through mysqli_fetch_array() using the username you stored. For example, if the username is "admin", store it in $_SESSION['user'] = "admin"; (given that you already started a session), then use that to fetch data from the database, in which that data would only be visible to the user "admin". Sure, it isn't the safest way to do it, but that would be how the concept would go.
  4. "Step into the future!" If that's the future, well... lol. Honestly I like the design in its simple form, although they could've done better typography-wise (better Web 2.0-ish fonts and stuck to being modern) but that's just my opinion.
  5. When you're inserting a page view count to the database, log its IP address too. That way, you can check if the IP address is already registered and if it is, don't count it anymore. Not the most fool-proof method, but that works.
  6. If you're running it only to show the contents of the zip file, why not make a temporary copy of the zip file with a different file name, you know, with normal alpha-numeric characters, and use that in ZipArchive() and auto-delete it once the contents are shown?
  7. Increase the value of memory_limit in php.ini to something like 128MB or 384MB.
  8. What was the complete error? A line and a variable must be shown after "Notice: Undefined index". I can't follow which one.
  9. Put ob_start() after opening <?php. This is probably due to the whitespace you have. As such: <?php ob_start(); // Output buffering session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "<br><br>Pageviews=". $_SESSION['views']; if(isset($_SESSION['views'])) $_SESSION['views']=$_SESSION['views']+1; else $_SESSION['views']=1; echo "<br><br>Views=". $_SESSION['views']; ?> </body> </html>
  10. You better wrap "$query = $_GET['query']" inside an if statement to avoid showing errors when search.php is accessed directly. if(!empty($_GET['query'])) { $query = $_GET['query']; } else { die(); } I don't think that type="name" has something to do with it being read or not, although I could be wrong.
  11. Welcome to the forum! I myself started out as a self-taught programmer, and I've advanced through the stages. I hope you enjoy the community as much as I do.
  12. I would agree to what mac_gyver said. Instead of including graph.php, just make a header call for it so that it's marked as an image file and not a PHP file, and use the <img> HTML tag to show it. Although your current method shouldn't be making problems IF the function of graph.php is to produce a graph and once the graph is echoed, it should die.
  13. Edit php.ini and make sure display_errors is on. Restart your web server afterwards.
  14. Same result, it works for me. http://screencloud.net/v/b6lk
  15. Use ffmpeg. I found a FFMPEG PHP class in GitHub. I forked it and I might do my own fixes to it if needed, it hasn't been updated in a long time (the last latest update was from 5 months ago) The original repo is located at https://github.com/swider132/FFmpeg-PHP-Class
×
×
  • 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.