Lines Matching refs:stmt
14 $stmt = new mysqli_stmt($link);
17 var_dump(get_parent_class($stmt));
21 $methods = get_class_methods($stmt);
69 $variables = array_keys(get_class_vars(get_class($stmt)));
75 $variables = array_keys(get_object_vars($stmt));
82 mysqli_stmt_affected_rows($stmt);
88 $stmt->affected_rows;
93 if (!$stmt->prepare("INSERT INTO test(id, label) VALUES (100, 'z')") || !$stmt->execute()) {
94 printf("[001] [%d] %s\n", $stmt->errno, $stmt->error);
97 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
98 printf("stmt->affected_rows = '%s'\n", $stmt->affected_rows);
100 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
101 printf("stmt->errno = '%s'\n", $stmt->errno);
103 assert(mysqli_stmt_error($stmt) === $stmt->error);
104 printf("stmt->error = '%s'\n", $stmt->error);
106 assert(mysqli_stmt_error_list($stmt) === $stmt->error_list);
107 var_dump("stmt->error = ", $stmt->error_list);
109 assert(mysqli_stmt_field_count($stmt) === $stmt->field_count);
110 printf("stmt->field_count = '%s'\n", $stmt->field_count);
112 assert($stmt->id > 0);
113 printf("stmt->id = '%s'\n", $stmt->id);
115 assert(mysqli_stmt_insert_id($stmt) === $stmt->insert_id);
116 printf("stmt->insert_id = '%s'\n", $stmt->insert_id);
118 assert(mysqli_stmt_num_rows($stmt) === $stmt->num_rows);
119 printf("stmt->num_rows = '%s'\n", $stmt->num_rows);
121 assert(mysqli_stmt_param_count($stmt) === $stmt->param_count);
122 printf("stmt->param_count = '%s'\n", $stmt->param_count);
124 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
125 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
128 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
129 @$stmt->unknown = 13;
130 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
158 stmt->affected_rows = '1'
159 stmt->errno = '0'
160 stmt->error = ''
161 string(14) "stmt->error = "
164 stmt->field_count = '0'
165 stmt->id = '%d'
166 stmt->insert_id = '0'
167 stmt->num_rows = '0'
168 stmt->param_count = '0'
169 stmt->sqlstate = '00000'
172 stmt->unknown = ''
173 stmt->unknown = '13'