> > Ok.. would have helped to have a slightly larger snippet > of code. You will need the quotes.. and you'll also > need <? ?> brackets surrounding your script as in > the example i sent earlier.
thanks again.... ok... now i'm using your code with my user and pass. the script looks like this: #!/usr/local/bin/php -q <? $db = mysql_connect("localhost", "myuser", "mypass"); mysql_select_db("mydb",$db); $result = mysql_query("SELECT * FROM mytable",$db); printf("l1: %s\n", mysql_result($result,0,"content")); ?> __________________________________________this is all of it i get this: # ./LL.php ./LL.php: line 3: ?: No such file or directory ./LL.php: line 4: syntax error near unexpected token `(' ./LL.php: line 4: ` $db = mysql_connect("localhost", "myuser", "mypass");' why "?" should be a file..... thanks... > > Good luck, > Sean > > > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list