Jump to content

Spartan 117

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Spartan 117's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello, I have a listbox containing a name of games and users can select more than one. After the users submit the forum I want to know all of the games they chose and put a comma after each. How would I get all of the values they selected? Thanks
  2. Thanks for the quick reply I guess I will try from flash.
  3. Hello, I would like to know if it was possible to play a .wav as a bg sound once and when that was over play a different one and loop it. I wanted to do this with a php script. If this is possible how would I do this? Thanks
  4. 0oops. The solved button isn't where I am used to seeing it.
  5. Thanks for pointing me in the right direction, I found what I was looking for
  6. Hello, I am doing something with php and I needed some help. I would like to know if there is a script or something that will automatically upload a file in a static directory (the file is a .txt with a nuber written in it, ie: 14). I would then like the script to check a file on the server (which is another txt with another number, ie: 16). I would then like to know if the first number is lower than the second one, and if so redirect to a new page, and if not it will do nothing. I have no clue how I would do this or even if it is possible. Could someone please help me? Thanks
  7. Ok, thanks, I wish I could do this, oh well.
  8. Hello, I have a simple html editor on my page that edits the left portion of my page. I wanted to know if I could make the left side of the page load the html from the textbox as I change the html in the textbox. Here is my code for the editing and such: <?php // Database connection here include('config.php'); // connect to the mysql server $link = mysql_connect($server, $db_user, $db_pass) or die ("Could not connect to mysql because ".mysql_error()); // select the database mysql_select_db($database) or die ("Could not select database because ".mysql_error()); $sql = "SELECT * FROM page_links WHERE id='1'"; $res = mysql_query($sql) or die (mysql_error()); $r = mysql_fetch_assoc($res); $check = mysql_num_rows($res); // check to make sure your id exists if($check > 0){ // convert all fields to strip slashes and line breaks to <br> $links = nl2br(stripslashes($r['links'])); ?> <p align="center"> <textarea name="pagelinks" cols="50" rows="20" id="pagelinks"><?=$links ?> </textarea> <?php } else { // show this if ID does not exist echo "<p align=center><font color=\"FFFFFF\"><b>There is an error in your database.<b></font></p>"; ?> <?php } ?> </p> <p align="center"> <input name="submit" type="submit" id="submit" value="Edit Links"> </p> </form> <p align="center"> <?php if ($_POST['submit'])//($_POST["$submit"]) { $newlinks = $_POST['pagelinks']; $sql = "UPDATE page_links SET links='$newlinks' WHERE id='1'"; $result = mysql_query($sql); echo "Links Updated!"; echo '<META HTTP-EQUIV="Refresh" Content="0; URL=linkeditor.php">'; } ?> Is it possible to make the links on the left equal the code in the textbox as I change it without submitting?
  9. I could do something like this for when I list them... echo('<table width="241" height="80" border="0" cellpadding="0" cellspacing="0">'); echo('<tr><td><p><b>Title:<br></b>$message<br><b>From: </b><i>'.$userfrom.',</i><b> On:</b><i> '.$time.'</i></p></td></tr>'); echo('</table>'); lol, but I have no idea how to get $message, $userfrom, and $time!
  10. Hello, I am currently working on a website that will be integrating with a Simple Machines Forum. I want to make a messaging system, but why not just use the smf pm system? It will be easier and it will be better so users don't get confused with forums pms and site pms. Here is what I would like to do: Message Title: Message Content From: Username, Date & Time [Delete] [Reply] Can this be done in a way like this? I have looked in my database and see that there are two tables for private messages: smf_personal_messages: ID_PM ID_MEMBER labels bcc is_read deleted And smf_pm_recipients: ID_PM ID_MEMBER_FROM deletedBySender fromName msgtime subject body The first one contains who wrote it, the time, and the message, the second one contains who the message was sent to. I would need to get the users id that is logged in, which would be simple enough with SSI. But I would also need to then check if that member id has any messages from the recipients table. If there is a message with their id then go into the first table and gather the info from the message with that id. What I would like to know is how to do this. I know I would probably need an array, but I am new to arrays... How would I check to see if there is any messages for the user logged in? i'd have to check smf_pm_recipients under ID_MEMBER and see if there are some (or 1) that equals the id of the member logged in, and if so get the ID_PM and check the smf_personal_messages under ID_PM and gather the information for that. But it is all confusing. I have sat here reasoning it for about twenty minuts and cnnot think how I will accomplish it. Could somebody please help me? Thanks
  11. Well, I guess I finally figured it out, I had to split it all up in seperate strings and then echo part1.part2.part3, ect... Not the best way to do it, but it works
  12. Hello, I have been making what I thought would be a very simple and quick page. It is easy, but now that I am almost done I am having a problem. I made a page that will launch a program (Teamspeak) when somebody enters a nickname and the server password. I made the page and it is nearly finished, except I want it to launch teamspeak automatically after the person clicks the submit button, I am trying to use redirect, but I get it wrong. echo('<META HTTP-EQUIV="Refresh" Content="0; URL=teamspeak://IP:PORT?nickname=".$nickname."?password=".$serverpass.">'); *IP:PORT is the ip and port to the server, which I left out of forums. That is what I tried doing after it was successful, nickname and password are equal to whatever somebody enters. That is wrong, when I enter info Teamspeak pops up and says error wrong username or password. I am thinking that I can't do the redirect like that with the quotations and periods. Could somebody please help me finish this page? Thanks
×
×
  • 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.