Jump to content

Marsha

Members
  • Posts

    53
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Marsha's Achievements

Member

Member (2/5)

0

Reputation

  1. Oh I got it now, Thanks very much. Problem was one of the links I was using was not putting a POST into the URL, so it was not retrieving it using GET. Thanks very much for your help. Really helped!
  2. So like this? echo 'result = mysql_query("SELECT username FROM data WHERE postid=$postid")';
  3. Heya, I am making a code that shows users that are on a database with a postid, for each post on my forum, this will run and any username with the current postid will be shown. Problem is, I get an error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/SITENAME/public_html/SITENAME/forums/likeusers.php on line 9 Heres the code: Thanks in advance.
  4. Thats done it! Thanks very much
  5. Hi, I have a code which uses GET to retrieve data from the URL, check that it does not already exist in my database, then insert it into the database if it does not already exist, Problem is I am getting a Parse error: syntax error, unexpected T_STRING in /home/******/public_html/**-********/forums/like.php on line 12. Here is the code: I would assume the problem is with my if statement, but I don't know exactly, thanks for any help in advance.
  6. I am not familiar with select, could you maybe show me how I would add that to my code? Thanks
  7. Heya, I am wondering how I would make the following form add to the database (like it does already), but only if both of the two values do not exist in the same column in the table. I have sensored the password and DB fields. Thanks
  8. Thats exactly why I didnt explain because you just sorted the problem straight away hehe. I knew it would be obvious. Thank you very much
  9. Can anybody spot any big mistakes that would lead to my code not working? Have a good look please echo '<a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], '">', ($context['downloads_file']['fileurl'] == '' ? $context['downloads_file']['orginalfilename'] : $txt['downloads_app_download']), mysql_query("UPDATE smf_members SET karmaGood = karmaGood + 1 WHERE ID_MEMBER = $context[downloads_file][iD_MEMBER]"), '</a>';
  10. Heya, I have an SMF addon called Download System installed on my Forums which allows users to upload files and share them with other users. Only problem is there is no Image Upload so that you can Upload an image when you upload the file. I want to add one, so I put one up on my FTP server that works. I have made a column in the table on MySQL which stores information for the downloads that users add, and called it image, that is where I want the $newname to go from the following script How would I achieve this? Thanks
  11. Heya, I have SMF 1.1.10, I installed a Mod called Download System. This allows users to upload files and let other people access them, The only problem is that it doesn't have a Image uploader to go with each file, so that you can add an Image with it. I added a script to it and I think it works but I cannot find the place it is uploading the image to so It might not work. Each file uploaded has it's information stored in MySQL, I have made an extra column for the filename of the image, but how would I enable it so when you Upload the Image, It updates it in MySQL. Also if you spot any problems with this script please let me know as I am not 100% sure that it works as I either cannot find the Images on FTP or It doesn't work. Thanks Attached is also the full File [attachment deleted by admin]
  12. Works Perfectly! I must thank you for all of your help! Thanks very much kind sir! Excellent!
  13. Hehe that would be easier for me too I clearly should stop pretending like I know what PHP and JS is :'( I have attached the PHP file that is related Thanks again for this lol! [attachment deleted by admin]
  14. I pasted that straight into it without the <?php (as it is already in a session) and it is doing the same, I don't quite understand the loop part :-\
×
×
  • 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.