Search results

  1. xav0989

    A stumper - SHTML

    well you could use the system that x10 currently uses to display banners. Where you want to display a banner you include some javascript which then loads up the image and display it.
  2. xav0989

    PHP problem - if / else

    I would like to add another comment, primarily for efficiency. Since the /> is repeated twice, you can remove it from the if clause:<?php if ($exhibitions == 'yes') { ?> checked="checked" <?php } ?>/>
  3. xav0989

    take info from url

    Same here as leafypiggy, although, since French is my mother tongue, I should be able to translate anything. Also remember to always sanitize your data!
  4. xav0989

    wtf????

    Maybe they swapped hard disks...
  5. xav0989

    CGI script error logfile

    Well, you can view the error log in cPanel. * Log into cPanel * In the submenu "log" click on error log You get your own personal error log.
  6. xav0989

    A stumper - SHTML

    You could use some javascript/AJAX action, or build completely build the pages using a server side language (i.e. php) and log each banner usage in a database.
  7. xav0989

    how to ignore empty results from MySQL query in PHP?

    Here is a updated version for you <div id="archive_text"> <?php $year = '2010'; $sql = "SELECT * FROM exhibitions WHERE archive='yes' AND year='$year' ORDER BY month DESC, artist DESC'; $result = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($result) > 0){ echo '<div...
  8. xav0989

    PHP MySQL update

    First of all, even though SQL is not case-sensitive, put all the reserved words in caps. SELECT user_pwd FROM users WHERE user_name='$_SESSION[user]' UPDATE users SET user_pwd = '$newpasswd' WHERE user_name = '$_SESSION[user]' You get the idea! Next, your database starts with...
  9. xav0989

    Site Problem

    to reload your cache, follow these instructions: * Mozilla Firefox 1. Select "Tools" and then "Options" from the menu bar 2. Click the "Privacy" button 3. Click "Clear" next to the section labelled "Cache" * Internet Explorer 6.x 1. Select "Tools"...
  10. xav0989

    E-mail Flash Form with PHP3

    I also like to never use the $_REQUEST variable. Since it's a merge of $_COOKIE, $_GET and $_POST, variables can easily be overwritten. I prefer to use the correct variable from the start. I your case, that is $_POST. Also, as a naming convention, don't use <?PHP, but <?php.
  11. xav0989

    Problem using php header() function

    that's all the MVC (Model->content, View->layout, Controller->code) thing that developers are praising
  12. xav0989

    PHP - Hi User script?

    And three (===) compares both the value and the variable type. i.e.$string = '1'; // string $int = 1;// number $string == $int //will evaluate to true since you are only checking the value $string === $int //will evaluate to false since you are also comparing the variable type
  13. xav0989

    Php + flash + html

    You also need to buy flash professional (US$699+tx.)
  14. xav0989

    Javascript New Window Settings

    could you outline what you need help with, I kinda lost you on the 2nd paragraph...
  15. xav0989

    Script Help

    You would be better off posting this in the marketplace or asking for a freelancer.
  16. xav0989

    Problem using php header() function

    Since you are just starting, this can help you point out that the best practice in coding is to separate code from layout/content. Have a code file that sends headers, then load content, then display it.
  17. xav0989

    How to....

    @idontkno If you know the name of the file, you could still access it, and alv4 doesn't want the directory to be accessed.
  18. xav0989

    Create Email Cpanel from PHP

    You can always sign up for google mail, or simply use aliases, such as SourceForge. Each member has a username@users.sourceforge.net, but it is not an real email account. It just forward all mail received to your personal email account.
  19. xav0989

    adding data to a database

    You are very welcomed
  20. xav0989

    How to....

    If you want some hotlinking protection, use a php script that takes the name of the image and returns the actual image content. It shouldn't be hard. Next put all your files in a non web-accessible location. This way, you can log each access to each file, you can add a security code to check...
Top