Welcome Guest, Not a member yet? Register   Sign In
Trying to pass variable from 1 Function to Another to Put in Array within same Model
#11

[eluser]jshultz[/eluser]
Ok, changed 'query' to 'id' and also tried: 'busid'=> $bus_id[0]['id'], and neither one worked. now getting:

Error Number: 1048

Column 'busid' cannot be null

INSERT INTO `photos` (`userid`, `thumb`, `fullsize`, `busid`) VALUES ('1', '/home/welcomet/public_html/assets/images/gallery/thumbs/epic-fail-family-portraits-fail1.jpg', '/home/welcomet/public_html/assets/images/gallery/epic-fail-family-portraits-fail1.jpg', NULL)

(I'm just uploading random photos for testing)


Messages In This Thread
Trying to pass variable from 1 Function to Another to Put in Array within same Model - by El Forum - 05-24-2010, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB