OH I almost have it, thanks guys. Kirby and Harmor you've both taught me something tonight.
It is almost perfectly
The small thing is that it is also containing part of the code in the print output - ie/ it prints "array ( [tablefield] => 5456 )" when I just want it to print "5456" or any other random entry from the table)
I am baffled.
----------
NEWS: The answer>
Instead of print_r use:
echo "$randgetresults[tablefield]";
This works! MarcoH64 offered that information which is the last piece but I wouldn't have got there without you and I really appreciate your help. Without it I would have been staring at my screen for another 4 days.
Thank you
|