Jump to content

vigv

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vigv's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yeah, it does. Thanks for the tip, really appreciate it.
  2. Assuming the original file's called index.php, wouldn't it header("Location: index.php"); do the same thing?
  3. How do you clear GET variables after performing the action in the same page? I have tried to unset() them, but every time I refresh, the script reruns all over again and in the end, I have duplicate entries.
  4. Yeah, I copied that straight from phpmyAdmin. I haven't seen it done that way before, either. Thanks, PFMaBiSmAd, I didn't realize that. I was pretty convinced that I could select the database using the fourth parameter. :/
  5. Hello! I've been trying to work on a small project of mine but I keep encountering this: In test.php, this is the only PHP code I seem to have and I haven't found anything wrong with it. For additional assurance, I copy-pasted the SQL statement directly from phpmyAdmin but it continues to give me an error so I know for a fact that the SQL query works and there is a result for such a query. $db = mysql_connect("127.0.0.1",$db_user,$db_password, $db_name); if(!isset($db)) { echo 'Error connecting to database...'; } else { echo 'Success.'; } $query = mysql_query("SELECT * FROM `book-listing` WHERE 1"); $row = mysql_fetch_row($query); Any help with this? I've tried var_dump() and it returns boolean(false). Can't seem to figure out what the mistake is.
×
×
  • 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.