Skip to main content

Timeline for Wordpress $wpdb no result

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Nov 20, 2012 at 19:49 comment added kaiser @Otto Yeah, did anyway.
Nov 20, 2012 at 19:48 history edited kaiser CC BY-SA 3.0
deleted 73 characters in body
Nov 20, 2012 at 19:46 comment added Otto I'm done, feel free to fix it.
Nov 20, 2012 at 19:45 comment added kaiser @Otto We were editing in parallel. There's much more crap in there. echo '<pre>'.var_dump(... won't work either.
Nov 20, 2012 at 19:45 comment added kaiser @Otto Yeah, you're right. I copy/pasted most of his code - my wrong. Just edited to ... damn.
Nov 20, 2012 at 19:44 history edited Otto CC BY-SA 3.0
added 248 characters in body
Nov 20, 2012 at 19:42 history edited kaiser CC BY-SA 3.0
added 62 characters in body
Nov 20, 2012 at 19:42 comment added Otto @kaiser: You should not have the backticks around the %s, nor should you need run the table name through prepare (it won't work if you do). I'll edit your post to correct.
Nov 20, 2012 at 19:39 comment added Deepak Kundu The above code still does not show any result. var_dump on $result gives NULL bool(true). If however, I search in the column 'id' (primary), I do get a result, which I was getting from the original code as well that I was using. The column 'code' in mysql is of datatype varchar if that could be causing any error.
Nov 20, 2012 at 19:31 history answered kaiser CC BY-SA 3.0