1
저는 백 오피스 프로젝트에서 작업하고 있습니다 - 먼저 데이터베이스 항목을 추가, 업데이트 및 삭제하고 일부 데이터 유형에 대한 특정 작업을 구현해야합니다. 그래서 데이터 유형 만 검색하고 싶습니다. $ fieldtypes = mysql_query ("SHOW FIELDS FROM mysqltable");mysqltable에서 SHOW FIELDS에 대한 결과가 없습니다.
<?php
$serveur='localhost';
$user='root';
$password='xxxx';
$base='db';
$champs=array(
"member"=>array("id","group","login","lastname","firstname","email","pswd","account","searchingfor","searchingfordistance","searchedfor","searchedfordistance","mydescription","groupdescription","searchdescription","resourcesdescription"),
"place"=>array("id","idm","ids","name","town","postalcode","address","coord")
);
$connexion = mysql_connect("$serveur","$user","$password") or die ("Impossible de se connecter à la base de données");
mysql_select_db("$base",$connexion) or die("Erreur de connexion a la base de donnees");
$fieldtypes = mysql_query("SHOW FIELDS FROM place");
ob_start();
var_export($fieldtypes);
$tab_debug=ob_get_contents();
ob_end_clean();
$fichier=fopen('gs.log','w');
fwrite($fichier,$tab_debug);
fclose($fichier);
... (rest of code works)
사람이 무엇이 잘못되었는지 알아 좀 도와 줄래 : 리턴이 코드는이 시간에 얼마나입니다
NULL?
감사합니다.
이 아, 네 대단히 감사합니다 :) –