Displaying 1 result from an estimated 1 matches for "e_user_error".
2007 Aug 24
0
MYSQL problem and configuration
...d result '$res')\n"); fflush(STDERR); return -1; }}$agivar = init();$hostname= 'xxxx';
$database= 'xxxxx';
$username= 'xxxxx';
$password= 'xxxx';
$dbprotect = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database, $dbprotect);$result = mysql_query("SELECT * FROM user_table WHERE user_age>12");while($entry = mysql_fetch_array($result)) {fwrite(STERR, "Name : $entry['name'], Age: $entry['age'] \n");fflush(STDOUT);$result = trim(fgets(STDIN,40...