Jump to content

vystral

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vystral's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Wow, I don't believe this. It just started working out of nowhere. Took time for server update maybe??
  2. from a form on a previous page. I used $_POST for both of them
  3. For some reason, my UPDATE query isn't working. I don't think I have the syntax wrong. $restidquery="select restaurantid from restaurants where restaurantname='$restaurantname'"; $restidresult=mysql_query($restidquery); $restidrow=@mysql_fetch_assoc($restidresult); $restid=$restidrow['restaurantid']; mysql_query("UPDATE users SET restaurantid='$restid' WHERE username='$username'") or die(mysql_error());
  4. I never thought of just running a query. It's so easy, it might just work!
  5. Magnificient. Thanks everyone. One more question, if I may...what is the basic PHP coding to make a form add a row to a MySQL database? I understand the array_push method, but I don't know how to apply that to an actual database.
  6. There you go. That should work in theory. But, it doesn't seem to be getting the data. Here's what I have: $username=$_POST['username']; $password=$_POST['password']; ..and the form on the previous page: <form name="login" method="get" action="memberhome.php"><input name="username" type="text" value="" size="15" /><input name="password" type="password" size="15" /> etc...
  7. Hi, I'm a newbie here. Is it possible to use PHP to clear or reset the address bar (not the history, just what's currently visible)? If so, how would I go about doing that?
×
×
  • 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.