You can add this to the next premium support ticket:
Why doesn't this work? I was trying to dynamically read the table column names and data. It tells me the below error but I guess I don't really know how to write the syntax: (this will help me with what my previous question in the premium support ticket).
Warning: mysqli_query() expects parameter 2 to be string, object given in /home/jvdydf5kad9w/public_html/admin/quoterequest/Untitled-4.php on line 45
<?php
$query = mysqli_query($convacc_cx,$WADAquote_request_all);
$columns = mysqli_field_count($convacc_cx);
//$columns = $query->field_count;
for($i = 1; $i < $columns; $i++) {
//read field name
//$fieldName = mysql_field_name($WADAquote_request_all,$i);
$fieldName = mysqli_fetch_fields($WADAquote_request_all, $i)->name;
while($row = mysqli_fetch_assoc($WADAquote_request_all,$i)){
foreach($row as $column=>$value) {
echo "$column = $value\n";
}
echo $fieldName . "=". $row[$fieldName];
}
}
?>
line 45 is: $query = mysqli_query($convacc_cx,$WADAquote_request_all);
Thanks.
Levin