[PHP] portabily including files

2003-01-13 Thread Tyler BIRD
hatever server it happens to be on. for example: on web1 box include '/conted/me.inc'; works fine for example on web2 box include 'conted/me.inc'; works fine Tyler Bird UVSC - Continuing Education -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sprintf

2002-11-07 Thread Tyler BIRD
hey I'm trying to make dynamic database queries using sprintf any way I can get around this error? $sql = "SELECT * FROM Vacation where StartDate LIKE '%s/" . '\%' . "/%s'"; $sql = sprintf($sql, $_GET["month"], $_GET["year"] ); I want just a literal slash between the month and year, printf seem