Jump to content

Eddyon

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

About Eddyon

  • Birthday 06/08/1989

Contact Methods

  • MSN
    craigjoht151@hotmail.com
  • Website URL
    http://www.digitalpunks.co.uk

Profile Information

  • Gender
    Male
  • Location
    England

Eddyon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yep was just about to say with a little modifying it worked: $title1= preg_replace ("/[^a-z0-9+]/","",$title); Cheers for the help Orio and Shogun
  2. I know this may sound simple but I really do not know how to do it. I have a variable called $title that currently contains symbols such as quotes and question marks, however I would like to create a second variable eg. $title1 that would contain the string with just a-z and 0-9 in it. Thanks in advance for any help, Craig.
  3. Yes, just store the URL or path to the image in the database, then pull it in ur php code using something like an echo.
  4. have you tried putting </font> after the result?
  5. Ah taith is right, i overlooked the ! which is a "not".
  6. Before the query, and do an else { query goes here }
  7. Try something like this: [code]$query = mysql_query("SELECT * FROM topics WHERE author = $userid"); while($row=mysql_fetch_array($query)){ $thread = $row['thread']; echo "$thread <br>"; }[/code] This is just a general example with no real details of your project or databse structure so just build on it for what you need.
  8. And if you do something like: [code]while($row=mysql_fetch_array($query)){ $favourite = $row['favourite']; echo "$favourite <br>"; }[/code] It should list all of the records for that user. Just use that as an example and build from it to suit your needs.
  9. Yep, just insert the username and the favourite as a new record.
  10. well you could just use something like preg_replace() to replace commars with </tr><tr> to create a new row in a table. also when adding a new one just create a new variable and add ",$newfavourite" onto the old variable. But a better way I would think to do it was to add a table with the columns username and article and just get it to list all results matching that username. That way you can just put a new entry in the table every time they add a new one?
  11. Make a link to the download page (which people have to be logged in to view) and put it on that page to forward to the file hidden in a hidden directory so that people cant find it. As it is in the php code the location does not show up on the source, and as far as I am aware, it just says downloading from www.site.com when you download it, and does not say the actual path to the file so people shouldn't be able to easilly find it.
  12. Same for me, could you supply a screenshot pointing out your problem or something?
  13. Its just a HTML problem, im guessing on header.php the image is linked to image/bg3.jpg... instead try /mysite/image/bg3.jpg or http://71.18.194.21/mysite/image/bg3.jpg should work then.
  14. You may find this helpful for hiding the address: http://www.phpfreaks.com/forums/index.php/topic,95433.0.html
×
×
  • 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.