Jump to content

robb73

Members
  • Posts

    34
  • Joined

Profile Information

  • Gender
    Not Telling

robb73's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can't be done. I've been through the session classes; always requires a key value otherwise throws a Zend Session Exception.
  2. Upload the file to the server and record details in the DB. http://uk3.php.net/manual/en/features.file-upload.post-method.php
  3. change you code to include the following as appropriate: $dbc = mysql_connect( ... ) OR die ('MySQL connect issue: ' . mysql_error() ); mysql_select_db( ... ) OR die ('DB select issue: ' . mysql_error() ) ; $result = mysql_query("SELECT COUNT(*) FROM table WHERE example ='0'") OR die ('SQL issue: ' . mysql_error() ); and see what error message you get back. Also, remove any error suppressor ( @ ) from your db connect and select statements, if you have one.
  4. Comment out your user defined functions and re-check, if your echo statement shows the values then there is an issue with your functions.
  5. if (!isset($_POST['submit'])) remove the !
  6. C:\wamp\php\php5.ini look under ;Windows Extensions extension=php_gd2.dll (line 598)
  7. I'm trying to work out how to assign a value to a session array without stating it's key value. I understand that: $Namespace->key = 'value' is the same as $_SESSION['Namespace']['key'] = 'value' ... but I'm struggling to understand or find info on the syntax to achieve the following in ZF: $_SESSION['Namespace'][] = 'value' Any help would be gratefully appreciated.
  8. Thanks Stevie, That link is also really useful. Cheers!
  9. I've just started learning about apache and have a question about virtual private servers. If you have a VPS do you have access to an independent httpd.conf for that vps?
  10. Found the answer in a book, I'm just going to test against a regular expression. Posted the solution in case anyone was interested. if (eregi('^[[:alpha:]]+$', stripslashes(trim($_GET['string'])))) { run mysqli_query() } else { send error }
  11. Maybe I've got this the wrong way round, should I just use mysqli_real_escape_string on the string value passed to $_GET and then used in a mysqli_query() ?
  12. you can use TARGET="_blank" in the <a> element, but you should note that it marked as deprecated by the W3C. take a look at: http://www.serve.com/apg/workshop/replacingTarget/ Rob
  13. I'm worried about someone substituting their own value into the url. I usually end up using the value in an SQL query, so I want to make sure its clean before I run the mysqli_query().
×
×
  • 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.