Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. Yes PHP needs to be configured to use which ever extensions you want to use. PHP can be configured via the php.ini The only extensions you'll need to have enabled for MS SQL databases would be the following ;extension=php_msql.dll ;extension=php_mssql.dll (remove the ; at the start of the line to enable the extension. To disable do the opposite) Never enable ALL available extensions. Once you have configured PHP make sure your restart your HTTP Server (eg Apache, IIS etc)
  2. Don't expect any helpful replies then.
  3. Wrap your variable in braces echo "<img src=\"images/{$page}T.jpg\" />"; Or do echo '<img src="images/'.$page.'T.jpg" />'; Edit: beaten to it
  4. Its failing on the mbstring requirements. Create a new file called .htaccess within your forum/ folder and add the following commands to it: php_value mbstring.http_input pass php_value mbstring.http_output pass php_value register_globals off Now try installing phpBB again.
  5. How would we know. There are most probably thousands of news/affiliation scripts available. Looking at the site it is most probably custom made by the site owner.
  6. Without it print_r wont return the generated string to the echo statement, for example the output would be array output here <pre></pre><hr /> and not <pre>array output here</pre><hr />
  7. Your file paths. This cropImage(83, 60, "/uploads/$filename", 'jpg', "/uploads/th-$filename"); Should be cropImage(83, 60, "./uploads/$filename", 'jpg', "./uploads/th-$filename");
  8. Use mysql_fetch_assoc to fetch the results from your query eg while($row = mysql_fetch_assoc($rowCount) { echo '<pre>'.print_r($row, true).'</pre><hr />'; }
  9. Never start a file path with a forward slash, as PHP interprets this as the root of your file system (just like C:/ on windows). Use ./ instead (the . at the start of the path means current working directory). Or remove the forward slash completely.
  10. But the code is being ran from your windows machine. The error can only be fixed by changing the path from a *nix path to a windows path. PHP won't know that the file being required is on an external server.
  11. I just don't think its a very efficient way of doing things. Especially if you leave the first parameter of the implode function blank.
  12. i've never seen the use of implode/file as a better way of including a files contents before. Personally I use include/require etc to include PHP code within my pages, anything else I'd use file_get_contents.
  13. Wrap your variable within curly braces {}, eg <td width="75">{$row['brand']}</td> You will have to do this with all your $row variables and/or variables which are arrays within your string.
  14. echo statements can span multiple lines, I would recommends a heredoc statement, echo <<<MY_HTML; place all your HTML here MY_HTML; There are numerous ways for making your code better.
  15. Your need to escape your single quotes within your string. echo ' <td> <a href="index.php' . $slink . '" javascript:imagechange(); onMouseOver="imgChange(\'5\', \'/image/down_home.png\'); playSound(0);"onMouseOut="imgChange(\'5\', \'image/up_home.png\'); playSound(0);" ><img border="0" src="image/up_home.png"><img border="0" src="image/separator.gif" width="2" height="34"></a></td>';
  16. Have a look at this post. Download the .txt file rename to .php and test out the code.
  17. Rather than click your browsers back button. Load a new instance (as in window/tab) of the thread you're tying to reply to, then copy 'n paste your reply to the new page and try again..
  18. If the $row variable is an array use a foreach loop foreach($row as $cell) { echo '<td>'.$cell.'</td>'; }
  19. Umm, hang on. You're using a *nix file path when you're using Windows! This a *nix file path /home/visolio/public_html/secure/billing/configuration.php This is a Windows file path C:\xampp\htdocs\Visolio_Clients\visolio_root\Scripts\phpscripts\announcment.php On windows absolute file paths must start with a drive letter.
  20. use unset($words) or $words = array();
  21. If your are using Windows just select which ever files you want to be zipped and then right click on the selection and choose Send To > Compressed Zipped Archive
  22. This is not the correct way. You should use mysql_num_rows as shown here
  23. Have a look at this topic. They had a similar problem to you. May be it'll help.
  24. use mysql_num_rows to check if any results have been return from your query if(mysql_num_rows($data) > 0) { while($result = mysql_fetch_array( $data )) { // display results } } else { echo 'No results found.'; }
  25. If you search google you should be able to find some "JavaScript count down timers".
×
×
  • 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.