Jump to content

syco

Members
  • Content Count

    44
  • Joined

  • Last visited

Community Reputation

0 Neutral

About syco

  • Rank
    Newbie

Previous Fields

  • Languages
    HTML, PHP, CSS, Some JS, SQL

Contact Methods

  • AIM
    syc01098
  • Website URL
    http://scc.sonicfanpage.org
  • ICQ
    0
  • Yahoo
    syco_1098
  1. syco

    PHP/MYSQL

    Thanks justsomeguy it worked, i just decided to rename it
  2. syco

    PHP/MYSQL

    <?php$imageurl = $_REQUEST['imageurl'];$email = $_REQUEST['email'];$age = $_REQUEST['age'];$show = $_REQUEST['show'];$showa = $_REQUEST['showa'];if ($age && $email) {$query = mysql_query("UPDATE znetworking_members SET email = '$email', show = '$show', imageurl = '$imageurl', age = '$age', showa = '$showa' WHERE id = '$msqlid'");echo mysql_error();}?> No matter what it will always say that show or showa are bad... You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show = '1', imageurl = 'http://i210.photobucket.com/album' at line 1 If someone can please help that would be nice
  3. syco

    Php Image Generation

    JustSomeGuy is correct, i have an example of a random generator, that generates different images, but the file is .php but the doctype is jpg therefore there is no echo which mean no hyperlink. As JustSomeGuy said you could embed the image somewhere to a hyperlink.http://thenoobcrew.com/phpimagestuff/
  4. syco

    Php Error, Help!

    in this spot:$email = mysql_query("SELECT * FROM users WHERE (email='$email')");try:$email = mysql_query("SELECT * FROM users WHERE email = '$email'");also here:$user = mysql_query("SELECT * FROM username WHERE (username='$username')");to:$user = mysql_query("SELECT * FROM username WHERE username = '$username'");and if that dosen't work make sure all capitalization and spelling is correct
  5. syco

    Is_dir() Help!

    Thanks that worked fine i made a new variable:$test = "$path/$file";that worked just fine with the function, thanks, though i do feel dumb now.
  6. syco

    Is_dir() Help!

    Ok I need help as to why it will not display the folders as folders when using is_dir()Actual page at http://pinyonline.com/index.php?page=Galleryclik photoorat http://pinyonline.com/index.php?page=Galle...p;section=Photo <p><?if ($_GET['section']){$section = $_GET['section'];echo "<h2>$section</h2><br />"; $path = "/home/noobcrew/www/pinyonline.com/gallery/$section";if ($_GET['folder']){$folder = $_GET['folder']; $path = "/home/noobcrew/www/pinyonline.com/gallery/$section/$folder";} $dir_handle = @opendir($path) or die("No files yet!"); while ($file = readdir($dir_handle)) { if($file == "." || $file == ".." || $file == "index.php" ) continue; if (is_dir($file)) { echo "<p>Folder: <a href='index.php?page=Gallery&section=$section&folder=$file'>$file</a><br /></p>";}else { echo "<p>File: <a href='gallery/$section/$file' target='_blank'>$file</a><br /></p>";} } closedir($dir_handle); }else {?><a href="index.php?page=Gallery&section=Photo"><img src="images/photo.gif" border="0"></a> <a href="index.php?page=Gallery&section=Video"><img src="images/video.gif" border="0"></a><a href="index.php?page=Gallery&section=EVP"><img src="images/evp.gif" border="0"></a> <a href="index.php?page=Gallery&section=Misc"><img src="images/misc.gif" border="0"></a><?php}?></p>
  7. syco

    Postable Calender

    I'm not coming up with anything... i know php but not really how to use it together to do something.
  8. syco

    Postable Calender

    Can some show me how to make or give me codes for a calender that people can post "requested" appointment times, for a hair salon website. then if possible make it give a notification email with a accept or deny action?
  9. syco

    variable=value

    would this work to do index.php?area=anythinghere <?php$area = $_['GET']include("topnav.inc");include($area".inc");include("bottom.inc");?>
  10. how do you make/have profiles for members and PMing?
  11. syco

    Register wont work?

    i don't know exactly what being set b/c it was your code with a couple changes. <?phpsession_start();require_once 'db.php';$page_mode = isset($_POST['page_mode']) ? $_POST['page_mode'] : '';$error_string = '';if ($page_mode == 'login'){ $username = $_POST['username']; $password = $_POST['password']; if (trim($username) == '' || trim($password) == '') $error_string .= 'Please enter your username and password.<br>'; else { $result = db_query("SELECT id, email, password FROM users WHERE username='" . mysql_real_escape_string($username) . "'"); if (!($row = mysql_fetch_assoc($result))) $error_string .= 'The username was not found.<br>'; elseif ($row['password'] != sha1($password)) $error_string .= 'The password did not match.<br>'; else { $_SESSION['user_id'] = $row['id']; $_SESSION['user_username'] = $row['username']; $_SESSION['user_email'] = $row['email']; header('Location: index.php'); exit(); } }}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Login</title> <style type="text/css"> .error_text { color: #FF0000; width: 400px; text-align: center; } .left_box { float: left; width: 150px; text-align: right; padding-right: 5px; } .right_box { clear: right; } </style> </head> <body> <div class="error_text"><?php echo $error_string; ?></div> <form action="login.php" method="post"> <input type="hidden" name="page_mode" value="login"> <div class="left_box">Username</div> <div class="right_box"><input type="text" name="username" size="30" maxlength="255" value="<?php if (isset($email)) echo $email; ?>"></div> <div class="left_box">Password</div> <div class="right_box"><input type="password" name="password" size="30"></div> <div class="left_box"> </div> <div class="right_box"><input type="submit" value="Log In" size="30"></div> </form> </body></html>
  12. syco

    2 Questions.

    I don't know how to do that.
  13. syco

    2 Questions.

    I dont know how to set the url up like that..my pages are stored in a server
  14. syco

    2 Questions.

    How to make a search box search my site.how to do index.php?whatever=whatever
  15. syco

    Register wont work?

    it is set other wise it would tell you to register or login
×
×
  • Create New...