Jump to content

gordsmash

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About gordsmash

  • Birthday 01/26/1993

Profile Information

  • Gender
    Male

gordsmash's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What im trying to do is have the webpage forward the user to another page after they fill out something for a certain element in the database. But the once I put the variable into a header for forwarding, the variable is thought to be a string instead of outputting its value it holds. Heres my code.... $variable = "nextPage"; header('Location:webpage.php?id=$variable'); But whats its doing is sending the user to the url "webpage.php?id=$variable" instead of "webpage.php?id=nextPage" What can I do to get the header to read the variable value and not the variable name? All help is greatly appreciated!!!
  2. Well the span tag that i put down is only supposed to put an underline underneath the text and not the image. But when i run it in firefox it puts the underline underneath both the text and the image. Is there something wrong with the code i put into it or does firefox screw up with the span tags?
  3. Hello, Im trying to use a span tag to put my hyperlink with an underline so that my picture right next to it doesn't have the underline. Although it is not working in Firefox. I have tested it in Internet Explorer and it works perfectly but Firefox doesn't seem to render it right. Here is the code that I am using. <a class="one"href="login.php"><img src="../assets/key_go.png" border="0" text-decoration="none"/><span style="text-decoration: underline;">Login</span></a> Any answers would be greatly appreciated.
  4. sweet! thanks everyone for helping me out. You guys are awesome!!!
  5. Is it possible to use the str_replace function to code them that way? Or is the PEAR way the only way.
  6. Are there any example codes that you have?
  7. hello, i have searched this for a while with no results. But is there a way to program your own bb codes with php or is this a dumb question. Any answers are greatly appreciated.
  8. Ok i found out what the problem was. Thank to the code cbolson suggested... $res = mysql_query($sql) or die("Error getting members"); It gave me the "Error getting members". So i found out it wasnt connecting to the table for some reason and i fixed it. I had to put... $sql = "SELECT user_name FROM gs_uploads.members"; to fix it. Thanks a lot cbolson for helping me out buddy!!
  9. Hello guys i need help with making my drop down menu to work with php. Here is the code that i am using... <?php $sql = "SELECT * FROM members"; $query = mysql_query($sql); ?> <select name="members" id="members"> <?php while($row = mysql_fetch_array($query)){ ?> <option> <?php echo $row['user_name']; ?> </option> <?php } ?> </select> Now sometimes the code will actually execute giving me the values i want but most of the time it wont execute leaving the drop down menu blank with nothing in it. If someone could tell me what i need to do with my code that would be awesome.
×
×
  • 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.