Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. If you did want to combine them use || (or). Something like this: if(move_uploaded_file($_FILES['one']['tmp_name'], $target) || !mysql_query($sql,$con))
  2. corbin is right. You should use singles for the echo and double quotes for the attributes. Try this: echo '</pre> <table border="0"> id: ' . $row[id] . ' Name: ' . $row[name] . ' Comment: ' . $row[com] . ' </ta This is not tested but I think it's right. You need to concatenate the php variables to the string or else they would be read in as HTML text.
  3. Maq

    no refreash

    Page doesn't load for me...
  4. Yes. You're welcome.
  5. Not sure what style of phpBB3 you're using but in most cases there should be code towards the bottom of your phpBB3(w/e dir it's in)/index.php. Just copy and paste this somewhere in the header (styles/(your style)/templates/overall_header.php) and it will appear on every page. You must also purge the cache to see results. As far as the other issues you might want to go to their site directly, http://www.phpbb.com/community/
  6. Replace: $query = "SELECT *, DATE_FORMAT(`datecreated`, '%M %e, %Y') as datecreated FROM titlehistory"; if ($r = mysql_query ($query)){ // Run the query. while ($row = mysql_fetch_array ($r)){ } With: $query = "SELECT *, DATE_FORMAT(`datecreated`, '%M %e, %Y') as datecreated FROM titlehistory"; $result = mysql_query($query) or die ("Error in query: $query. ".mysql_error()); $row = mysql_fetch_assoc($result); If that doesn't work you need to start debugging... Use neil.johnson's suggestion. Put the query into PhpMyAdmin, or whatever web app you use, and see if the correct results return. If they don't there's something wrong with your sql statement (wrong table name, field name etc...). If you get the correct results then go back and try and just
  7. neil.johnson you are correct, but without the id=id part it should grab everything and output something. Try formatting the date in the php rather than in the SQL query, it may be screwing something up. Example: $query = "SELECT * FROM titlehistory WHERE id='".$_GET['id']."'"; Wherever you use "$row['datecreated']" replace with: date("Y/m/d", $row['datecreated'])
  8. Haha I've never heard of that before. What FTP client are you using?
  9. If I'm understanding the problem correctly you should change $media_path to: $media_path = './newsite/images/talent/' . $value;
  10. Since your script worked for me try checking some external factors such as, the IP your pointed at. Do you have a dev and a live site? I don't think it's your code...
  11. Just tested your script on one of my sites and it worked fine. I had to take out the xml objects.
×
×
  • 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.