Jump to content

'tblmodel alias not unique


darkfreaks

Recommended Posts

i noticed i had an error with the spelling of the fields before but fixed it and still having the same problem

 

 

 

$SQLstmt="SELECT * FROM tblModel,tblImages";
$SQLstmt=$SQLstmt."WHERE tblModel.modelNo = $modno";  
$SQLstmt=$SQLstmt."AND tblModel.modelID = tblImages.modelID";

On a side note, PHP's concatenation operator is a little bit cleaner

 

$SQLstmt="SELECT * FROM tblModel,tblImages";
$SQLstmt .= " WHERE tblModel.modelNo = $modno";  
$SQLstmt .= " AND tblModel.modelID = tblImages.modelID";

 

I also added the spaces xyph was talking about.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.